Custom format some 16 9s, convert last digit to zero in the cell

Hi,

In Excel, I want to write a 16 number bank account number. So when in custom format using Format Cells, I use 16 0s (0000000000000000), then while I write a bank account number in the cell ending with 9, then last number changes to zero.

Example: 1234567890123459 changes to 1234567890123450 - why does this happen I don't understand.

Will appreciate a fast reply.

San.
Sanjay GandhiFounder, KenhalAsked:
Who is Participating?
 
jss1199Commented:
Meant to detail how to change to text.

On the Home tab, click the Dialog Box Launcher Button image next to Number.

In the Category box, click Text.
0
 
jss1199Commented:
Excel has a maximum precision of 15 significant digits, which means that for any number containing 16 or more digits, such as a credit card number, the last digit is rounded down to zero.

You can do one of two things:

1. Use the apostrophe character
For a small set of number codes, you can type an apostrophe character (') in front of the number code and then add back the leading zeros.

2. Convert the number to text
0
 
Sanjay GandhiFounder, KenhalAuthor Commented:
Thanks, works fine.

- San.
0
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.

All Courses

From novice to tech pro — start learning today.