+ Reply to Thread
Results 1 to 4 of 4

Need to sequentially number dataset in groups

Hybrid View

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    Raleigh, NC
    MS-Off Ver
    Office 360
    Posts
    4

    Need to sequentially number dataset in groups

    I have data that I need to number sequentially, but in groups so that Column A will eventually look something like the following: 1,1,1,1,2,2,2,2,2,2,2,2,3,3,4,4,4,5,5,5, etc... dependent upon text in Column B.

    Specifically, if Column B has the text "PRO," that indicates the beginning of a new group of rows and needs to have a unique ID # inserted into Column A. These ID numbers will range from 1-500 and run sequentially. Unfortunately, there is no consistency to how frequently a "PRO" entry appears and in total there are over 15,000 rows.

    I have been searching for an answer for a while now and have tried filtering, IF, SUBTOTAL, and ROWS functions to no avail. I am not getting any closer to the solution just looking for the answer myself.

    I attached a sample spreadsheet. Thanks for any input!
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,027

    Re: Need to sequentially number dataset in groups

    Here, try this:

    Formula: copy to clipboard
    =COUNTIF(B$1:B1, "PRO")
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    08-24-2015
    Location
    Raleigh, NC
    MS-Off Ver
    Office 360
    Posts
    4

    Re: Need to sequentially number dataset in groups

    Awesome; that worked perfectly! Can't believe how simple it was. Thank you!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,027

    Re: Need to sequentially number dataset in groups

    Glad it worked

+ 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] Sequentially number tabs
    By khorner in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-03-2014, 12:14 PM
  2. I want to sequentially number a list ignoring blanks
    By steveboyd in forum Excel General
    Replies: 2
    Last Post: 02-07-2014, 11:25 AM
  3. [SOLVED] Add number sequentially to string based on formula
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-09-2012, 11:19 AM
  4. sequentially number multiple copies of the same page
    By Casper05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2008, 12:44 PM
  5. Insert & Sequentially Number Column
    By dee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2006, 05:50 AM
  6. [SOLVED] How do I sequentially number every third page of my workbook?
    By TNDeb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2005, 05:05 PM
  7. How do I number pages of worksheets sequentially?
    By jthecken in forum Excel General
    Replies: 0
    Last Post: 07-13-2005, 01:05 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