+ Reply to Thread
Results 1 to 3 of 3

Compare two cells, if blank delete entire row

  1. #1
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Compare two cells, if blank delete entire row

    I can delete rows based on one cell being blank but not the other. I have two columns and the data I am working on is in Column E and F. I need a macro or VBA because I could not figure out how to do it with conditonal formatting. If the cell in column E and F is blank then delete the entire row.

    Example:
    E2 and F2 is blank = Delete
    E2 is blank but F2 has numbers = Do not delete

    Hope that makes sense. Thank you.

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Compare two cells, if blank delete entire row

    taichi56,

    Here is some code that will delete rows in a sheet where the cells are blank in both E and F for a particular row.

    Please Login or Register  to view this content.
    Hope it helps,

    Daniel

  3. #3
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Re: Compare two cells, if blank delete entire row

    Thank you. That worked wonderfully.

+ 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