+ Reply to Thread
Results 1 to 4 of 4

Insert Row based on Criteria

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Insert Row based on Criteria

    Hi All,

    I had posted a similar question earlier and received some great answers, but I have a slightly different problem now.

    I want to know how to insert rows based on the presence of certain text, other than just a blank space. In the attached workbook, I want to know how to remove rows that are blank in column N - then as a second step, insert a row if a value in column C differs from the value in the row immediately below it. I can't figure out the proper way to loop through and check each row in column C. Can you guys help me out? Thanks again.


    Sample2_InsertRows.xlsx

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Insert Row based on Criteria

    I poste this code in the old post.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Insert Row based on Criteria

    Apologies - I'm still new to the forum. I had this question after I had previously marked my other thread as "solved", so I posted it on the solved thread. I then wondered if people would still see it since the thread was "solved" so I reposted here. For those interested in the solution, see here:

    http://www.excelforum.com/excel-prog...-criteria.html

    Thanks to all for the help.

  4. #4
    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,945

    Re: Insert Row based on Criteria

    This should work on the example provided.

    Please Login or Register  to view this content.
    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

+ 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. [SOLVED] Macro to go row by row and insert row above based on criteria
    By CDNcameron in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2013, 01:07 PM
  2. [SOLVED] Insert a new row based on certain criteria
    By programct in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2013, 10:09 AM
  3. [SOLVED] VBA Loop: Insert Row based on Criteria
    By Ada01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 07:14 PM
  4. Need help with insert row macro based on cell criteria
    By RAK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2009, 12:18 AM
  5. Insert row based on criteria
    By salem in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2006, 03:11 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