Excel - Custom Format for #'s stored as text

I purposely want to have a field that is made of numbers stored as text. Unfortunately, if it is stored as text, if the number begins with 0(s), the 0 is truncated and not included.

Is there a custom format that will enable me to store a number field as text, without truncating leading 0's?

Thank you.
exp vgAsked:
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.

ProfessorJimJamCommented:
Select a range of cells then right click format then select Text
Then when you enter values with prefix of zeros it will not be disappear
0
Ramesh VCommented:
Also,
You can the TEXT function. Please see the screenshot below.
Capture.jpg
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

ProfessorJimJamCommented:
Ramesh,

your solution only works if the number of char is always 5,  if the OP values are 000455234 then your solution would not work.
0
Ramesh VCommented:
Yes, just for example I gave. We can make it dynamic also.
0
ProfessorJimJamCommented:
you can preserve zeros  by Adding an Apostrophe before typing the number

like this '00005423423
0
Ramesh VCommented:
Yes....
0
Ramesh VCommented:
Also we can use REPT to repeat Zeros (if the length of cell is constant)
0
exp vgAuthor Commented:
Thank you.
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 Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.