+ Reply to Thread
Results 1 to 2 of 2

Generating sequential unique ID based on other value and date

  1. #1
    Registered User
    Join Date
    08-27-2016
    Location
    Amsterdam
    MS-Off Ver
    Office 365
    Posts
    1

    Generating sequential unique ID based on other value and date

    Hello all,

    After googling for an answer for several days, I thought I'd try my luck at the excel forum.

    I'm trying to set up a claims registration form using excel where column A is the manually input shipping reference, and column B an auto-generated sequential claim ID based on the shipping reference and on the current year. One shipping reference can have multiple claims so in case the shipping reference is the same the claim ID should be the same as well.

    This is what I am trying to achieve:

    Shipping ref. Claim ID
    ABC-123 20160001
    ABC-124 20160002
    ABC-124 20160002
    ABC-125 20160003

    From looking around I guess that I need a formula including some IF and COUNTIF statements and maybe a reference to a calendar, but honestly, I can't really figure it out so any advice would be greatly appreciated.

    Cheers

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Generating sequential unique ID based on other value and date

    Hi Gallant and welcome to the forum,

    Find attached a workbook with an event macro behind sheet 1. This macro checks to see if you have selected column B. Then it checks if something is in Column A. If column B is blank it adds 1 to the maximum number in column B and puts it into the cell selected. See if this is something you can work with.

    Please Login or Register  to view this content.
    Unique Sequence Numbers Event.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] Return Sequential Numbers Based on Unique Values
    By HangMan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-06-2015, 08:13 PM
  2. [SOLVED] unique sequential id creation with first part based on another cell's value
    By massi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2014, 08:58 AM
  3. [SOLVED] Generating unique sequential numbers using VBA
    By onwell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 11:15 AM
  4. Generating a list of unique values based on specific conditions
    By Gobaith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2012, 11:35 AM
  5. [SOLVED] Filtering and generating new tabs based on Unique values based in column
    By amlan009 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2012, 09:40 PM
  6. Generating a unique sequential number in Excel
    By JPFreeman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2012, 08:31 PM
  7. Generating sequential invoice numbers
    By Rod Ben in forum Excel General
    Replies: 5
    Last Post: 07-28-2006, 11:15 AM

Tags for this Thread

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