How to add a zero infront of a number

C

CYNTHIA

How do I add a zero infront of a number.

For example I want the number to be read like this:

012

But i type in excel it shows up as 12.
 
M

Mike Rogers

CYNTHIA

Place an apostrophe first then your number (the apostrophe will not show on
the sheet but will be seen in the formula bar), or formate the cell as text.

Mike Rogers
 
S

Stephen

CYNTHIA said:
How do I add a zero infront of a number.

For example I want the number to be read like this:

012

But i type in excel it shows up as 12.

If what you want is always to display three digits (with any necessary
leading digits showing zero), format the cell as 000.
 
N

Narendra Boga

select the cells and go to format cells(ctrl+1) and select "number" tab
select the custom.
give 000 in "type" option box.
 
D

David Biddulph

Either format the cell as text before you enter the number, or
Format the cell as 000 if you want it to be 3 digits, or
Use a helper column with the formula ="0"&A1

The 1st & 3rd suggestions leave the cell as text, so you couldn't use it for
calculations; the 2nd would still be a number.
 
C

CYNTHIA

Thank you for your help it worked.

Narendra Boga said:
select the cells and go to format cells(ctrl+1) and select "number" tab
select the custom.
give 000 in "type" option box.
 
C

CYNTHIA

this is fast and works

Mike Rogers said:
CYNTHIA

Place an apostrophe first then your number (the apostrophe will not show on
the sheet but will be seen in the formula bar), or formate the cell as text.

Mike Rogers
 
R

RobN

But if you want it to still behave as numeric, you could apply the custom
format of "0"0 to those cells.

Rob
 

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

Top