Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ian78
 
Posts: n/a
Default how do i remove hyphens from between numbers

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   Report Post  
ΊΌΦέΘΛ
 
Posts: n/a
Default

ctrl-f--input "-" --all replace


  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

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   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
  #5   Report Post  
ΊΌΦέΘΛ
 
Posts: n/a
Default

'0-7643-2200-1
'0-7643-2299-X
ctrl-h




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
How do i remove the hyphens between numbers without having to edi ian78 Excel Discussion (Misc queries) 2 April 12th 05 04:39 PM
Remove leading Numbers from text DBLWizard Excel Worksheet Functions 2 March 31st 05 11:08 PM
How to remove page numbers from the display? Dale Bedford Excel Discussion (Misc queries) 3 March 14th 05 03:31 PM
how do Ii remove the grey page numbers in a work sheet parker1230 Excel Discussion (Misc queries) 4 February 3rd 05 01:02 AM
how to remove separators from numbers lata Excel Discussion (Misc queries) 3 January 9th 05 01:53 PM


All times are GMT +1. The time now is 12:34 PM.

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"