each number in cell should be 10 digit

G

Guest

I am getting numbers in excel from a database..i want that each number should
be 10 digit and if less than ten digit then it should be preceded by 0
(zeros) to make it 10 digit number.
 
N

Niek Otten

To keep the numeric value but show 10 digits, Format Custom as 0000000000
To get a 10-character text string: =TEXT(A1,"0000000000")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I am getting numbers in excel from a database..i want that each number should
| be 10 digit and if less than ten digit then it should be preceded by 0
| (zeros) to make it 10 digit number.
 
R

Ron Rosenfeld

I am getting numbers in excel from a database..i want that each number should
be 10 digit and if less than ten digit then it should be preceded by 0
(zeros) to make it 10 digit number.

Format the cells as:

Format/Cells/Number/Custom Type: 0000000000


--ron
 

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