Afternoon,
I'm trying to use a Vlookup to look if a number appears in the same single column (D) across 88 worksheets. I'm then hiding this cell and using a conditional format in the adjacent cell with an =IF(O4>0,"Y") to let me know the value has been found. I'm sure this isn't the most efficient way to do this, but I can't figure out another way.
If I use:
=IFERROR(VLOOKUP(J4,'Smith, John'!D2:D101,1,FALSE),IFERROR(VLOOKUP(J4,'Smith2, John'!D2:D101,1,FALSE),IFERROR(VLOOKUP(J4,'Smith3, John'!D2:D101,1,FALSE),IFERROR(VLOOKUP(J4,'Smith4, John'!D2:D101,1,FALSE),IFERROR(VLOOKUP(J4,'Smith5, John'!D2:D101,1,FALSE),IFERROR(VLOOKUP(J4,'Smith6, John'!D2:D101,1,FALSE),"")))))) it works fine, but I can only have the 64 nested if statements, so I'll run out.
I've tried several variations of creating an array on the same worksheet "MySheets" and listing the range, but I get a ?Name error.
=VLOOKUP(B1,INDIRECT("'"&INDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!D2:D101"),J4)>0),0))&"'!D2:D101"),1,False)
Any tips? I'm stumped.
Bookmarks