Prev Previous Post   Next Post Next
  #1   Report Post  
JC
 
Posts: n/a
Default Leading zeros

How does one force Excel 2003 to retain leading zeros? This is related to my
earlier messages on "Sorting problem".

One option is to use a number to binary conversion. Each binary number has 8
bits, either 1's of 0's, and all bits are significant so leading 0's must be
retained. The conversion will simply be a lookup table of number and associated
binary equivalent and use the number as a cell reference to get the binary
equivalent.

Another option is to insert leading 0's in numbers that have only 1 or 2 digits
to convert all numbers to 3 digit numbers.

The only way I have thought of is to define the cell as being text rather than a
number.

--

Cheers . . . JC
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format a cell to keep leading zeros. Shadyhosta New Users to Excel 5 July 27th 05 04:37 PM
Displaying leading zeros in an Excel spreadsheet marianthelibrarian Excel Discussion (Misc queries) 1 January 25th 05 02:08 PM
Leading Zeros in Numeric Values DBavirsha Excel Worksheet Functions 6 January 4th 05 05:21 PM
How do I display leading zeros so I can export a fixed in Excel? World Referee and accountant Excel Discussion (Misc queries) 2 January 3rd 05 04:18 PM
Insert Leading Zeros hkslater Excel Worksheet Functions 7 November 16th 04 11:28 PM


All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"