Solved

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

Posted on 2013-12-12
3
345 Views
Last Modified: 2013-12-12
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.
0
Comment
Question by:sanjay-gandhi
  • 2
3 Comments
 
LVL 19

Expert Comment

by:jss1199
ID: 39714545
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
 
LVL 19

Accepted Solution

by:
jss1199 earned 300 total points
ID: 39714546
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
 

Author Closing Comment

by:sanjay-gandhi
ID: 39714568
Thanks, works fine.

- San.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now