Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need to have a six digit value for an ID field. Old db has values ranging
from one to four characters and need to front fill with zeros |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=right("000000"&a1,6)
Assuming information is in cell a1 -- Wag more, bark less "eStreet4ever" wrote: I need to have a six digit value for an ID field. Old db has values ranging from one to four characters and need to front fill with zeros |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If this is just for display purpose then custom format the cells to 000000
The below will return the value as text and not numeric... =TEXT(A1,"000000") -- Jacob (MVP - Excel) "eStreet4ever" wrote: I need to have a six digit value for an ID field. Old db has values ranging from one to four characters and need to front fill with zeros |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting all leading zeros | Excel Discussion (Misc queries) | |||
Need 7 digit number with differnt number of leading zeros | Excel Discussion (Misc queries) | |||
Keeping leading zeros in imported data (one digit month as 05) | Excel Discussion (Misc queries) | |||
Display leading zeros in numeric value without converting to text | Excel Discussion (Misc queries) | |||
format cell to show leading zeros and make cell a three digit fiel | Excel Worksheet Functions |