Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SCOOBYDOO
 
Posts: n/a
Default Extract number in middle of cell

Hi, does anyone know how I extract a number if it appears in the middle of a
cell but not necessarily at the same point in i.e. 'buy 35 products', 'sell
40 products'. Thanks in anticipation ; )
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Given your examples, you could use:

=MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1)*1

Test it on several other examples. It may fail if your other examples don't
follow a similar pattern.

HTH
Jason
Atlanta, GA

"SCOOBYDOO" wrote:

Hi, does anyone know how I extract a number if it appears in the middle of a
cell but not necessarily at the same point in i.e. 'buy 35 products', 'sell
40 products'. Thanks in anticipation ; )

  #3   Report Post  
N Harkawat
 
Posts: n/a
Default

=--MID(A1,FIND(" ",A1)+1,FIND("^",SUBSTITUTE(A1," ","^",2))-FIND(" ",A1)-1)
provided your cell always contains text then a space then number and then a
space

"SCOOBYDOO" wrote in message
...
Hi, does anyone know how I extract a number if it appears in the middle of
a
cell but not necessarily at the same point in i.e. 'buy 35 products',
'sell
40 products'. Thanks in anticipation ; )



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
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM
number of character occurences in a cell Ron Excel Discussion (Misc queries) 1 March 21st 05 05:55 PM
Extract date from cell Eric Excel Worksheet Functions 3 November 4th 04 07:37 PM
returning a text cell based on a number cell Josh7777777 Excel Worksheet Functions 2 November 2nd 04 08:42 PM


All times are GMT +1. The time now is 10:33 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"