How to Lookup a Value across multiple tables (approx 50 tables)

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
956
Office Version
  1. 365
Platform
  1. Windows
Hi all. This is a function that I will need to use over and over again, so I'd like to take the best approach.

What function would you recommend using in order to find a specific value across 50 tables? Think of an XLOOKUP but x50.

Can anyone point me in the direction of what I am looking for?

Many thanks in advance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try adopting the following formula...

Excel Formula:
=LET(SheetList,G2:G50,TargetSheet,INDEX(SheetList,MATCH(TRUE,COUNTIF(INDIRECT("'"&SheetList&"'!A2:A100"),H2)>0,0)),XLOOKUP(H2,INDIRECT("'"&TargetSheet&"'!A2:A100"),INDIRECT("'"&TargetSheet&"'!B2:B100"),,0,1))

...where G2:G50 contains your list of sheet names, H2 contains the lookup value, A2:A100 contains the lookup range, and B2:B100 contains the return range. Note, however, depending on how you've named your 50 sheets, it may be possible to avoid having to list your sheet names in a range of cells, as we've done in this example. How have you named your sheets?

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,451
Members
449,161
Latest member
NHOJ

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