Extracting certain text

  • Thread starter Thread starter Confused
  • Start date Start date
C

Confused

I have a list of text in each cell where I have to extract the #% after the
"Y-"
Here is an example, the string is Y-24.47% P-24.37%. I need to extract 24.47%
Is there a formula for this?

Any help is much appreciated.

Thanks.
 
Confused said:
I have a list of text in each cell where I have to extract the #% after the
"Y-"
Here is an example, the string is Y-24.47% P-24.37%. I need to extract 24.47%
Is there a formula for this?

Any help is much appreciated.

Thanks.

With your strings of text in A2 and down and your search terms ("Y-", "P-",
etc.) in B1 and across as needed, put this in B2 and copy down and right:

=MID($A2,FIND(B$1,$A2)+LEN(B$1),FIND(" ",$A2&"
",FIND(B$1,$A2))-(FIND(B$1,$A2)+LEN(B$1)))
 
Back
Top