+ Reply to Thread
Results 1 to 4 of 4

Rank by value and date?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2007
    Location
    Dobson, NC
    MS-Off Ver
    2000
    Posts
    24

    Rank by value and date?

    Does anyone know how to rank a list by a number and date simultaneously with a formula thus eliminating duplicate rankings? I tried some things like ranking separately then adding the two rank values but the values I get with the dates don't seem to work very well. Could sort but want to keep the same chronological order and highlight the lower ranked rows with conditional formatting. If I have three values at 9 and the formatting threshold is 10, I get 11 rows highlighed.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by bobboy
    Does anyone know how to rank a list by a number and date simultaneously with a formula thus eliminating duplicate rankings? I tried some things like ranking separately then adding the two rank values but the values I get with the dates don't seem to work very well. Could sort but want to keep the same chronological order and highlight the lower ranked rows with conditional formatting. If I have three values at 9 and the formatting threshold is 10, I get 11 rows highlighed.
    Hi,

    add the date /10000 to the number (format the display to hide the fraction) and rank the conglomerate, you can also add Row()/1000000 to split any further matches.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    It's not clear to me exactly what you want to do, do you want to rank a column of numbers but separate ties by reference to a date in another column (or is it the other way around)?

    A realtively simple way to do that is to create a helper column which adds a small fraction of your secondary rank criterion to your primary rank criterion

    e.g if you are ranking by an integer in column B but want to separate ties by perferring the one with a later date in column A then you could use a formula like this in a helper column

    =B2+A2/100000

    then you use a rank function on the helper column.....

    Does this help?

  4. #4
    Registered User
    Join Date
    01-29-2007
    Location
    Dobson, NC
    MS-Off Ver
    2000
    Posts
    24
    I tried that before but apparently I messed it up some way. Works great!

    Thanks a bunch!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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