Delete Certain Text From Cells

  • Thread starter Thread starter Adding Text Without Deleting
  • Start date Start date
A

Adding Text Without Deleting

I have Excel 2007 and I have over 5000 products. Each product has different
text. For example one cell says (spray 2.5oz) the next cell says (edu spray
3.3oz). Picture over 5000 cells with this kind of data. How do I delete all
of the text except for the (2.5oz or the 3.3oz)?
 
If, as your two examples show, your quanity and units are always the last
text in the cell **AND** if they are always connected together without a
space character between them, then try this formula...

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
 
Another way..

The below formula will extract contents from the 1st numeric onwards..Try
and post back whether this will work for all your data?

spray 2.5oz
body spray 2.5oz

=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),LEN(A1))

If this post helps click Yes
 

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

Back
Top