Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default is there a way to delete all characters to the right of a ":"?

XL 2003

the number of characters to the left of the ":" will vary

....Lisa

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: is there a way to delete all characters to the right of a ":"?

Yes, there is a way to delete all characters to the right of a ":" in Excel 2003. You can use the "Text to Columns" feature to split the text into separate columns based on the ":" delimiter and then delete the unwanted column.

Here are the steps to do this:
  1. Select the cell or range of cells that contain the text you want to split.
  2. Go to the "Data" tab in the Excel ribbon and click on "Text to Columns".
  3. In the "Convert Text to Columns Wizard" dialog box, choose "Delimited" and click "Next".
  4. Check the box next to "Other" and enter ":" in the box next to it. You should see a preview of how the text will be split.
  5. Click "Next" and choose the destination for the split data. You can choose to overwrite the original cells or specify a new range.
  6. Click "Finish" to split the text into separate columns.
  7. Now you can delete the unwanted column by selecting it and pressing the "Delete" key on your keyboard.

That's it! The text to the right of the ":" should now be deleted.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default is there a way to delete all characters to the right of a ":"?

Hi, Lisa-
This formula will do it:
=MID(A1,1,FIND(":",A1,1)-1)

Dave O

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default is there a way to delete all characters to the right of a ":"?

XL 2003

the number of characters to the left of the ":" will vary


This will leave the colon and remove everything after it...

=LEFT(A20,FIND(":",A20))

This will remove the colon also...

=LEFT(A20,FIND(":",A20)-1)

Rick
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default is there a way to delete all characters to the right of a ":"?

On Aug 13, 4:17 pm, "Rick Rothstein \(MVP - VB\)"
wrote:
XL 2003


the number of characters to the left of the ":" will vary


This will leave the colon and remove everything after it...

=LEFT(A20,FIND(":",A20))

This will remove the colon also...

=LEFT(A20,FIND(":",A20)-1)

Rick


Thank you!!!

....Lisa

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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 07:03 PM.

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"