Custom

H

Howard

I will have a column of nine digit numbers. The first six digits are 999999;
the last three digits will vary. How do I format the column so I just have
to type in the last three digits and the first six will fill with 9s
automatically?
I tried custom 999999###. That works where the last three digits are 101,
for example. However it doesn't work where the last three digits are 007. I
get 9999997. It doesn't pick up 00.
Thanks,
 
G

Gord Dibben

Howard

This one works for me.

Custom 999999000

Enter 007 and return 999999007


Gord Dibben Excel MVP
 
D

Dave Peterson

Instead of formatting, have you thought of changing the value?

You can put 999999000 in a cell.
copy that cell
select your range to adjust and
edit|paste special|Check add

Clean up that cell with 999999000

I find that sometimes the way the cell is displayed is nice, but not sufficient
for lots of stuff.

=if(a1>99999000,"x","y")

would be the kind of thing that would drive me nuts if I saw 999999007 in A1!
 
Top