Can I make the formula (pathway) update when I change the value of A2?

MPH88

New Member
Joined
Sep 28, 2017
Messages
13
I am using the formula below to get a cell value from another file:

A3 ='/Users/MH/Base Rate Tables/[SampleBaseRateProposed118.xls]Sheet1'!$A1

If I input the name of the file I want to refer to in cell A2, can I make the formula (pathway) update when I change the value of A2?

Basically, I want this:

A2 = Find_Whatever_File_I_Input_In_Cell_A2

A3 ='/Users/MH /Base Rate Tables/[Find_Whatever_File_I_Input_In_Cell_A2]Sheet1'!$A1
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I thihk you would have to use this syntax
A3 ="/Users/MH /Base Rate Tables/["&A2&"]Sheet1!$A1"

I don't know what you are using it for, but it probably needs the drive letter included, eg. "C:\..."
 
Last edited:
Upvote 0
If I input the name of the file I want to refer to in cell A2, can I make the formula (pathway) update when I change the value of A2?

yes, you would use INDIRECT(), but that only works if the referenced file is open...
=indirect("'["&A2&"",xlsls]Sheet1'!$A1"
 
Upvote 0
This helps. However, I'm trying to avoid having the files open.

I got my sheet working. I re-approached the problem and used a different solution. Thanks for the new trick, tho!
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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