+ Reply to Thread
Results 1 to 2 of 2

Sequential Numbering based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-06-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    2

    Sequential Numbering based on multiple criteria

    Hi,

    I want to create document numbers via a userform that takes input from comboboxes that use vlookup to create the truncated document name. I then want to be able to paste all those inputs (the comboboxes and the document name) into a sheet.
    The numbers need to be sequential based on multiple criteria preceeding the number i.e. only if the exact crietria preceeding the number is the same will it go from 000001 to 000002

    I currently have 6 comboboxes from which I choose the data I want to include, these are referenced from seperate sheets and using the name manager and 'RowSource' in the properties panel, I can fill in these boxes like data validation.

    The DOC NUM (Me.label.8) tab is the following code

    Please Login or Register  to view this content.
    So it uses vlookup to get the acronyms for the relevant parts of the combobox selections e.g General would be 'GEN' and then creates a document name from it. The Me.Label12.Caption on the end is meant to be the document number. This is the part im struggling with. If the sheet is empty, it needs to start the number off at 000001 and +1 every time the document name is exactly the same. If any of the criteria that make up with document name change these would still be 000001

    e.g
    ABCD000001
    ABCD000002
    ABCD000003
    ABDC000001
    ABCD000004
    ABFD000001 etc etc

    Also, I was struggling to get the label to auto-update the document name. I need to physically click on it to update it. Same with the document number. Any help is appreciated.
    Capture.PNG

  2. #2
    Registered User
    Join Date
    11-06-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    2

    Re: Sequential Numbering based on multiple criteria

    I should say that comboxes 1-5 will get inserted into columns 1-5 and the document name into column 6 like so

    Please Login or Register  to view this content.
    The extension column will be hidden and the document num will only be used to fill in the last part of the document name

+ 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 based on same event
    By rynny in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2020, 12:50 PM
  2. [SOLVED] Formula to Provide Capped List of Sequential Numbers Based On Multiple Criteria
    By rlmh06 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2017, 06:18 PM
  3. [SOLVED] Auto sequential numbering based on a cell text
    By GAG24 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2017, 07:34 AM
  4. Generate Sequential Numbering based on Combobox selection
    By MzBranch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2015, 01:09 PM
  5. Macro For Unique Sequential Numbering on multiple sheets
    By dkannapel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2014, 02:57 PM
  6. Sequential Numbering of a Form Printed Multiple Times
    By MMRANCH02 in forum Excel General
    Replies: 4
    Last Post: 04-02-2014, 03:53 PM
  7. [SOLVED] Sequential numbering within range for multiple criteria
    By jakestyeen7059 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2013, 03:19 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