Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, All
I have a number column, I want to format the numbers to length 6: For example 456 change to 000456, 78 to 000078, 23456 to 023456. I tried to use Format (A1,"######"), but it does not work. Please help how to use VBA to format the column. Thanks kai |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=TEXT(G22,"000000")
"kai" wrote: Hi, All I have a number column, I want to format the numbers to length 6: For example 456 change to 000456, 78 to 000078, 23456 to 023456. I tried to use Format (A1,"######"), but it does not work. Please help how to use VBA to format the column. Thanks kai |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, it works.
Kai "zzzzzzzzzz" wrote in message ... =TEXT(G22,"000000") "kai" wrote: Hi, All I have a number column, I want to format the numbers to length 6: For example 456 change to 000456, 78 to 000078, 23456 to 023456. I tried to use Format (A1,"######"), but it does not work. Please help how to use VBA to format the column. Thanks kai |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Format(A1, "000000")
|
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks.
Kai "Michael Malinsky" wrote in message oups.com... Format(A1, "000000") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
length principle of a number within a cell | Excel Discussion (Misc queries) | |||
Maximum length of a number | Excel Worksheet Functions | |||
calculate the number of words in a row whose length is greater than 2 | Excel Worksheet Functions | |||
Need to fix the number filed so all numbers are 8 in length | Excel Programming | |||
Number length headache | Excel Programming |