Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
how do i remove hyphens from between numbers witout having to edit manually I
have a column of 3000 numbers similar to below. 0-7643-2200-1 becomes 764322001 0-7643-2299-X becomes 076432299X if i format the column as text and then use the search and replace dialog box Ctrl-H search for hyphen and replace with nothing it works on numbers which end in a letter ie -X but will remove the 0 at the beginning of numbers not ending in a letter ie -1 in my example Can anybody help Thanks Ian |
#2
![]() |
|||
|
|||
![]()
ctrl-f--input "-" --all replace
|
#3
![]() |
|||
|
|||
![]()
You could use a formula in the next column, then copy and
paste special value over itself: =SUBSTITUTE(A1,"-","") HTH Jason Atlanta, GA -----Original Message----- how do i remove hyphens from between numbers witout having to edit manually I have a column of 3000 numbers similar to below. 0-7643-2200-1 becomes 764322001 0-7643-2299-X becomes 076432299X if i format the column as text and then use the search and replace dialog box Ctrl-H search for hyphen and replace with nothing it works on numbers which end in a letter ie -X but will remove the 0 at the beginning of numbers not ending in a letter ie -1 in my example Can anybody help Thanks Ian . |
#4
![]() |
|||
|
|||
![]()
You could format the cell so that it shows the leading 0's.
format|cells|number tab|custom category: 0000000000 (It won't change the text cells.) Or you could use a helper cell and a formula: =substitute(a1,"-","") and drag down. and then convert to values and delete the original column. ian78 wrote: how do i remove hyphens from between numbers witout having to edit manually I have a column of 3000 numbers similar to below. 0-7643-2200-1 becomes 764322001 0-7643-2299-X becomes 076432299X if i format the column as text and then use the search and replace dialog box Ctrl-H search for hyphen and replace with nothing it works on numbers which end in a letter ie -X but will remove the 0 at the beginning of numbers not ending in a letter ie -1 in my example Can anybody help Thanks Ian -- Dave Peterson |
#6
![]() |
|||
|
|||
![]()
try this to change format first and then strip out the -
Sub fixstring() For Each c In Selection c.NumberFormat = "@" c.Value = Application.Substitute(c, "-", "") Next End Sub -- Don Guillett SalesAid Software "ian78" wrote in message ... how do i remove hyphens from between numbers witout having to edit manually I have a column of 3000 numbers similar to below. 0-7643-2200-1 becomes 764322001 0-7643-2299-X becomes 076432299X if i format the column as text and then use the search and replace dialog box Ctrl-H search for hyphen and replace with nothing it works on numbers which end in a letter ie -X but will remove the 0 at the beginning of numbers not ending in a letter ie -1 in my example Can anybody help Thanks Ian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i remove the hyphens between numbers without having to edi | Excel Discussion (Misc queries) | |||
Remove leading Numbers from text | Excel Worksheet Functions | |||
How to remove page numbers from the display? | Excel Discussion (Misc queries) | |||
how do Ii remove the grey page numbers in a work sheet | Excel Discussion (Misc queries) | |||
how to remove separators from numbers | Excel Discussion (Misc queries) |