how to have excel number format with leading zero?

Hi everyone,

I want to represent the number sequence "0xxx" in Excel as a number, not text. Is there a way to do this (I need to manipulate it).
If not, it's not the end of the world as I can convert to number, do my work, and then pad it out to 4 digits with leading zero's, but this isn't the neatest way.

Cheers,

Leon
LVL 1
AstromanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

calacucciaCommented:
Hi Astroman,

just enter the number (for example 0) and go to Format/Cells/Custom and type in the 'Type' box:

 0"xxx"

Now if you comy the format to other cells, when you type in a such formatted cell any number, it will be followed by three little x's and you'll still be able to do calculations on the number as Excel still sees a number.

Hope this helps

Calacuccia
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AstromanAuthor Commented:
Thats a nice little solution.

Thanks for your help,  I never thought of that!

Cheers,

Leon
0
calacucciaCommented:
You're Welcome, Leon

I use this thing very often when having to add units and still want to be able to do calculations.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.