Hi Tanianiania,
Can you offer up what the data on the eight lookup sheets looks like?
Is it just a fews rows in column D of each sheet that will hold the value?
Are all the column D's in each sheet the same number of rows?
Is there data in colums C and E of the sheets?
I have this vlookup by Peo S. that looks across all the worksheets named in the named range MySheets (five in my example) in the lookup_array D2:E200 and returns the value in column E.
The second formula returns the sheet name of the sheet it is entered in.(Woorkbook has to be saved before it will function, if not saved then #VALUE error) It may or may not be of help. I have tried to incorporate both formulas to return a value from one of five sheets AND sheet name. No luck! I have a truly clunky way of doing that but....I am reluctant to offer it up at this time.
Code:
=VLOOKUP(A1,INDIRECT("'"&INDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!D2:D200"),A1)>0),0))&"'!D2:E200"),2,0)
By: Peo Sjoblom
=REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"")
You could possibly put the respective sheet names in column E and copy down to cover all the possible lookup values you might look up. If E column is out of the question then you could put the sheet names 3, 4 or say 5 columns to the right and adjust the formula to return from one of those columns.
And with all this I assume you only want the sheet name returned.
Pretty long-winded MAYBE, eh?
Regards,
Howard