Find data to the Right of...

M

Mike R.

Hi -
I have a cell with data in which I am trying to pull the data from the right
of a colon. The challenge I am facing is the data may have more than one
colon. I only want the data to the right of the last colon.
help.
Mike
 
M

Mike H

try

=MID(SUBSTITUTE(A1,":","^",LEN(A1)-LEN(SUBSTITUTE(A1,":",""))),FIND("^",SUBSTITUTE(A1,":","^",LEN(A1)-LEN(SUBSTITUTE(A1,":",""))))+1,256)

Mike
 
R

Ron Rosenfeld

Hi -
I have a cell with data in which I am trying to pull the data from the right
of a colon. The challenge I am facing is the data may have more than one
colon. I only want the data to the right of the last colon.
help.
Mike


=TRIM(RIGHT(SUBSTITUTE(TRIM(A1),":",REPT(" ",99)),99))

If the string you are returning might be longer than 99 characters, increase
that value appropriately in both sections. e.g:

=TRIM(RIGHT(SUBSTITUTE(TRIM(A1),":",REPT(" ",1024)),1024))

--ron
 

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