Dynamic Column lookup with different pages in excel
- by CinCity
I have a multi page spread sheet in excel that needs to read information dynamically from columns on other pages and have these values show up on a main page.
This is the formula I'm using:
=IF(VLOOKUP($B:$B,'CP01'!$B:$BN,3,FALSE)="r","r",
IF(VLOOKUP($B:$B,'CP01'!$B:$BN,3,FALSE)="a","a",""))
CP01 is a sheet in the excel file and instead of look at the specific sheet I want it to look at all of the sheets in the file.
Is there a way to do this as an excel formula or with excel-VBA?
Edit: I also tried CP* (* being a wildcard character) and it didn't work.
Edit2: Is there a way to match the value where the 'CP' is placed with its a other columns value?