Lookup value across multiple sheets and return sheet name

Tanianiania

Board Regular
Joined
May 3, 2012
Messages
80
Hello

I'm struggling with this one..

I need a formula that reference a value starting in $A4 and looks for it across multiple worksheets and returns the worksheet name

There are 8 worksheets in total, the value will only appear once and won't be duplicated across sheets.

Thankyou
 
Let's say that the relevant sheet are: Sheet1, Sheet2, and Sheet3.

Insert a new worksheet and rename this new sheet Admin.

Go the Admin.

In A2 enter: Sheet1
In A3 enter: Sheet2
In A4 enter: Sheet3

Select A2:A4, type SheetList in the Name Box on the left side of the Formula Bar.

You can now use SheetList anywhere in your workbook where you need it.

That's awesome! Thanks so much :)
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Google lead me to this, I was looking for the same solution. ALADIN MY MAN ! saved me atleast 3 hours of work. I wish you well.
 
Upvote 0
Just great. Thank you for noting that.

I just have 1 little question, i am using this formula :
=IFERROR(INDEX(Sheetlist,1/(1/SMALL(IF(ISNUMBER(1/COUNTIFS(INDIRECT("'"&Sheetlist&"'!D:D"),$B7)),
ROW(INDIRECT("1:"&COUNTIFS(Sheetlist,"?*")))),COLUMNS($K6:K6)))),"")

What if the sheets are on a different workbook ? how do i link them ?
Lets say the path is C:\Desktop\workbook1.xls
Sheet names in that workbook are 1 , 2 , 3 , 4

I have to do this because putting the sheets in the same workbook and making it very heavy.
 
Upvote 0
I just have 1 little question, i am using this formula :
=IFERROR(INDEX(Sheetlist,1/(1/SMALL(IF(ISNUMBER(1/COUNTIFS(INDIRECT("'"&Sheetlist&"'!D:D"),$B7)),
ROW(INDIRECT("1:"&COUNTIFS(Sheetlist,"?*")))),COLUMNS($K6:K6)))),"")

What if the sheets are on a different workbook ? how do i link them ?
Lets say the path is C:\Desktop\workbook1.xls
Sheet names in that workbook are 1 , 2 , 3 , 4

I have to do this because putting the sheets in the same workbook and making it very heavy.

Neither COUNTIFS nor INDIRECT work with closed workbooks, alas.
 
Upvote 0
Hi I used this formula from this post;
=LOOKUP(9.99999999999999E+307,1/COUNTIF(INDIRECT("'"&Sheetlist&"'!B8:Q8"),A8),Sheetlist)
I also need to lookup a value across multiple sheets an return the sheet name.
But when the value is in multiple sheets I all the sheet names in which the value is found.
Is there a way of doing this ?
 
Upvote 0
Hi I used this formula from this post;
=LOOKUP(9.99999999999999E+307,1/COUNTIF(INDIRECT("'"&Sheetlist&"'!B8:Q8"),A8),Sheetlist)
I also need to lookup a value across multiple sheets an return the sheet name.
But when the value is in multiple sheets I all the sheet names in which the value is found.
Is there a way of doing this ?

Assuming that SheetList is defined properly and we want the sheet names listed in B8 and to the right...

In B8 control+shift+enter, not just enter, and copy across:
Rich (BB code):
=IFERROR(INDEX(SheetList,SMALL(IF(ISNUMBER(1/COUNTIFS(INDIRECT("'"&SheetList&"'!B8:Q8"),$A8)),
    ROW(INDIRECT("1:"&COUNTIFS(SheetList,"?*")))),COLUMNS($B$8:C8))),"")
 
Upvote 0
Hi All,
Does anybody know how can I adapt Aladins' formula for use in Google Sheets?
I tried to implement it "as is" (with SheetList range and relevant cell ranges to my workbook) but it returns the following error:

HTML:
Error
Did not find value '1E+308' in LOOKUP evaluation.
 
Upvote 0
You can create a name range: Formula -> Name Manager -> New, you can name is SheetList (as used in previous examples), Scope: Workbook, Refer to:
=REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")
That way you don't need to create a list in a column for your range, it works automatically for all sheets in the workbook w/o manually updating the list. The above examples work with that method out of the box.
 
Upvote 0

Forum statistics

Threads
1,224,906
Messages
6,181,666
Members
453,059
Latest member
jkevin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top