Vlookup to a sheet in a workbook that changes each month

AccountantHarry

New Member
Joined
Oct 13, 2019
Messages
18
Hi everyone

I have learnt so many tricks from this forum which has made my job much easier. I have another "challenge" now:

I have inheriated a workbook with many cells lookup to a worksheet in another workbook, it is simply, however, the worksheet changes each month, for example, in Oct the formula is :
=Vlookup(A3,W:\finance\2019\monthend\[Fixed Costs data.xls]Oct 19'!$L3:$M200,2,false)

Next month in Nov it will become:
=Vlookup(A3,W:\finance\2019\monthend\[Fixed Costs data.xls]Nov 19'!$L3:$M200,2,false)

At present, I use "find and replace" to change the formula, I wonder if there is a way that I can make it dynamic, perhaps based on a cell somewhere.

Thanks in advance
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try (untested)

=Vlookup(A3,INDIRECT("W:\finance" & YEAR(A1) & "\monthend\[Fixed Costs data.xls]" & TEXT(A1,"mmm yy") & "'!$L3:$M200"),2,false)

where A1 is "Nov 19" or similar
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,985
Members
452,540
Latest member
haasro02

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