+ Reply to Thread
Results 1 to 4 of 4

How to use several COUNTA functions to create unique Identification Numbers

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    57

    How to use several COUNTA functions to create unique Identification Numbers

    I'm attempting to create a unique ID number for each entry in a long column of data.

    The data set has 96 unique groups-8 main categories with 12 sub categories.
    Each entry in the data set needs to have a unique identification number (ID).
    In my mock ups, this number is a six digit number. This # is highlighted below.
    The first number in the ID to come from the main category (1-8).
    The next two numbers in the ID would come from the sub category (01-12).
    The remaining three numbers are a unique value between 001-999.

    I would like Excel to count each individual entry starting at 1 for each unique group.
    Each time a new entry is made, Excel should look at the categories and decide which of 96 unique groups the entry belongs to, and assign it a number between 001 and 999 in this group.
    I've tried to accomplish this with COUNTA and IF functions, but with 96 different counters running I haven't been successful.

    Any suggestions for an elegant solution?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: How to use several COUNTA functions to create unique Identification Numbers

    Try this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: How to use several COUNTA functions to create unique Identification Numbers

    opps. too late...
    change to other non related things,

    if the column E and G is not necessary,

    column E can eliminate, by using gak67 formula,

    column G can remove by change the column F formula to
    =IF($B16="","",TEXT(COUNTA($B$16:$B16),"000"))
    Last edited by BoredWorker; 07-23-2017 at 09:33 PM.
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

  4. #4
    Registered User
    Join Date
    04-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: How to use several COUNTA functions to create unique Identification Numbers

    Exactly what I was looking for... thanks so much!

+ 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. [VBA] Create a random unique numbers generator without functions
    By alexgoaga in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2017, 07:33 AM
  2. Stepping stone to create word identification in excel
    By a_driga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2015, 09:43 AM
  3. How do I format to highlight same names but different identification numbers?
    By officegirl14 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2015, 04:54 PM
  4. Replies: 1
    Last Post: 10-16-2013, 02:46 PM
  5. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  6. [SOLVED] Identification numbers
    By HelpExc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2012, 01:39 PM
  7. I want to create unique randomn numbers
    By charlieking4747 in forum Excel General
    Replies: 5
    Last Post: 02-16-2006, 09:55 AM

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