Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Typing a credit card number in a cell

Every time I try to put in the last number of my 16 digit credit card number
Excel makes it a zero. I have tried formatting in number and text.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Typing a credit card number in a cell

Yes, XL, like most spreadsheets, has a 15-decimal digit precision.

But since you're almost certainly not doing math on the credit card
number, either preformat the cell as Text (so XL won't interpret the
entry as a number), or prefix the entry with an apostrophe:

'0123456789012345



In article ,
Jimbo wrote:

Every time I try to put in the last number of my 16 digit credit card number
Excel makes it a zero. I have tried formatting in number and text.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Typing a credit card number in a cell

Excel handles only 15 digits until it loses values due to rounding. If
you have a longer number, you can either format the cell as Text
(Format menu, Cells item, Number tab, choose Text) before entering the
data or precede the value with an apostrophe. The apostrophe will not
be displayed in the cell, but will be visible in the formula bar. Both
of these methods assume that you will not due calculations on the
number (as is the case with data such as credit card numbers) although
sorting and filtering will still work.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Sat, 17 Jan 2009 06:23:01 -0800, Jimbo
wrote:

Every time I try to put in the last number of my 16 digit credit card number
Excel makes it a zero. I have tried formatting in number and text.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default Typing a credit card number in a cell

Chip wrote on Sat, 17 Jan 2009 09:05:45 -0600:

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Sat, 17 Jan 2009 06:23:01 -0800, Jimbo
wrote:


Every time I try to put in the last number of my 16 digit
credit card number Excel makes it a zero. I have tried
formatting in number and text.


A minor warning based on my own sad experience. Be consistent with the
card number format if you are going to sort. You will get different
results from using a 16-digit number and groups of 4 separated by blanks
or "-" signs.
--

James Silverton
Potomac, Maryland

Email, with obvious alterations: not.jim.silverton.at.verizon.not

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i show only the last four digits of a credit card number ExcelB Excel Discussion (Misc queries) 5 June 16th 06 11:58 PM
Credit Card Number raj_srini Excel Worksheet Functions 2 June 6th 06 06:21 PM
Credit Card Number raj_srini Excel Worksheet Functions 0 June 6th 06 04:52 PM
Custom format for credit card number Schmacker Excel Discussion (Misc queries) 1 November 4th 05 06:33 PM
When we enter a 16 digit number (credit card) the last digit chan. ceking Excel Discussion (Misc queries) 5 December 8th 04 11:45 PM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"