removing characters from the right

jed_vii

New Member
Joined
Apr 14, 2005
Messages
3
In column B I have a list of names generated by an IF function. The IF function gets the information from a different sheet which gets its info from a file containing a list of file names in a folder including sub-direcotries. So the column the IF is pulling the info from also contains other info I'm getting in different columns (hence the IF function).

Here's my problem. In B, I have the folder the files in column A are in. but I don't want the entire address of the folder, I just want the folder name, so I want to delete the frist 38 characters of all cells in B. I want this to happen automatically. I don't want to have to run a "CTRL+H" macro(currently my best option), and the Data->text to column doesn't seem to work because B contains only formulas, not actualy text.
any help would be appreciated.

-jed
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

moneytastesbad

Board Regular
Joined
Aug 28, 2006
Messages
106
In column B I have a list of names generated by an IF function. The IF function gets the information from a different sheet which gets its info from a file containing a list of file names in a folder including sub-direcotries. So the column the IF is pulling the info from also contains other info I'm getting in different columns (hence the IF function).

Here's my problem. In B, I have the folder the files in column A are in. but I don't want the entire address of the folder, I just want the folder name, so I want to delete the frist 38 characters of all cells in B. I want this to happen automatically. I don't want to have to run a "CTRL+H" macro(currently my best option), and the Data->text to column doesn't seem to work because B contains only formulas, not actualy text.
any help would be appreciated.

-jed



Try this...

Code:
=REPLACE("cell where you are getting file address",1,38,"")
 

jed_vii

New Member
Joined
Apr 14, 2005
Messages
3
worked like a champ

Thanks. When I did the search for this type of function, the replace didn't come up--just in the all, which I didn't have the patience to look through.

This was extraordinarily helpful.

THANKS!
-jed
 

Forum statistics

Threads
1,141,587
Messages
5,707,236
Members
421,498
Latest member
matinebi

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