ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Find data to the Right of... (https://www.excelbanter.com/excel-worksheet-functions/199249-find-data-right.html)

Mike R.

Find data to the Right of...
 
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

Mike H

Find data to the Right of...
 
try

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

Mike

"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


Ron Rosenfeld

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


All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com