View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Find data to the Right of...

On Mon, 18 Aug 2008 09:05:01 -0700, Mike R.
wrote:

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