Extract file name from formula

Kevinax

New Member
Joined
Mar 29, 2010
Messages
25
I have a formula linking to a separate file. I need to extract the file name as text. For example: formula says
=+'W:\test budget\[East.xlsx]2015 Budget'!$B$1
In the cell below I need 'East.xlsx
 
Why don't you enter in A1
Rich (BB code):
=REPLACE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),1,
  FIND("[",CELL("filename",A1)),"")
as suggested?
Aladin, I believe the OP wants to extract the name of the file the formula links to, not the name of the file that the formula resides in.


Kevinax
I don't think you will be able to do it in a single process without a macro. (It's a very simple one. :))
 
Last edited:
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,215,370
Messages
6,124,526
Members
449,169
Latest member
mm424

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