ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Eliminating the dashes (https://www.excelbanter.com/excel-discussion-misc-queries/171563-eliminating-dashes.html)

Dashman

Eliminating the dashes
 
I have a column of part numbers that have dashes in them, such as 101-500 and
I want an easy way to eliminate the dash and keep the remaoning value without
edit easch individual cell ie. F2 backspace and then delete the dash. I have
tried doing a macro but I am not familiar with how to do them.

T. Valko

Eliminating the dashes
 
Try this:

Select the range of cells that contain the part numbers
Goto the menu EditReplace
Find what: enter a dash -
Replace with: nothing, leave this blank
Replace All

--
Biff
Microsoft Excel MVP


"Dashman" wrote in message
...
I have a column of part numbers that have dashes in them, such as 101-500
and
I want an easy way to eliminate the dash and keep the remaoning value
without
edit easch individual cell ie. F2 backspace and then delete the dash. I
have
tried doing a macro but I am not familiar with how to do them.




FSt1

Eliminating the dashes
 
hi
have you tried find and replace yet.

Find what: - (dash)
Replace with: (leave blank)

click replace all

Regards
FSt1

"Dashman" wrote:

I have a column of part numbers that have dashes in them, such as 101-500 and
I want an easy way to eliminate the dash and keep the remaoning value without
edit easch individual cell ie. F2 backspace and then delete the dash. I have
tried doing a macro but I am not familiar with how to do them.


Bob Phillips

Eliminating the dashes
 
Just select the column and do a Replace replacing - with nothing.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dashman" wrote in message
...
I have a column of part numbers that have dashes in them, such as 101-500
and
I want an easy way to eliminate the dash and keep the remaoning value
without
edit easch individual cell ie. F2 backspace and then delete the dash. I
have
tried doing a macro but I am not familiar with how to do them.





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com