+ Reply to Thread
Results 1 to 2 of 2

How to remove the spaces between credit card numbers?

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    London, Ontario
    MS-Off Ver
    13
    Posts
    1

    Post How to remove the spaces between credit card numbers?

    Hi,

    How can I remove the spaces between the credit card numbers for uploading into a database that only has 16 characters?

    Thank you very much.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to remove the spaces between credit card numbers?

    Wow, this is the second new thread I've seen today where users are wondering how to work with credit card data IN EXCEL - one of the least secure methods to store data in existence (it would be safer written on paper in a locked box under your floorboards).

    Please note: If you are storing credit card numbers in Excel, STOP IMMEDIATELY and find another secure method to do so. Whether it's through your bank or an payment processor, other methods are out there. Even in a database, if it's unencrypted and not secured extremely well, you're risking huge legal and financial penalties.

    As for removing spaces (or any character) from any text string, you can use the SUBSTITUTE function, e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That will replace all spaces with empty strings.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing spaces from credit card numbers
    By emsterv in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-27-2018, 02:36 PM
  2. [SOLVED] Credit card type based on card number
    By wlsnoops in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2013, 10:25 AM
  3. [SOLVED] Why would code to format credit card numbers stopped working.
    By mjbsutton in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2012, 01:23 PM
  4. [SOLVED] why does excel change last digit of credit card numbers to zero?
    By dacton in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-07-2005, 05:10 PM
  5. Format for credit card numbers
    By Schmacker in forum Excel General
    Replies: 3
    Last Post: 10-12-2005, 04:05 PM
  6. credit card formatting
    By tifosi3 in forum Excel General
    Replies: 6
    Last Post: 03-07-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1