Format a cell to keep leading zeros.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I often deal with account numbers with leading zeros. When I place them in a
cell Excel automatically deletes the leading zeros. Is there a way to format
the cell to hold the zeros?
 
Another approach is to use =FORMAT(A4,"0000000") which creates a string with
the correct number of leading zeros, rather than just displaying it in this
way.

Regards,
David Jessop
 
David

Excel has no FORMAT Function except in VBA.

I think you may have meant =TEXT(A4,"0000000")

This would leave the numbers as text and could not be readily used for
calculations.


Gord Dibben Excel MVP

On Wed, 5 Jan 2005 09:13:06 -0800, David Jessop <David
 
Hey Chip

I'm doing an upload that requires a "number" format. However, alot of the
numbers have leading zeroes. Is "custom" 0000 considered a "number"
formatted field.
 
Put an Apostrophe (ie..'0001114) at the beginning. excel will the
treat your account number as text

Odi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Keeping Leading Zeros; How Please ? 2
Leading Zeros; How to Keep ? 2
leading zeros 5
Help with numbers 3
Numbers as Text 1
Importing from a Notepad file 3
Leading 0's disappear 2
converting numbers to text 2

Back
Top