16-digit ID (credit card) number formatting

kreestar

New Member
Joined
Apr 6, 2004
Messages
32
Hi there,

When opening a CSV file in Excel that contains a number > 15 digits, the final digit is zeroed (or rounded up).

I've been doing some online searches, which have told me *why* it does this and that I should be formatting my data to text (which, if I do it after the fact in Excel, the final digits are already 0). Most of the solutions given work for people *entering* data, not opening existing files that may not be text-formatted.

I've tried formatting an entire workbook as text and then opening the CSV (opens in a new spreadsheet).
Also tried opening the CSV as text and pasting into a text-formatted Excel sheet, which keeps the full numbers, but the moment I Text-To-Columns it, it does its usual 15+ thing.

Help!

Kreestar
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi Kreestar

Rename the extension of the file from ".csv" to ".txt". What will happen is that when you open it in excel you will be taken to the Text Import Wizzard, where you can specify that the column with the CC number is to be imported as text.
 
Upvote 0
Change the file extension from csv to txt. Then when you open it you will get the Text Import Wizard and you can specify the Text format for that column at Step 3.
 
Upvote 0
Re: 16-digit ID (credit card) number formatting - SOLVED

And so it did :) ... so easy.

Solved, thanks as always!
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top