Reading of filename from cell

Vinceaam

New Member
Joined
Feb 29, 2012
Messages
9
Hi Everyone and thanks for any help in advance.

I have an excel spreadsheet in which I am linking to another spreadsheet. From this worksheet I have to return the SUM of an OFFSET. Because of the limitations of the OFFSET function it is ineffective if you change the linked workbook and the workbooks are closed.

I am therefore trying to use the INDIRECT function to retrieve the linked workbook file name which I have output to cell A1 in the relevant worksheet. the problem is that when I use this INDIRECT function it reads the "\" in the full file name as "|". I am not sure why this is occuring.

e.g.

Cell A1 = C:\Users\Vince\desktop\[test.xlsx]

but when i run the evaluate formula on the INDIRECT funtion it reads it as

INDIRECT("C:|Users|Vince|dektop|[test.xlsx])



Any assistance would be much appreciated.


Regards


Vince
 
OK maybe you can use:

SUM(INDEX('C:\Users\Vince\desktop\[test.xlsx]NAV (Pool)'!$X:$X,MATCH(B64,'C:\Users\Vince\desktop\[test.xlsx]NAV (Pool)'!$J:$J,0)):INDEX('C:\Users\Vince\desktop\[test.xlsx]NAV (Pool)'!$X:$X,MATCH(B65,'C:\Users\Vince\desktop\[test.xlsx]NAV (Pool)'!$J:$J,0)-1))
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I have decided to pull in the sheet to the active workbook anyway. I required the historical data anyway.

Thanks for all your help
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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