hello .. asking for some help,
i'm trying to rank values in table that have multiple rows and multiple columns to get the position of each value, as below
g h
1 -3 c3
2 -1 d1
3 1 a1
4 2 a4
5 2 b5
6 3 c2
7 3 a3
i'm trying to do this with formula ... manage to get to this in h starting row #3
=IF(CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5)))))=IFERROR(VLOOKUP(CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5))))),I$2:I2,1,FALSE),"WRONG"),CELL("address",INDEX($a$1:$f$5,SMALL(IF($a$1:$f$5=$H2,ROW($a$1:$f$5)-ROW($a$1)+1),SUM(1*($H3=OFFSET($H$2,0,0,INDEX(ROW($H3)-ROW($H$2)+1,1)-1,1)))+1),SMALL(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5)-COLUMN($a$1)+1),SUM(1*($H3=OFFSET($H$2,0,0,INDEX(ROW($H3)-ROW($H$2)+1,1)-1,1)))+1))),CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5))))))
but i face the problem in h6 and h7 it give the result as a2 and c3 rather than the right ones .. i know the issue is in choosing the min of the column number
and please assume that we have number 3 appeares more than two times
regards
i'm trying to rank values in table that have multiple rows and multiple columns to get the position of each value, as below
a b c d f
1 0 0 -1 0
0 0 3 0 0
3 0 -3 0 0
2 0 0 0 0
0 2 0 0 0
to get ranking position as:1 0 0 -1 0
0 0 3 0 0
3 0 -3 0 0
2 0 0 0 0
0 2 0 0 0
g h
1 -3 c3
2 -1 d1
3 1 a1
4 2 a4
5 2 b5
6 3 c2
7 3 a3
i'm trying to do this with formula ... manage to get to this in h starting row #3
=IF(CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5)))))=IFERROR(VLOOKUP(CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5))))),I$2:I2,1,FALSE),"WRONG"),CELL("address",INDEX($a$1:$f$5,SMALL(IF($a$1:$f$5=$H2,ROW($a$1:$f$5)-ROW($a$1)+1),SUM(1*($H3=OFFSET($H$2,0,0,INDEX(ROW($H3)-ROW($H$2)+1,1)-1,1)))+1),SMALL(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5)-COLUMN($a$1)+1),SUM(1*($H3=OFFSET($H$2,0,0,INDEX(ROW($H3)-ROW($H$2)+1,1)-1,1)))+1))),CELL("address",INDEX($a$1:$f$5,MIN(IF($a$1:$f$5=$H3,ROW($a$1:$f$5))),MIN(IF($a$1:$f$5=$H3,COLUMN($a$1:$f$5))))))
but i face the problem in h6 and h7 it give the result as a2 and c3 rather than the right ones .. i know the issue is in choosing the min of the column number
and please assume that we have number 3 appeares more than two times
regards