Forum Discussion
Creating a macro to pull information from one sheet to another
Try this (Example attached):
=LOOKUP(2,1/(INDIRECT("'"&$A3&"'!B:B")<>""),INDIRECT("'"&$A3&"'!B:B"))
[Note: The formula uses the list to identify which sheet the lookup indexes, therefore each sheet name will need to be identical to the entries in the list - You should be able to drag down the formula for rest of list]
- Charla74May 10, 2020Iron Contributor
As mentioned I the note, the sheet name is referenced from the list in column A (cell A3 in the example). The formula can be dragged down into the cells below but I didn’t do this as there is only one sheet so far. It’s for this reason that the list items must match the sheet names exactly. Hope this makes sense but let me know if still not clear.
Alternatively, you could change it to reference the sheet by name:
=LOOKUP(2,1/(CGC!B:B<>""),CGC!B:B)[Edited]