A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
If your string is in A1, try:
=TRIM(MID(A1,FIND(":",SUBSTITUTE(A1,"-",":"))+1,FIND(":",SUBSTITUTE(A1,"-",":"),FIND(":",SUBSTITUTE(A1,"-",":"))+1)-FIND(":",SUBSTITUTE(A1,"-",":"))-1))
Hope that helps.
Cheers
Rich
PS, if you knew that the desired text would be sandwiched between ":" at each end, you can just use:
=TRIM(MID(A1,FIND(":",A1)+1,FIND(":",A1,FIND(":",A1)+1)-FIND(":",A1)-1))
but if the "bread of the sandwich" could be either ":" OR "-", then you need to use the longer formula with SUBSTITUTE, which effectively replaces any "-" with ":".