+ Reply to Thread
Results 1 to 7 of 7

Autonumber to skip blank lines and then and restart number series

  1. #1
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Autonumber to skip blank lines and then and restart number series

    In the spreadsheet, I have a series of data with blank rows in between data sets. Can someone give me a formula that will produce the number in the sort order column.

    Formula in sort order column to produce:
    Autonumber starting with 1
    Skip blank lines
    Restart after a blank line with 1

    Thank you
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Autonumber to skip blank lines and then and restart number series

    Try this, copied down...
    =IF(A2="","",SUM(G1)+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Autonumber to skip blank lines and then and restart number series

    F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Autonumber to skip blank lines and then and restart number series

    Perfect. Thanks.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Autonumber to skip blank lines and then and restart number series

    Or, similar to Ford's suggestion:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Autonumber to skip blank lines and then and restart number series

    You're welcome. Thanks for the rep.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Autonumber to skip blank lines and then and restart number series

    Happy to help

+ 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. # of blank labels to skip
    By jdlc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2014, 03:36 PM
  2. [SOLVED] How to make Excel VBA to skip blank cells until a cell has a number
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2013, 08:29 PM
  3. [SOLVED] Autonumber Until Certain Value then Restart
    By sperryxx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2013, 04:45 PM
  4. Number lines disregarding blank lines
    By eloureiro in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-03-2013, 01:14 PM
  5. [SOLVED] Insert blank lines to make the total number of lines 67
    By raghuprabhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 07:34 AM
  6. [SOLVED] Macro to Delete useless lines, rearrange by dates and skip lines between different days.
    By Tmc2159 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2012, 02:15 PM
  7. Skip Blank lines when reading a text file
    By parasbshah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2011, 12:36 PM

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