Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to find data within a cell 1

Status
Not open for further replies.

robcarr

Programmer
May 15, 2002
633
GB
Hi,

I have this contents in a cell.

Organization: Exe Support (Filtered by " Exeter All ")

I use this formula to get the data

Code:
=IF(ISERROR(TRIM(MID(C1141,FIND("Exe",C1141),FIND("(",C1141)-2-FIND("Exe",C1141)))),"",TRIM(MID(C1141,FIND("Exe",C1141),FIND("(",C1141)-2-FIND("Exe",C1141))))
this works fine if the organisation begins or contains Exe

however the powers that be have changed the naming convention and I all i need to do is extract the name after the word organization: and the spaces upto the (Filtered by " Exeter All ") part.

Cant figure it out any help


Hope this is of use, Rob.[yoda]
 
Hi robcarr,

Try:
Code:
=IF(ISERROR(TRIM(MID(C1141,FIND(":",C1141)+1,FIND("(",C1141)-1-FIND(":",C1141)))),"",TRIM(MID(C1141,FIND(":",C1141)+1,FIND("(",C1141)-1-FIND(":",C1141))))
Cheers

[MS MVP - Word]
 
thansk for sorting works a treat

Hope this is of use, Rob.[yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top