I am trying to get the ranks from a list of values, but I want the ranks to be based on a unique version of the list. What I'd like to do is something like
=RANK.EQ(value, UNIQUE(list_of_values))
I can't find out how to get the unique values within the formula. I've seen answers on how to output unique values to a new row, but my I don't require values to printed out, so I would hope there is an easier solution.
As an example, with a list like
|Week Ending|
|10/10/13|
|10/10/13|
|10/10/13|
|10/17/13|
the closest I get is RANK.EQ(value, list_of_values, 1), which gives me
|Week Ending|Week Number|
|10/10/13| 1|
|10/10/13| 1|
|10/10/13| 1|
|10/17/13| 4|
What I'm looking for is
|Week Ending|Week Number|
|10/10/13| 1|
|10/10/13| 1|
|10/10/13| 1|
|10/17/13| 2|
EDIT:
I didn't originally clarify this, but my values are not necessarily in sorted order.