Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Concatenate with leading zeros
I need to input a formulat to concatenate three cells together. The first
cell is a nine digit number ex. 001234567 the second cell is a one digit number ex. 8 and the third cell is a five digit number ex. 00123. I how do I concatenate these together? -- Nikki |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Concatenate with leading zeros
Use the & operator, eg =A1&A2&A3
If you've formatted the cells as text, or used ' when typing the values it will display the leading zeros as entered. On Aug 4, 3:34*pm, Nikki wrote: I need to input a formulat to concatenate three cells together. The first cell is a nine digit number ex. 001234567 the second cell is a one digit number ex. 8 and the third cell is a five digit number ex. 00123. I how do I concatenate these together? -- Nikki |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Concatenate with leading zeros
001234567 is not a number unless it is a formatted number.
Excel would drop the leading zeros if a real number. Assume 1234567 in A1, 8 in A2, 123 in A3 =TEXT(A1,"000000000")&A2&TEXT(A3,"00000") Gord Dibben MS Excel MVP On Mon, 4 Aug 2008 12:34:12 -0700, Nikki wrote: I need to input a formulat to concatenate three cells together. The first cell is a nine digit number ex. 001234567 the second cell is a one digit number ex. 8 and the third cell is a five digit number ex. 00123. I how do I concatenate these together? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I concatenate text with leading zeros | Excel Worksheet Functions | |||
Leading Zeros | Excel Worksheet Functions | |||
add leading zeros | Excel Worksheet Functions | |||
save text field w/ leading zeros in .csv format & not lose zeros? | Excel Discussion (Misc queries) | |||
Leading zeros | Excel Discussion (Misc queries) |