Extracting certain text

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.
 
G

Glenn

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)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top