Referencing part of a formula from text in another cell

kmcrae2024

New Member
Joined
Mar 20, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a VLOOKUP that's working as expected.
The formula is =VLOOKUP($A10,[2024_TEST_File.xlsx]DATASHEET!$A:$CD,COLUMN(), FALSE)
I now have put this text into cell C10: [2024_TEXT_File_KEVIN.xlsx]DATASHEET!
I want to change the VLOOKUP formula to pull the filename from cell C10 instead of having it hardcoded in the formula.
I've tried several attempts with INDIRECT and concatenating the contents of the cell but just can't get it right.
Any help would be great. thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
The formula is =VLOOKUP($A10,[2024_TEST_File.xlsx]DATASHEET!$A:$CD,COLUMN(), FALSE)
C10: [2024_TEXT_File_KEVIN.xlsx]DATASHEET!

The formula is =VLOOKUP($A10, C10 & "$A:$CD" ,COLUMN(), FALSE)


The workbook referenced in C10 MUST BE OPEN

If that doesn't work, then go one step at a time. In another worksheet in your project workbook
test the reference in C10. Just retrieve a few cells
=C10 & "A10:A20"

and build from that.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=VLOOKUP($A10,INDIRECT(C10&"$A:$CD"),COLUMN(), FALSE)
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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