+ Reply to Thread
Results 1 to 2 of 2

delete all cells with numbers in them

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    delete all cells with numbers in them

    I have a column with cells in them that are ALL letters and some that are a combination of letters and numbers. How can I write a formula that checks to see if there are any numbers and if there are deletes it. Maybe some type of if statement. Thanks.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: delete all cells with numbers in them

    You would have to use VBA to actually delete them automatically, but you could do it manually, if your list isn't too long...

    Assume your list is in A1:A10. In cell B1, enter this formula, then fill down to B10:

    =IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1)),"",A1)

    You will now have a list that has blank cells... those were the cells that had numbers in them from column A.

    You could then copy and 'Paste Special: Values' wherever you need the new list. Of course, there are the blanks to deal with, which can be easily deleted.

    If you have a LOT of data, a VBA solution would be better.

    - Moo

+ 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 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
  2. [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
  3. [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

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