+ Reply to Thread
Results 1 to 12 of 12

Sequential Numbering Skipping Blank Rows

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Sequential Numbering Skipping Blank Rows

    Looking for non-array sequential numbering skipping blank rows. The non-array formula should look into column A and Column B and add numbers skipping blank cells. Desired outcome is in column C. See attached sample file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Sequential Numbering Skipping Blank Rows

    Put this formula in C2:

    =IF(A2&B2="","",MAX(C$1:C1)+1)

    then copy down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Sequential Numbering Skipping Blank Rows

    Pete_UK: Thanks for the proposed solution. I would like to use this formula =IF($A2&$B2="","",TEXT(IFERROR(LOOKUP(9.99999999999999E+307,$C$1:C1+0),0)+1,"0000")). However, it is displaying leading zeros before the actual numbers.

    Please assist in adjusting the formula not to show leading zeros. See attached file showing the leading zeros the above formula is displaying.

    Thanks
    Attached Files Attached Files

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

    Re: Sequential Numbering Skipping Blank Rows

    Can't help wondering why. But …
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    One, it depends on the values calculated in column C. And two, it produces a Text value. Why?
    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


  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Sequential Numbering Skipping Blank Rows

    Quote Originally Posted by TMS View Post
    ... One, it depends on the values calculated in column C. And two, it produces a Text value ...
    And three, it is longer to type !!

    Pete

  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,463

    Re: Sequential Numbering Skipping Blank Rows

    And three, it is longer to type !!
    Way longer

  7. #7
    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,463

    Re: Sequential Numbering Skipping Blank Rows

    My mistake. It doesn't have to be dependent on column C, I was just confused by the example with the formula in column D.

    So, have it your way, but you probably need this for a numeric output:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Sequential Numbering Skipping Blank Rows

    And it doesn't really need to be the biggest number that Excel can handle - a million would do.

    Pete

  9. #9
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Sequential Numbering Skipping Blank Rows

    TMS: Excellent work, TMS! Thanks for the rep.

  10. #10
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Sequential Numbering Skipping Blank Rows

    Pete_UK: Great solution, Pete_UK! Thanks

  11. #11
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,428

    Re: Sequential Numbering Skipping Blank Rows

    Cell C2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 01-29-2023 at 05:36 AM.

  12. #12
    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,463

    Re: Sequential Numbering Skipping Blank Rows

    You're welcome. Thanks for the rep.

+ 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] Sequential Numbering down blank cells above the data
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2021, 09:45 AM
  2. [SOLVED] Sequential numbering formula omitting 0's and resetting after X rows
    By zman23 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-15-2017, 01:10 PM
  3. [SOLVED] numbering rows but skipping blank rows
    By cprpacific in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2013, 03:10 PM
  4. Auto Numbering Skipping Rows
    By jkobz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2009, 11:50 PM
  5. Sequential numbering and Rows
    By mkarylyle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2008, 05:54 PM
  6. Convert a Value to Sequential Numbering of Rows
    By rx111 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2007, 02:14 PM
  7. [SOLVED] Sequential numbering on a blank form?
    By Ferree in forum Excel General
    Replies: 1
    Last Post: 05-25-2006, 03:15 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