can I use the indirect function for this? vlookup with multiple workbooks.

dooder

New Member
Joined
Jun 27, 2017
Messages
11
Quick question version, I want to include a variable in a vlookup function to direct it to a specific worksheet.

Slightly longer version
Currently I have a pretty big dynamic spreadsheet. To simplify, let's say I have a list of 30,000 userid in a "master" workbook. Each user has a col indicating a certain status (Y/N). This status changes frequently (and by different people), so it has a separate workbook. I then do a simple vlookup by userid in the "master" workbook. I have a "current" sheet in that workbook that has the current Y/N status. Quarterly, I need to lock this status, so I create new sheet title 2019Q1, 2019Q2, etc, where I copy/paste the current sheet (and protect it).


My issue is that frequently, I need to recreate an output from my "master" workbook using a particular quarter's data. My current process is to do a find/replace, and change "current" with "2019Q1" or 2020Q1", etc. across the whole workbook After a lengthy recalculation, I do my outputs. It works fine, but seems clunky and slow. Is there a better way... maybe using the indirect function? Basically, I want to plug a 20XXQY variable in, and have all the vlookups be directed to a specific worksheet.

thanks in advance.
 
I think I figured out a way to cut down on the numbers of columns that I would need to find/replace from over 20 to maybe 3 or 4... so maybe that's the way to go. Thanks.
 
Upvote 0

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

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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