PC Review


Reply
Thread Tools Rate Thread

Deleting Hyphens or Dashes from multiple cells without deleting the remaining content

 
 
rmaloy
Guest
Posts: n/a
 
      9th Feb 2004
I have a column in excel that has a list of circuit id's. All of these
have hyphens/dashes in them and some are in different locations. (Ex.
13-44M-121-0001, 13-44M1-210-0001) Is there anyway to delete all of the
hyphens/dashes, without having to go into each cell individually? I
still need the characters to remain in order, just without the hyphens.
(Ex. 1344M1210001, 1344M12100001)

Thanks!


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      9th Feb 2004
As long as there are letters in the sequences,

Select all the cells or an area that contains all the cells but not hyphens
you do not want to delete.

then do Edit=>Replace

Replace What: =

Replace With: ' leave blank

Then click OK

--
Regards,
Tom Ogilvy


rmaloy > <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a column in excel that has a list of circuit id's. All of these
> have hyphens/dashes in them and some are in different locations. (Ex.
> 13-44M-121-0001, 13-44M1-210-0001) Is there anyway to delete all of the
> hyphens/dashes, without having to go into each cell individually? I
> still need the characters to remain in order, just without the hyphens.
> (Ex. 1344M1210001, 1344M12100001)
>
> Thanks!
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Frank Kabel
Guest
Posts: n/a
 
      9th Feb 2004
Hi
try 'Search and Replace' from the Edit menu

Frank

> I have a column in excel that has a list of circuit id's. All of

these
> have hyphens/dashes in them and some are in different locations. (Ex.
> 13-44M-121-0001, 13-44M1-210-0001) Is there anyway to delete all of
> the hyphens/dashes, without having to go into each cell individually?
> I still need the characters to remain in order, just without the
> hyphens. (Ex. 1344M1210001, 1344M12100001)
>
> Thanks!



 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      9th Feb 2004
This is one way:


Set theRange = Sheet1.Range("A14") ''your range here
For Each oCell In theRange
oCell.Value = Replace(oCell.Value, "-", "")
Next
Set theRange = Nothing

--

Ray at home
Microsoft ASP MVP


"rmaloy >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a column in excel that has a list of circuit id's. All of these
> have hyphens/dashes in them and some are in different locations. (Ex.
> 13-44M-121-0001, 13-44M1-210-0001) Is there anyway to delete all of the
> hyphens/dashes, without having to go into each cell individually? I
> still need the characters to remain in order, just without the hyphens.
> (Ex. 1344M1210001, 1344M12100001)
>
> Thanks!
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      9th Feb 2004
Just for interest.
In the US menu structure it is just Edit=>Replace

--
Regards,
Tom Ogilvy


Frank Kabel <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> Hi
> try 'Search and Replace' from the Edit menu
>
> Frank
>
> > I have a column in excel that has a list of circuit id's. All of

> these
> > have hyphens/dashes in them and some are in different locations. (Ex.
> > 13-44M-121-0001, 13-44M1-210-0001) Is there anyway to delete all of
> > the hyphens/dashes, without having to go into each cell individually?
> > I still need the characters to remain in order, just without the
> > hyphens. (Ex. 1344M1210001, 1344M12100001)
> >
> > Thanks!

>
>



 
Reply With Quote
 
rmaloy
Guest
Posts: n/a
 
      9th Feb 2004
THANK YOU SO MUCH!!!!

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Rows where some Cells have same Content =?Utf-8?B?SmFtZXNU?= Microsoft Excel Programming 2 8th Sep 2004 08:41 PM
Re: deleting content in cells JE McGimpsey Microsoft Excel Programming 1 25th Feb 2004 09:31 AM
Deleting dashes from text & numbers chainsaw Microsoft Excel Worksheet Functions 7 23rd Feb 2004 05:27 PM
Dashes to Lines-Deleting Lew Microsoft Word Document Management 4 5th Feb 2004 02:49 AM
deleting multiple cells ElvisFonzarelli Microsoft Excel Misc 1 3rd Jan 2004 04:19 AM


Features
 

Advertising
 

Newsgroups
 


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