Hello,
I'm trying to create a column with a rank of values based on a control column. I've posted this in StackOverflow but I feel this forum is more appropriate for the topic.
My data:
In col
Now how I can do a rank on col
a) Only considers the values if the Control col
b) Also deals with duplicates in the same way.
My end goal is to have this:
In StackOverflow I was suggested the following formula:
Unfortunately it doesn't work if I've duplicate values in col A with different control numbers:
Thank you very much.
I'm trying to create a column with a rank of values based on a control column. I've posted this in StackOverflow but I feel this forum is more appropriate for the topic.
My data:
VBA Code:
(A) (B) (C)
Value Control Rank
100 1 8
200 1 6
200 1 7
300 0 5
310 0 4
320 1 3
350 1 2
400 1 1
In col
C
I've used a combination of RANK
and COUNTIF
in order to get a general rank of all entries that accommodates duplicates:Now how I can do a rank on col
D
that:a) Only considers the values if the Control col
B
has the value 1
b) Also deals with duplicates in the same way.
My end goal is to have this:
In StackOverflow I was suggested the following formula:
Excel Formula:
=IFERROR(MATCH(A2,SORT(FILTER($A$2:$A$9,$B$2:$B$9>0),1,-1),0)+COUNTIF($A$2:A2,A2)-1,"")
Unfortunately it doesn't work if I've duplicate values in col A with different control numbers:
Thank you very much.