trim everything from left of first underscore in the text?

  • Thread starter Mitchell_Collen via OfficeKB.com
  • Start date
M

Mitchell_Collen via OfficeKB.com

Hi
I am trying to remove all characters to the left of the first occurence of an
underscore but have not found a good solution. do you know how to do this?
thanks in advance - M

I have test in columns like this:

date_123232_5.txt
date234._2343453_356.txt

I want it to look like this:

123232_5.txt
2343453_356.txt

these will later be transformed to hyperlinks to the exact file.
 
M

Mike H

Hi,

With your text in a1 try this and drag down

=MID(A1,FIND("_",A1)+1,LEN(A1))

Mike
 
D

Dave Peterson

You could use a helper cell with a formula:

=MID(A1,SEARCH("_",A1,1)+1,255)

The 255 is just a big number that is large enough to grab all the remaining
text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top