+ Reply to Thread
Results 1 to 4 of 4

Formula to clean up data format in excel

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Formula to clean up data format in excel

    Hi everyone,

    Is there a way to remove the non numerical characters and spaces in a phone number?
    Sample: +808 788,909 to 808788909?

    The data i am cleaning is consists of multiple non numerical numbers hence its taking time to manual remove.

    Any thoughts on this?

    Thanks!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: Formula to clean up data format in excel

    One example is not much to work with, but if that string is in cell A2, you could use this formula (e.g. in B2):

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"+",""),",","")," ","")

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,507

    Re: Formula to clean up data format in excel

    another option if to use find and replace, find what + replace with leave blank. the replace all
    if you don't have too many characters it should be pretty fast and won't need a helper column.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,415

    Re: Formula to clean up data format in excel

    Two other ways.

    I "borrowed" these formulas. The first from XOR LX (who says he got it from someone called Lori.)
    You will need to array enter this.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It is my understanding that Harlan Grove created this one. Array entry not required.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The ROW($1:$25) was arbitrary. It just needs to be at least the length of the string in A1.
    Dave

+ 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. [SOLVED] Need Help Pulling Data Into a Clean Format
    By EdwardSnowden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2019, 09:12 AM
  2. Replies: 3
    Last Post: 09-05-2015, 09:18 AM
  3. Parse, Clean and Format Address Data from Text String
    By jerrydiaz in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-04-2013, 11:52 AM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. Replies: 0
    Last Post: 01-05-2012, 03:54 PM
  6. can I clean old excel data format with macro on funny spread sheet
    By Todd F. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2005, 05:05 PM
  7. [SOLVED] CLEAN Formula in Excel
    By Kristen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 08: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