ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding zeros to numbers in columns (https://www.excelbanter.com/excel-discussion-misc-queries/162544-adding-zeros-numbers-columns.html)

Tim[_7_]

adding zeros to numbers in columns
 
I have two columns...one has one and/or two digits numbers ( 88, 90, 7,
9...etc) and the second column has 1-2 or 3 digits (137, 8 ,56, 101...etc}

I need to change any number in column 1 to all 2 digit numbers( 88, 90, 07,
09...etc) and all numbers in column 2 to three digit numbers(137, 008 ,056,
101...etc)

Is there one function that I can use for both columns or that can be
modified for either 2 digit or 3 digit conversions ?

Thanks, Tim



RobN[_2_]

adding zeros to numbers in columns
 
Tim,

Format each column using Custom. Format the 2 digit column as 00, and the 3
digit column as 000.

Rob

"Tim" wrote in message
...
I have two columns...one has one and/or two digits numbers ( 88, 90, 7,
9...etc) and the second column has 1-2 or 3 digits (137, 8 ,56, 101...etc}

I need to change any number in column 1 to all 2 digit numbers( 88, 90,
07, 09...etc) and all numbers in column 2 to three digit numbers(137, 008
,056, 101...etc)

Is there one function that I can use for both columns or that can be
modified for either 2 digit or 3 digit conversions ?

Thanks, Tim





All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com