ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formatting numbers (https://www.excelbanter.com/excel-discussion-misc-queries/40858-formatting-numbers.html)

Robin Blackwell

Formatting numbers
 
Hi all,

I have a huge column of numbers that I wish to sort into increasing value.
They all contain 8 digits (eg 12345678), but a large number have leading
zeros (eg 00001234), which I want to retain. How do I format the column so
that when I run a sort I do not lose the leading zeros please? I am using
Excel 2003.

Thanks

Robin



Gary's Student

Format Cells Number Custom

Then enter 00000000
in the type field. This will retain the leading zeros and still allow the
sorting.
--
Gary's Student


"Robin Blackwell" wrote:

Hi all,

I have a huge column of numbers that I wish to sort into increasing value.
They all contain 8 digits (eg 12345678), but a large number have leading
zeros (eg 00001234), which I want to retain. How do I format the column so
that when I run a sort I do not lose the leading zeros please? I am using
Excel 2003.

Thanks

Robin





All times are GMT +1. The time now is 06:44 PM.

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