Inculde a cell value in a formula link

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
I have the below formula in a sheet, all it does is copies values into a summary sheet. There are around 40 of these linking to different points for each day. The file rubber position is saved daily in the format i:\rubber position dd.mm.yy.xls

='I:\[RUBBER POSITION 16.06.08.xls]RUBBER POSITION'!$BP$205

which works fine, however what i want to do is to rewrite this formula to do the below

=='I:\[RUBBER POSITION (the value in cell b3 the date im trying to target in the formula) xls]RUBBER POSITION'!$BP$205
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi

You either need VBA or the morefunc add-in to do this as the target file is closed. If it was open, you could use INDIRECT, but as soon as the file is closed these formulas would return #REF! errors
 
Upvote 0

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
ok, what is the best way to replace using VBA? I looked at maybe trying find and replace ?

a start would do, i should be alright expanding the ranges and adjusting it and so on.
 
Upvote 0

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
sorry, thats a little beyond me. Copy the function, got that part, how would i apply this into what i need to do?



as in, put the value into the formula?

=i\rubber position & getvalue (p f s a) . xls & rubberpostion bp205

something like that?
 
Upvote 0

Forum statistics

Threads
1,190,958
Messages
5,983,843
Members
439,866
Latest member
jh3268

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
Top