ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Custom format for credit card number (https://www.excelbanter.com/excel-discussion-misc-queries/53801-custom-format-credit-card-number.html)

Schmacker

Custom format for credit card number
 

I created a custom format for credit card numbers using
XXXX-XXXX-XXXX-XXXX.
But when I key a number into the formatted cell, the last (rightmost)
digit converts to zero.

So when I enter, for example, 5511246190465589 the cell displays
5511-2461-9046-5580.

Any ideas?


--
Schmacker
------------------------------------------------------------------------
Schmacker's Profile: http://www.excelforum.com/member.php...o&userid=28041
View this thread: http://www.excelforum.com/showthread...hreadid=482287


Chip Pearson

Custom format for credit card number
 
Precede the credit card number with an apostrophe ('). This will
not show up in the cell, but will display in the formula bar.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Schmacker"
wrote in
message
...

I created a custom format for credit card numbers using
XXXX-XXXX-XXXX-XXXX.
But when I key a number into the formatted cell, the last
(rightmost)
digit converts to zero.

So when I enter, for example, 5511246190465589 the cell
displays
5511-2461-9046-5580.

Any ideas?


--
Schmacker
------------------------------------------------------------------------
Schmacker's Profile:
http://www.excelforum.com/member.php...o&userid=28041
View this thread:
http://www.excelforum.com/showthread...hreadid=482287





All times are GMT +1. The time now is 06:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com