extracting data from a string
Hi
One way
=IF(LEFT(A1,8)<"Callable","",
LEFT(MID(A1,FIND("/",A1)-2,255),FIND("-",MID(A1,FIND("/",A1)-2,255))-2))
--
Regards
Roger Govier
"Iguss" wrote in message
...
Dear,
I already have exhausted my sources to find a formula that would extract
specific text based on a criteria.
So here it is
I have
Callable - Sinking Fund 05/01/08@100 - Escrowed
I need to extract text 05/01/08@100 from that string if it is
"Callable",
and move remaining text to next column if it isn't.
=IF(ISNUMBER(FIND("Callable",C60)),RIGHT(C60,3+LEN (C60)-FIND("/",C60)),LEFT(C60,LEN(C60)-FIND("
",C60)))
That takes care of left part and leaved 05/01/08@100 - Escrowed
However this
=IF(ISNUMBER(FIND("Callable",C61)),(LEFT(C61,LEN(C 61)-FIND("-",C61))))
gives Callable - Sinking Fund 05/01/08@100
Which part of the function I am missing (MID) that will give me exactly
if Callable then 05/01/08@100 if not then Escrowed goes to next
column.
Thank you for your help.
|