+ Reply to Thread
Results 1 to 6 of 6

Delete row if one cell is empty and one cell has text.

  1. #1
    Registered User
    Join Date
    10-12-2016
    Location
    Ohio
    MS-Off Ver
    Mac 2016
    Posts
    3

    Question Delete row if one cell is empty and one cell has text.

    I am very un-experienced with VBA. I usually use the record Macro buttons, but with the removal of the "Relative references", I am at a huge loss. I need to delete extra rows.
    Screen Shot 2016-10-12 at 4.27.16 PM.png Screen Shot 2016-10-12 at 4.28.37 PM.png

    I need the Highlighted rows deleted, but i still need the blank rows in-between the lines i need to keep. Any Ideas? I would like it to compare Column B and Column H; Deleting rows where Column B is empty, but Column H is occupied.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Delete row if one cell is empty and one cell has text.

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete row if one cell is empty and one cell has text.

    I can't view your screenshots for some reason, but based on your verbal maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-12-2016
    Location
    Ohio
    MS-Off Ver
    Mac 2016
    Posts
    3

    Re: Delete row if one cell is empty and one cell has text.

    Perfect! Thank you so much!

  5. #5
    Registered User
    Join Date
    10-12-2016
    Location
    Ohio
    MS-Off Ver
    Mac 2016
    Posts
    3

    Re: Delete row if one cell is empty and one cell has text.

    Thank you for that info! I will do that in future issues!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete row if one cell is empty and one cell has text.

    You're welcome. Glad to help out and thanks for the feedback. Please mark this thread as SOLVED. Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

+ 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. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  2. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  3. Macro, If cell A has data but cell B is empty delete complete row
    By stangz71 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-28-2011, 05:34 PM
  4. Delete column if cell empty
    By DavidTabb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2010, 02:32 AM
  5. delete empty cell and zero value cell and shfit up
    By abdi1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-23-2010, 06:08 PM
  6. Delete rows when certain cell is empty
    By seanyeap in forum Excel General
    Replies: 19
    Last Post: 03-30-2010, 10:17 PM
  7. Delete empty spaces in cell
    By sakinen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2009, 04:47 AM

Tags for this Thread

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