Numbers formulas across multiple sheets
I've got a spreadsheet with logins for a whole teaching group (example on pic 1), but would like to move individual student sheets, so they can stick them into their books. I'd like to use a layout like pic 2. I'd like to put in a formula that will allow me to switch between details by just changing the surname if that makes sense?
Could anybody help with the formula for this please? I tried VLookup but I don't really understand what I'm doing, so it keeps coming up with error messages... Any help is much appreciated! Thanks :)
iMac, OS X 10.11