![]() |
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 |
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 |
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