+ Reply to Thread
Results 1 to 7 of 7

How does one create a list of sequential numbers for each unique value in a field?

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    california
    MS-Off Ver
    excel 2010
    Posts
    11

    Red face How does one create a list of sequential numbers for each unique value in a field?

    I have a large database that I need to assign sequential values to each group of unique values in a particular field. e.g. below.

    Thanks for your help.

    A 1
    A 2
    A 3
    A 4
    A 5
    B 1
    B 2
    B 3
    B 4
    B 5
    B 6
    B 7
    C 1
    C 2
    C 3

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How does one create a list of sequential numbers for each unique value in a field?

    With your values starting in A2 enter this in B2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: How does one create a list of sequential numbers for each unique value in a field?

    See attached example.

    Regards,
    berlan
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How does one create a list of sequential numbers for each unique value in a field?

    Quote Originally Posted by newdoverman View Post
    With your values starting in A2 enter this in B2 and fill down:

    =IF(COUNTIF($A$2:A2,A2)=1,1,B1+1)
    All you need is:

    =COUNTIF(A$2:A2,A2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    01-10-2013
    Location
    california
    MS-Off Ver
    excel 2010
    Posts
    11

    Re: How does one create a list of sequential numbers for each unique value in a field?

    Worked wonderfully! Thanks.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How does one create a list of sequential numbers for each unique value in a field?

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How does one create a list of sequential numbers for each unique value in a field?

    If there are blanks in the range, this might be of help:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will not count any blanks but leave a blank where the count would be and then resume when values are present in column A

+ 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. Assign sequential numbers to unique values in a list
    By penfold in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-30-2017, 02:11 PM
  2. [SOLVED] re-numbering a list of numbers based on another list of numbers to get a sequential order
    By ryan.wherry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-10-2014, 03:27 PM
  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. [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
  5. [SOLVED] How do I create a list of sequential numbers using Excel or Acces.
    By Clueless in forum Excel General
    Replies: 2
    Last Post: 04-05-2005, 11:06 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