View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
babs babs is offline
external usenet poster
 
Posts: 38
Default How can I delete a space/character from a number of fields?

And therein lies my problem, thank you. I was lazy with the example, my
column actually has 18 digits! Is there anyway that I can expand to 18
digits?




"Gord Dibben" wrote:

After editreplace change formatting to Number with no DP.

Your example shows 14 digits..........Excel will handle up to and including
15 digits.


Gord Dibben MS Excel MVP

On Wed, 17 Feb 2010 11:49:02 -0800, BABs
wrote:

This works but changes everything to scientific format or rounds off to the
nearest thousand. Can't figure out how to keep the hundreds, tens and ones.
????



"Ryan H" wrote:

There is a very easy way without using code. I will assume you are using
Excel 2007. Just highlight the column with the hyphenated numbers, click the
Find & Select button in the Home tab on the Ribbon, click Replace, in the
Find What field type -, and leave the Replace With field empty, then click
the Replace All button. That should do it for you.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"BABs" wrote:

I have a column that has hyphenated numbers (XX-XX-XX-XXX-XXXX) and I need to
get rid of the hyphens. They are all in the same format so I think if I
could write code to del the 3rd, 6th, 9th, etc characters from a cell, it
would work. I just can't seem to figure the code out. or is there an easier
way?
Thx.


.