+ Reply to Thread
Results 1 to 6 of 6

Can a column of number be assigned an ID number?

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Can a column of number be assigned an ID number?

    Is there a way to assign an ID number to a column of numbers, the number would be assigned based off its largest to smallest number?

    Example:

    (Column of numbers)
    20
    5
    2
    400
    600
    95
    21

    (Column of numbers with ID number in Col B)
    20 5
    5 6
    2 7
    400 2
    600 1
    95 3
    21 4

    Is this possible to do in excel?

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

    Re: Can a column of number be assigned an ID number?

    If your numbers are in A2 to A8, copied down:

    =RANK(A2,$A$2:$A$8)
    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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,836

    Re: Can a column of number be assigned an ID number?

    For the examples you posted, you can put this formula in B1:

    =RANK(A1,A$1:A$7)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: Can a column of number be assigned an ID number?

    Glenn and Pete, Thank you. I didn't know about the Rank function. This will be a very useful function in the future and it worked for what I'm trying to do now.

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

    Re: Can a column of number be assigned an ID number?

    One word of "warning"... can there be tied values? if so, how do you want them to be handled?

  6. #6
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: Can a column of number be assigned an ID number?

    Thank you very 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. Replies: 3
    Last Post: 11-13-2015, 07:03 PM
  2. Replies: 1
    Last Post: 08-12-2015, 01:22 AM
  3. [SOLVED] Macros to mark number in a column, if number is x+10, given previously marked number x.
    By aleem5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2015, 07:49 PM
  4. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  5. Lookup largest number in a column treating negative number as postive number
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 08:09 AM
  6. Random numbers plus assigned number
    By mutchdea in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2009, 09:57 PM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 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