+ Reply to Thread
Results 1 to 8 of 8

How do I create a reverse number list starting with ZERO as the first unique number?

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    How do I create a reverse number list starting with ZERO as the first unique number?

    Hello Friends, :-)

    This one is a little tricky, so I'm hoping somebody can help me out.
    I have a list of numerical employee numbers in column A.
    I need to assign a unique number beside each employee number in column B.
    However, the count must start from the bottom, and the first unique number must be a zero, with each number increasing by one going up.
    Is there a formula which can easily do this, or is VBA the way to go?
    Any help would be appreciated! :-)

    2017-09-15_excel.jpg

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    In B2, try this:
    =COUNTIF(A2:A$11,A2)-1

    I deleted the blank line so that the formula can be copied down the whole column.

    If there are blank rows, you can use this:
    =IF(A2="","",COUNTIF(A2:A$12,A2)-1)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    .. or with no need to delete anything...

    =IF(A2="","",COUNTIF(A2:$A$17,A2)-1)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    63FD has just edited his post.... his 2nd formula/mine are the same and are what you need.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    Quote Originally Posted by Glenn Kennedy View Post
    63FD has just edited his post.... his 2nd formula/mine are the same and are what you need.
    Darn, you caught me!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    Indeed. But in all honesty, I may have forgotten to refresh before posting.

  7. #7
    Registered User
    Join Date
    09-15-2017
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    Thank-you Gentlemen!!!
    You have solved this faster than the time it took me to write the post! ;-)
    I'd be buying you some beers right now if we were in the same office. ;-)
    Your help is very much appreciated, have a good weekend. :-)

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How do I create a reverse number list starting with ZERO as the first unique number?

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: Multiple text and number columns. Find list and number of unique words
    By first_jaguar in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-14-2017, 09:58 PM
  2. Replies: 2
    Last Post: 04-14-2016, 03:50 AM
  3. Replies: 3
    Last Post: 03-17-2014, 05:48 PM
  4. Replies: 1
    Last Post: 05-24-2012, 10:43 AM
  5. Auto Number: Starting List at Number Greater than 1
    By cmf0106 in forum Word Formatting & General
    Replies: 1
    Last Post: 04-02-2012, 05:20 PM
  6. Form: Create a caption that equals the next number in a list of unique IDs
    By James B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2011, 09:15 AM
  7. Replies: 4
    Last Post: 11-30-2010, 05:14 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