Indirect in Vlookup

jessica_p

New Member
Joined
Aug 17, 2018
Messages
10
Hi all,

So I've been looking on the internet and trying myself, but I can't seem to make it work.
I'm looking to make a formula that's changing every month, so want to use INDIRECT.

The file has two sheets: a tab calles "Parameters" and an information tab to be filled.
On the information tab, in column B I want to VLOOKUP information based on the information in column A.
Only, I want the VLOOKUP to look up the information in the file mentioned in cel C13 and cel C14 in the parameters tab, since these cels are used in VBA for looking up the information in column A on the information tab. These cells and therefore the file to look up in change every month.

Without the INDIRECT, not looking at the Parameters tab, the VLOOKUP would look like this:

VLOOKUP($A6,'I:\Miscellaneous\01. Input\[EMEA.xlsx]Netherlands'!$A:D,4,0)

So then I would have to manually change the formula each month.

On the Parameters tab:
In cel C3 is an ever changing country mentioned via a , in this case "Netherlands".
In cel C13 is mentioned "I:\Miscellaneous\01. Input"
In cel C14 is mentioned "EMEA.xlsx"

So, then what should my VLOOKUP look like including the INDIRECT? I can't make anything of it:(
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi,

As an initial test ...

Code:
=VLOOKUP($A6,INDIRECT("'"&C13&"\["&C14&"]"&C3&"'!$A:D"),4,0)

Hope this will help
 
Upvote 0
Hi James,

Thank you for the swift reply. This formula only looks at the current tab, when the cels searching for in the INDIRECT are on a different tab "Parameters"...
 
Upvote 0
Hi again,

You could test following :

Code:
=VLOOKUP($A6,INDIRECT("'"&"Parameters!C13"&"\["&"Parameters!C14"&"]"&"Parameters!C3"&"'!$A:D"),4,0)

Hope this will help
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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