Avatar of Sanjay Gandhi
Sanjay Gandhi
Flag for India asked on

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.
Microsoft OfficeMicrosoft Excel

Avatar of undefined
Last Comment
Sanjay Gandhi

8/22/2022 - Mon
jss1199

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
ASKER CERTIFIED SOLUTION
jss1199

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Sanjay Gandhi

ASKER
Thanks, works fine.

- San.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck