R
Rob
I have a spreadsheet where I'd like to perform a 'RANK'
function. The problem is that I'd like to add an 'IF'
function to add a condition before I rank the values.
Example:
A B C
10 1
20 1
25 1
15 1
30 2
40 2
22 2
30 2
In this example, I'd like to rank the values in column A.
However, I'd like them to be ranked in each subgroup
(which is column B). So, the output of C should be:
A B C
10 1 4
20 1 2
25 1 1
15 1 3
30 2 2
40 2 1
22 2 4
30 2 2
Does anybody know how to do this?
Thanks a lot.
function. The problem is that I'd like to add an 'IF'
function to add a condition before I rank the values.
Example:
A B C
10 1
20 1
25 1
15 1
30 2
40 2
22 2
30 2
In this example, I'd like to rank the values in column A.
However, I'd like them to be ranked in each subgroup
(which is column B). So, the output of C should be:
A B C
10 1 4
20 1 2
25 1 1
15 1 3
30 2 2
40 2 1
22 2 4
30 2 2
Does anybody know how to do this?
Thanks a lot.