flie path at a lower directory

cmendes

Board Regular
Joined
Jan 24, 2011
Messages
66
Dear all,

I want a formula that gives me the path of the file but without a last folder. I know the formula for the complete path: =LEFT(CELL("filename"),FIND("[",CELL("filename"),1)-1)

For example, the complete file path is:
C:\Documents and Settings\Cesar\MyDocuments\fTIR\wt_RAL-315\1_28_11Ral_WT_1\Results\

I'm looking for a formula that gives me:

C:\Documents and Settings\Cesar\MyDocuments\fTIR\wt_RAL-315\1_28_11Ral_WT_1\

i.e. without 'Results\'

Many thanks!!
Cesar
<table style="width: 471px; height: 38px;" border="0" cellpadding="0" cellspacing="0"><col width="325"><tr height="17"> <td class="xl65" style="height: 12.75pt; width: 244pt;" width="325" height="17">
</td> </tr></table>
 
By the way, does this hold true to all the excel files that I use in the future? I tried in another saved file and it did not work, I had to go to Defined Names>Define Name.
Thanks
C
Yes, you'd have to do the same thing in each file.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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