Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
=--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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Maximum Number of Cell Formats | Excel Discussion (Misc queries) | |||
16 digit number wont keep alteration unless format cell to text | Excel Discussion (Misc queries) | |||
number of character occurences in a cell | Excel Discussion (Misc queries) | |||
Extract date from cell | Excel Worksheet Functions | |||
returning a text cell based on a number cell | Excel Worksheet Functions |