+ Reply to Thread
Results 1 to 4 of 4

how do I remove data from cells ex. (232)-555-1212 to 2325551212

  1. #1
    Russ
    Guest

    how do I remove data from cells ex. (232)-555-1212 to 2325551212

    how do I remove data from cells ex. (232)-555-1212 to 2325551212

  2. #2
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    Found this from experts-exchange:

    Function KillNonNum(AnyVal As String)
    Dim RegEx
    Set RegEx = CreateObject("vbscript.regexp")
    RegEx.Global = True
    RegEx.Pattern = "[^\d\s]+"
    KillNonNum = RegEx.Replace(AnyVal, "")
    Set RegEx = Nothing
    End Function

    =KillNonNum(A1)
    Last edited by Bearacade; 06-16-2006 at 01:40 PM.
    Google is your best friend!

  3. #3
    Liz
    Guest

    Re: how do I remove data from cells ex. (232)-555-1212 to 2325551212

    I'm sure there's a real formula, but I use the find & replace feature. Put
    the character to remove (one at a time) in the Find box, leave the replace
    box empty, and replace all. You have to select the column you want to
    remove them from.


    "Russ" <[email protected]> wrote in message
    news:[email protected]...
    > how do I remove data from cells ex. (232)-555-1212 to 2325551212




  4. #4
    logan27371
    Guest

    RE: how do I remove data from cells ex. (232)-555-1212 to 2325551212

    That is a formatting issue right click on the cell select format cell and
    then change the format to general or whatever format you want.

    "Russ" wrote:

    > how do I remove data from cells ex. (232)-555-1212 to 2325551212


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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