Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have used basic IF ISNUMBER functions before to identify parts of cells and return the value in a different cell, such as:


How can i adapt this formula to look for a number/txt value and strip it out? Or would it be better to write new formula? Feel free to tell me where i've gone wrong previously! ;)

Note: the above formula isn't for the data below

Here is an example of the cell contents, I want to strip out the sizes (3L, 10L etc), the 'BARE ROOT' / 'ROOT BALL' / 'FEATHERED' and Girth sizes leaving only the names remaining.

ACANTHUS spinosus                  3L
ACANTHUS spinosus                  3L
ACER campestre                     10L
ACER campestre                     3L
ACER campestre                     BARE ROOT           14/16GIRTH
ACER campestre                     BARE ROOT 150/175cm
ACER campestre                     BARE ROOT 30/40cm
ACER campestre                     BARE ROOT 40/60cm
ACER campestre                     BARE ROOT 60/80cm
ACER campestre                     BARE ROOT 80/100cm
ACER campestre                     BARE ROOT 80/100cm
ACER campestre                     BARE ROOT 80/100cm
ACER campestre                     BARE ROOT 80/100cm
ACER campestre 'Elsrijk'           ROOT BALL           10/12GIRTH
ACER campestre 'Elsrijk'           ROOT BALL           14/16GIRTH
ACER japonicum 'Aconitifolium'     10L       125/150cm
ACER japonicum 'Aconitifolium'     10L       60/80cm
ACER negundo 'Flamingo'            50L       200/250cm
ACER p. d. 'Dissectum Atropurpurea'70L                 16/18GIRTH
ACER p. d. 'Dissectum Palmatifidum'25L                 FEATHERED
ACER p. d. 'Dissectum Palmatifidum'25L                 FEATHERED

More info
Looking through the sheet, the maxium name length is 35 characters, anything after that is size related and stripable, so some code to strip out after character 35 would be enough, then something to remove instances of more than 1 space would suffice...

Method 1
I've used {=LEFT(C2, MATCH(TRUE,ISNUMBER(1*MID(C2, ROW($1:$65), 1)),0)-1)} which is close to what i need, now just a way to identify the BARE ROOT and ROOT BALL, C2 is my cell... Also want it to not report 'ERROR' when no number is found... :)

Method 2 (Current Solution)
=LEFT(C2,35) as suggested by Paul below!

share|improve this question
Are there things that could serve as column delimiters (tab charachters)? – soandos Dec 9 '11 at 12:20
If everything after 35 is "not name" then surely =LEFT(C2,35) would be enough? – Paul Dec 9 '11 at 13:08
Also, why not import using fixed width columns and say column 1 is 35 characters wide? – Paul Dec 9 '11 at 13:09
Don't forget to trim off the trailing spaces: =TRIM(LEFT(C2,35)) – Tony Dallimore Dec 9 '11 at 15:20
@Paul. Although I added 10% to your answer, I think you should get the points for the original 90%. – Tony Dallimore Dec 22 '11 at 11:24
up vote 1 down vote accepted

This question was answered in the comments and was collaborative, but here is my answer combined with Tony's:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .