+ Reply to Thread
Results 1 to 4 of 4

Find cells in colum A that do not contain a number and delete their rows

  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    Alaska
    MS-Off Ver
    2013
    Posts
    35

    Find cells in colum A that do not contain a number and delete their rows

    So I have a document in which I need to keep only the rows that contain a number in cell 1. The placement of these cells (rows) will always vary so my (limited) knowledge of using macros will not help me for this one. I am thinking there must me a formula that says, "if cell in Column 1 does not contain a number, then delete coinciding row."

    Here is what it looks like, the rows that contain numbers in cell 1 have the only data I need:
    scr_report.PNG


    Any thoughts?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find cells in colum A that do not contain a number and delete their rows

    Hi K,

    Try this:

    Please Login or Register  to view this content.
    *If there is no header then change the red number
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    10-13-2014
    Location
    Alaska
    MS-Off Ver
    2013
    Posts
    35

    Re: Find cells in colum A that do not contain a number and delete their rows

    Quote Originally Posted by xladept View Post
    Hi K,

    Try this:

    Please Login or Register  to view this content.
    *If there is no header then change the red number

    That worked perfectly! The only row left that I didn't need was the row that contained the date, which makes sense since there is a number in it. Is there a way to take it one step further and say if the cell in Column A does not begin with a number, then delete?

    thank you so much!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find cells in colum A that do not contain a number and delete their rows

    Hi K,

    Thanks for the rep!

    Please Login or Register  to view this content.
    Last edited by xladept; 10-17-2014 at 11:17 PM.

+ 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. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  2. [SOLVED] Find first blank row, count up X number of rows and delete
    By BeachRock in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-04-2012, 11:03 PM
  3. Replies: 13
    Last Post: 08-23-2011, 11:00 AM
  4. Move colum data to row then delete those rows
    By Davidy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-18-2011, 05:54 PM
  5. Replies: 2
    Last Post: 06-26-2010, 06:59 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