Excel INDIRECT with references to changing cell.

L

Legacy 366135

Guest
Hi guys, I'm trying to use the INDIRECT function to auto-update a formula based on a pull-down menu from cell B9 for a given table name. This table is a list of TAB-NAMES .

key:: B9 [Pull down menu] = staff name
A table of "names" on a separate sheet 'Main' from Column A4 - A99
C3 = Year [2016]
C4 = Wk, num. [12]
C9 = =MAX(DATE(C3,1,1),DATE(C3,1,1)-WEEKDAY(DATE(C3,1,1),2)+(C4-1)*7+1)
D9 = TAB-Names = formula [=TEXT(C9,"mmm dd yyyy")]
Note that I have blank spaces with in the Tab-Names
Where a Tab-Name is something like "Mar 18 2016"

Please note the formula I'm trying to use in cell F9::

=IF(ISNA(VLOOKUP($B9,INDIRECT("'"&$D$9&"'!$A:$L"),2,FALSE)),"",VLOOKUP($B9,INDIRECT("'"&$D$9&"'!$A:$L"),2,FALSE))


whereby; the working formula would read as::

=IF(ISNA(VLOOKUP($B9,'Jan 04 2016'!$A$4:$L$76,2,FALSE)),"",VLOOKUP($B9,'Jan 04 2016'!$A$4:$L$76,2,FALSE))

However, with he working formula, I need to manually change the tab name to get the information I require.

Sorry, I'm unable to attach an image of the actual display.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
that works for me
at lease the section
C9
D9
and the Vlookup works
However ISNA maybe returning an Ref error
so try

=IFERROR(VLOOKUP($B9,INDIRECT("'"&$D$9&"'!$A:$L"),2,FALSE),"")

Are you sure the Date is correctly formatted in D9 ?
have you tried just typing the value direct into D9 and see if the vlookup indirect then works ?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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