+ Reply to Thread
Results 1 to 10 of 10

Add rows after a specific criteria meet

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    greece
    MS-Off Ver
    Excel 2010
    Posts
    66

    Add rows after a specific criteria meet

    Hello again

    I have a table from a5 to k200. Every row has a name in column B and from C to hJ numbers. In col I are some criteria. What i want is first to sort the table according the criteria. After because the criteria has different value, in the last row with criteria A add a blank row and then starts the criteria B. When finish the rows with criteria B add a blank row and then starts rows with criteria C etc.

    Please for your help, it is somehow urgent.

    Thanks

  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: Add rows after a specific criteria meet

    Hi Kon,

    Try this:

    Please Login or Register  to view this content.
    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
    04-22-2013
    Location
    greece
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Add rows after a specific criteria meet

    Ηι thanks for the response
    Ok the problem is that i use the macro but after every row it add one more row. What i want is the following:
    example:
    from rows 5 to 12 i have some entries to all columns (from b until i). In column i and rows 5 to 12 have the same criteria ("AA"). From rows 13 to 20 criteria "BB" and from rows 21 to 25 criteria "CC".
    What i want is to add a blank row at row 13 because row12 is the last row with criteria AA. Add a blank row at 21 because row20 is the last row with criteria BB etc. The rows with the criteria are variable.
    If you could help me??
    Thanks

  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: Add rows after a specific criteria meet

    You have no entry in Column A??

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    greece
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Add rows after a specific criteria meet

    In column A is only number counting for the entries 1,2,3,4 etc.

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

    Re: Add rows after a specific criteria meet

    Try:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-22-2013
    Location
    greece
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Add rows after a specific criteria meet

    I tried but dosen't work as i want. I attach you a test file that saws the in sheet1 the basic table and in sheet2 the output, and
    please if you could help me.
    Attached Files Attached Files

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

    Re: Add rows after a specific criteria meet

    This works on your sample:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-22-2013
    Location
    greece
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Add rows after a specific criteria meet

    Thank you so much it is working as I want. Thanks!!!

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

    Re: Add rows after a specific criteria meet

    You're welcome!

+ 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. Need to sum cells that meet specific criteria. please help.
    By ben2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-03-2013, 02:47 AM
  2. specific count when rows meet certain criteria
    By D Thomas in forum Excel General
    Replies: 0
    Last Post: 01-13-2013, 08:35 PM
  3. Delete rows which do not meet specific criteria (text values)
    By dim06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 09:54 AM
  4. sum rows that meet a specific criteria
    By mase062006 in forum Excel General
    Replies: 1
    Last Post: 09-04-2008, 02:32 AM
  5. Delete rows that do not meet specific criteria
    By SITCFanTN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:36 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