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 everything from a certain word onwards

In some of about 5000 cells (all in column A) containing words and numbers
there is a certain word, for instance feb. How do I delete everything that
is located on the right side of feb? The word feb can be foumd anywhere in a
cell.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Delete everything from a certain word onwards

Highlight all cells you want, go to Find (Ctrl+F) find Feb* replace with Feb

"Thomas" wrote:

In some of about 5000 cells (all in column A) containing words and numbers
there is a certain word, for instance feb. How do I delete everything that
is located on the right side of feb? The word feb can be foumd anywhere in a
cell.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Delete everything from a certain word onwards

Hi,

To do it in the same column requires Vb but to extract it to another column
use this and drag down

=LEFT(A1,SEARCH("feb",A1)+2)

Mike

"Thomas" wrote:

In some of about 5000 cells (all in column A) containing words and numbers
there is a certain word, for instance feb. How do I delete everything that
is located on the right side of feb? The word feb can be foumd anywhere in a
cell.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Delete everything from a certain word onwards

Hi,

If all your entries are in the same case
=LEFT(A1,FIND("Feb",A1)+2)
where Feb is entered in the same case as the data in column A.

Another formula that works but is longer

=REPLACE(A1,FIND("Feb",A1)+3,99,"")
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Thomas" wrote:

In some of about 5000 cells (all in column A) containing words and numbers
there is a certain word, for instance feb. How do I delete everything that
is located on the right side of feb? The word feb can be foumd anywhere in a
cell.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Delete everything from a certain word onwards

Thank you all very much.
I got much more than expected...
Thanks again...


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
Delete space after word Niniel Excel Discussion (Misc queries) 14 June 26th 11 04:34 PM
Delete first word deb Excel Discussion (Misc queries) 2 September 21st 08 03:13 AM
How to restrict zeros in a number from 16th digit onwards Vinod[_2_] Excel Discussion (Misc queries) 5 November 19th 07 06:17 PM
How can change the color of the data series from one point onwards Saran Excel Discussion (Misc queries) 1 January 24th 07 03:12 PM
Creating a Powerpoint object (in XP onwards) with an ActiveWindow BizMark Excel Discussion (Misc queries) 0 August 12th 05 12:46 PM


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