Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Extracting certain text

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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Extracting certain text

=MID(A1,FIND("-",A1)+1,FIND(" ",A1)-FIND("-",A1)-1)
--
David Biddulph

"Confused" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Extracting certain text

Confused wrote:
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)))
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Text Brian Excel Worksheet Functions 8 March 7th 06 11:08 PM
Extracting Text only jtoy Excel Worksheet Functions 2 July 31st 05 02:30 AM
Extracting Text from the right L Ellis Excel Worksheet Functions 6 July 8th 05 08:15 PM
extracting text only Keith Excel Worksheet Functions 2 February 21st 05 12:57 PM
EXTRACTING TEXT EstherJ Excel Discussion (Misc queries) 3 December 16th 04 05:27 PM


All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"