Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default deleting text after a certain word

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess
  #2   Report Post  
Posted to microsoft.public.excel.misc
LPS LPS is offline
external usenet poster
 
Posts: 108
Default deleting text after a certain word

You can double-click on the cell,move the cursor to the end of the data you
want to delete and press backspace until it is gone. Then press the enter key
to complete the edit.
--
LPS


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default deleting text after a certain word

Something like this:
=LEFT(A1,FIND("radius",A1)+5)

Regards,
Fred

"clcnewtoaccess" wrote in message
...
Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default deleting text after a certain word

Hi

Control+H to bring up Find and Replace
Find radius per mit
Replace radius
Replace All

--
Regards
Roger Govier

clcnewtoaccess wrote:
Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default deleting text after a certain word

Sorry I didn't make myself clear.
I have some 25,000 lines to do this in and sometimes there are more words
after and somethime less.

Thanks,
--
clcnewtoaccess


"LPS" wrote:

You can double-click on the cell,move the cursor to the end of the data you
want to delete and press backspace until it is gone. Then press the enter key
to complete the edit.
--
LPS


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default deleting text after a certain word

I believe you can use the search/replace feature
for the example you listed
pull up the replace menu

search: radius*
replace: radius

that should do it


"LPS" wrote:

You can double-click on the cell,move the cursor to the end of the data you
want to delete and press backspace until it is gone. Then press the enter key
to complete the edit.
--
LPS


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default deleting text after a certain word

I would be inclined to use a formula such as this...

=LEFT(A1,FIND("radius",A1) + 5)

Where your text is in cell A1.
--
HTH...

Jim Thomlinson


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default deleting text after a certain word

Just to clarify. The reason I would be inclined to use a formula is that I
have an aversion to deleting things. If you delete the trailing text there is
no way to get it back. If somewhere in the 25,000 records some of them go
wrong for some reason or you just want to see what it used to look like then
you are in trouble with a replace.
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

I would be inclined to use a formula such as this...

=LEFT(A1,FIND("radius",A1) + 5)

Where your text is in cell A1.
--
HTH...

Jim Thomlinson


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default deleting text after a certain word

Jim, the 1.75" is not a fixed length it varies from 3 to 7 charachters in
length such as .5", 12.00", 125.00" and so on.

Thanks,
--
clcnewtoaccess


"Jim Thomlinson" wrote:

I would be inclined to use a formula such as this...

=LEFT(A1,FIND("radius",A1) + 5)

Where your text is in cell A1.
--
HTH...

Jim Thomlinson


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default deleting text after a certain word

Jim's formula works regardless of the length of the measurement. In his
example, it will return all the characters in A1 from the first character
through the "s" in the word radius. FIND("radius",A1) returns the position
within the contents of A1 where the word radius begins. The +5 is to include
the rest of the word radius.

Hope this helps,

Hutch

"clcnewtoaccess" wrote:

Jim, the 1.75" is not a fixed length it varies from 3 to 7 charachters in
length such as .5", 12.00", 125.00" and so on.

Thanks,
--
clcnewtoaccess


"Jim Thomlinson" wrote:

I would be inclined to use a formula such as this...

=LEFT(A1,FIND("radius",A1) + 5)

Where your text is in cell A1.
--
HTH...

Jim Thomlinson


"clcnewtoaccess" wrote:

Is there a way to remove all text after a word in a cell.
Example: 1.75" radius per mit.
1.75" radius
Thanks,
--
clcnewtoaccess

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
Deleting a word from a Cell Linexe Excel Discussion (Misc queries) 2 January 21st 10 12:34 PM
Deleting the text without deleting the formula gems04 Excel Worksheet Functions 3 January 30th 09 11:21 PM
Deleting Text Felix New Users to Excel 1 January 20th 09 10:14 AM
deleting phrases in Excel and/or Word v New Users to Excel 2 February 28th 07 01:43 AM
Deleting a Row if it contains a specific word Steve Madsen Excel Discussion (Misc queries) 1 February 1st 07 09:58 PM


All times are GMT +1. The time now is 08:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"