Lookup across whole workbook (muliple sheets)
Solved/Closed
Related:
- Search entire workbook excel formula
- How to search entire excel workbook - Best answers
- Excel formula to search entire workbook for text - Best answers
- Excel grade formula - Guide
- 1st, 2nd, 3rd position formula in excel ✓ - Office Software Forum
- Number to words in excel formula - Guide
- Date formula in excel dd/mm/yyyy - Guide
- How to calculate position (1st,2nd,3rd) in excel....? - Excel Forum
3 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Updated on Jan 26, 2019 at 05:05 AM
Updated on Jan 26, 2019 at 05:05 AM
Hey,
This is from my notes. I have not personally checked recently. Perhaps it will work.
In sheet1 (or any sheet), enter the sheet names. And name this range of cells as "Mysheets". Then use this formula:
=VLOOKUP(A1,INDIRECT("'"&INDEX(MySheets,MATCH(TRUE,COUNTIF(INDIRECT("'"&MySheets&"'!A1:A50"),A1)>0,0))&"'!A:B"),2,0)
Invoke this formula with CONTROL+SHIFT+ENTER.
Hope, it will resolve the issue!
This is from my notes. I have not personally checked recently. Perhaps it will work.
In sheet1 (or any sheet), enter the sheet names. And name this range of cells as "Mysheets". Then use this formula:
=VLOOKUP(A1,INDIRECT("'"&INDEX(MySheets,MATCH(TRUE,COUNTIF(INDIRECT("'"&MySheets&"'!A1:A50"),A1)>0,0))&"'!A:B"),2,0)
Invoke this formula with CONTROL+SHIFT+ENTER.
Hope, it will resolve the issue!
Apr 12, 2016 at 05:25 AM
If anyone is struggling to use this formula, you need to understand how both Index(Match()) and VlookUp() works first. One you have that understanding, this formula is child's play..... I added an Iferror statement because I loath getting N/A# 's....... I love it !
My script below :
{=IFERROR(VLOOKUP($H7,INDIRECT("'"&INDEX(MySheets,MATCH(TRUE,COUNTIF(INDIRECT("'"&MySheets&"'!$B$1:$H$1000"),$H7)>0,0))&"'!B:H"),7,0),"")}
TIP
$H7 is the code I am looking up
$B$1:$H$1000 and B:H is the total range on each worksheet i'm looking up
7 is the column where the result I'm looking for
Jul 26, 2016 at 01:52 PM
once i renamed that range of cells in the sheet it this formula worked for me
Feb 10, 2017 at 03:47 AM
=VLOOKUP(A1, INDIRECT("'"&INDEX(Mysheets,MATCH(TRUE,COUNTIF(INDIRECT("'"&Mysheets&"'!$b$5:$b$1000"),A1)>0,0))&"'!b"),2,0)
Regrads,
Mark