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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

ProfessorJimJamMicrosoft Excel ExpertCommented:
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
Ramesh VCommented:
Also,
You can the TEXT function. Please see the screenshot below.
Capture.jpg

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
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

ProfessorJimJamMicrosoft Excel ExpertCommented:
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.
Ramesh VCommented:
Yes, just for example I gave. We can make it dynamic also.
ProfessorJimJamMicrosoft Excel ExpertCommented:
you can preserve zeros  by Adding an Apostrophe before typing the number

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