+ Reply to Thread
Results 1 to 4 of 4

Rank by content

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    24

    Rank by content

    Hello,

    I have a list of products in column L.

    In column P I am repeating the product name if it is calculated to be oversubscribed.

    I'm finding a way to ration the oversubscribed ones.

    In column Q I have a =rand() value

    In column R I want to rank the =rand() values, but I want a separate ranking depending on what is in P.

    Ie, P might have 10 null values, 5 "Cakes" and 4 "Biscuits". I want column R to have a 10 nulls, a 1->5 ranking for the cakes and a 1->4 ranking for the biscuits.

    Any ideas?

    Thanks,

    HE
    Last edited by headexperiment; 08-30-2011 at 08:44 AM. Reason: Solved

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Rank by content

    Can you upload example workbook with your inpout and desired output?

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Rank by content

    Quote Originally Posted by zbor View Post
    Can you upload example workbook with your inpout and desired output?
    Thanks Zbor. I've tweaked it slightly to remove the nulls, just going to rank everything even if it's not oversubscribed.

    Demo attached. Grateful if you could advise on a suitable formula for Col N.

    Thanks,

    HE
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-13-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Rank by content

    I've answered my own question. This thread is awesome:
    http://www.excelforum.com/excel-gene...hin-group.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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