Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Delete Certain Text From Cells

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)?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Delete Certain Text From Cells

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))

--
Rick (MVP - Excel)


"Adding Text Without Deleting"
om wrote in message
...
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)?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Delete Certain Text From Cells

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&"01234 56789")),LEN(A1))

If this post helps click Yes
---------------
Jacob Skaria


"Adding Text Without Deleting" wrote:

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)?

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
how can I delete cells containing text within a range of cells jackwmbg Excel Discussion (Misc queries) 2 June 6th 08 09:08 PM
Delete Repeating text in cells Don B Excel Discussion (Misc queries) 2 September 3rd 06 10:24 PM
How do I delete text to right of a comma in a range of cells? Mike M. Excel Discussion (Misc queries) 2 January 14th 06 06:24 PM
Delete text in cells but keep formula YanYan Excel Worksheet Functions 4 December 1st 05 01:08 PM
Delete asterisks from text in cells? Glennlane1 Excel Worksheet Functions 1 February 8th 05 02:46 AM


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