+ Reply to Thread
Results 1 to 4 of 4

Delete cells that contain numbers

  1. #1
    Registered User
    Join Date
    01-17-2017
    Location
    NEW JERSEY
    MS-Off Ver
    10.0
    Posts
    28

    Delete cells that contain numbers

    I have a spreadsheet with cells containing names in some cells and codes which are combinations of letters and numbers and I need to clear all the cells that contain the codes so that I am left with only the cells containing names.

    for example:

    John Doe
    A1234, B234
    c234, T678
    Jane Doe
    F256, J987

    And i want to be left with:
    John Doe


    Jane Doe


    How can i do this in VBA.

    Any help is appreciated.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete cells that contain numbers

    Hi MarkFltc,

    Welcome to the forum!!

    Try this (firstly on a copy of your data as the results cannot be undone if they're not as expected):

    Please Login or Register  to view this content.
    This uses a nifty User Defined Function (UDF) created by jindon (refer url in code).

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    01-17-2017
    Location
    NEW JERSEY
    MS-Off Ver
    10.0
    Posts
    28

    Re: Delete cells that contain numbers

    Thank you!

    worked like a charm!

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete cells that contain numbers

    You're welcome. Thanks for marking the thread as solved

+ 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. delete all cells with numbers in them
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 01-19-2017, 03:27 PM
  2. Delete cells that don't contain specific numbers
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2014, 11:15 AM
  3. [SOLVED] How to delete cells with decimal numbers?
    By dualaudio454252 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-10-2014, 04:36 PM
  4. [SOLVED] Delete text, split numbers to two cells and store as numbers
    By Steve_123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2014, 09:51 AM
  5. How do I delete multiple cells with decimal, not whole, numbers?
    By Implicity in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2005, 07:05 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