Large Number (16 digits)

tomyrush
2StarLounger
Posts: 138
Joined: 04 Feb 2010, 15:45
Location: Chandler AZ USA

Large Number (16 digits)

Post by tomyrush »

I'm running win xp sp3 completely up to date and excel 2003.

I am trying to set up a spread sheet using credit card numbers which are 16 digits long. I set up a 16 digit number in the custom setup, but I cannot use it. The only way I can enter the 16 digit number without having the last digit either truncated or rounded to zero is to set up the numbers as "text" and I can enter them.

Is this the only way I can handle this?

Tom

User avatar
StuartR
Administrator
Posts: 12615
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Large Number (16 digits)

Post by StuartR »

tomyrush wrote:...Is this the only way I can handle this?
I think the only way to handle a 16 digit credit card number in Excel is to enter it as text. If you really need to do numerical calculations on the numbers you will have to break them into shorter parts, manipulate them separately and then combine the results.
StuartR


User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Large Number (16 digits)

Post by HansV »

Stuart is correct. Excel stores numbers with a maximum of 15 significant digits, so a 16 digit number cannot be represented accurately. You have to store the credit card numbers as text.
Best wishes,
Hans

tomyrush
2StarLounger
Posts: 138
Joined: 04 Feb 2010, 15:45
Location: Chandler AZ USA

Re: Large Number (16 digits)

Post by tomyrush »

thanks - now I know

Tom