Delete added comments

D

Doman

Hi!

I got this column where article numbers (text and numbers combined) are
listed. A comment is added to each article number and is written in
different languages.

How do I delete this comment so only the article numbers remain without
the comment?
Example:

COLUMN A
9857855455 - Wheel
5845-565 - Screw
268749-001 - Chip
9857855455 - Hjul
5845-565 - Skruv
9857855455 - Wheel
268749-001 - Chip

WHAT I WANT:
9857855455
5845-565
268749-001
9857855455
5845-565
9857855455
268749-001


Thanks for any help!
 
B

Bondi

Doman said:
Hi!

I got this column where article numbers (text and numbers combined) are
listed. A comment is added to each article number and is written in
different languages.

How do I delete this comment so only the article numbers remain without
the comment?
Example:

COLUMN A
9857855455 - Wheel
5845-565 - Screw
268749-001 - Chip
9857855455 - Hjul
5845-565 - Skruv
9857855455 - Wheel
268749-001 - Chip

WHAT I WANT:
9857855455
5845-565
268749-001
9857855455
5845-565
9857855455
268749-001


Thanks for any help!

Hi Doman,

Maybe you can use a helper column to the right of your list and the
copy down something like this:

=LEFT(A1,SEARCH(" ",A1,1))

This will look for the first Space in your cell and take the stuff to
the left of it. It seemed to work on your sample data.

Regards,
Bondi
 
S

Special-K

Assuming *all* your data has " - " in each entry try this function

=LEFT(A1,(SEARCH(" - ",A1,1)-1))

Regards
Special-K
 

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