+ Reply to Thread
Results 1 to 2 of 2

How to ensure different identifiers are sequentially numbered

  1. #1
    Registered User
    Join Date
    01-15-2021
    Location
    Rockford,Illinois
    MS-Off Ver
    2019
    Posts
    1

    How to ensure different identifiers are sequentially numbered

    Hi all, I'm sure this is pretty basic as far as Excel goes, but I'm pretty new.

    I work in surveying and the way our projects are broken up is that there is a section which is composed of a number of samples. So one section may have 21 samples total and another may have 132. Each section has a unique name and I have a list in alphabetic order already (as well as numeric).

    All I need to do is to check if the numbers are completely sequential in each section with no missing/repeating numbers.

    I've attached an example sheet (I think) where I've simplified sections to letters and numbers as the samples. Here's the basic gist of it below as well. I've tried running an if statement to check that the current cell is the one above it +1, but I can't seem to figure out how to make the count reset for every new section. I have several hundred sections and thousands of samples, so it's not something I can manually go through and take out the flagged cells that are just going from one section to another

    A 1
    A 2
    A 3
    A 5 <--Flag this because not sequential
    B 1
    B 2
    B 3
    B 3 <--Flag this because it's a repeat
    Attached Files Attached Files
    Last edited by spaloog; 01-15-2021 at 12:52 AM.

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

    Re: How to ensure different identifiers are sequentially numbered

    How about this?
    =B2&COUNTIF($B$2:B2,B2)
    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

+ 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] Extract sequentially numbered range from an array
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2020, 06:26 PM
  2. [SOLVED] database to call sequentially numbered pdf files
    By Cbutts in forum Excel General
    Replies: 4
    Last Post: 09-15-2016, 08:31 AM
  3. Excel - Create sequentially numbered forms
    By barryg0821 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2013, 04:20 PM
  4. Replies: 1
    Last Post: 08-13-2012, 11:46 PM
  5. How to create a sequentially numbered URL list
    By morph000 in forum Excel General
    Replies: 7
    Last Post: 06-05-2010, 01:49 PM
  6. Creating sequentially numbered form using Word 2007
    By alanda in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2009, 10:17 AM
  7. Can I compile data in sequentially numbered worksheets easier?
    By Suzy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2006, 06:55 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