VLOOKUP Text with INDIRECT

jski21

Board Regular
Joined
Jan 2, 2019
Messages
133
Office Version
  1. 2016
Platform
  1. Windows
Good Day Excelites,

Trying to get this formula to work across 17 tabs: =VLOOKUP("Yr 47",INDIRECT("'"&P$1&"'!"&"S1:T9"),18,0).

Excerpt of the range in each spreadsheet is here, along with the dynamic cell (Q1) that is picking up the numbered spreadsheet name:

NDA WARD REPORT - 2021-22 - Yrs 40-47.xlsm
PQRST
112#N/AYr12
2Yr 400.00
3Yr 410.00
4Yr 420.00
5Yr 430.00
6Yr 440.00
7Yr 4556,876.11
8Yr 46435,294.00
9Yr 47435,294.00
Charts
Cell Formulas
RangeFormula
P1P1=RIGHT(O1,2)
Q1Q1=VLOOKUP("Yr 47",INDIRECT("'"&P$1&"'!"&"S1:T9"),18,0)


Trying to get Cell Q1 to pull in Cell T9. Current result is #N/A. BTW, "Yr 47" will change from year-to-year as time goes on. I don't use INDIRECT that often, but am finding more uses for it as I explore ways to improve reporting. Any assistance would be most appreciated.

Thanks all and enjoy your day.


jski
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
As you only have two columns that you are looking up, the 18 should be 2
 
Upvote 0
Solution
Thought it was the # of columns from the left in each sheet, but now see it is range dependent. You've been very helpful in the past Fluff and as always, thanks!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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