Hi,
I have a range of id's and a range of monetary values.
Col A Col B
a 100
b 10
c 20
d 20
etc etc
I would like to create a list in another worksheet that shows the n highest values (in col B) and the id of those values.
so you would see this for the top 3 values.
ID Value
a 100
c 20
d 20
I have this formula which nearly works:
to find ID (where this formula is entered into cell A2):
INDEX('[TEST.xls]TEST1'!$A$2:$A$192,MATCH(B2,'[TEST.xls]TEST1'!$B$2:$B$192,0))
to find value (where this formula is entered into cell B2):
LARGE('[TEST.xls]TEST1'!$B$2:$B$192,ROW()-ROW($B$1))
However the Index function to find the ID only finds the first ID where there is a duplicate value. e.g. in the example above it would display id c twice and not id d.
Anyone know how i can solve this?
Thanks,
I have a range of id's and a range of monetary values.
Col A Col B
a 100
b 10
c 20
d 20
etc etc
I would like to create a list in another worksheet that shows the n highest values (in col B) and the id of those values.
so you would see this for the top 3 values.
ID Value
a 100
c 20
d 20
I have this formula which nearly works:
to find ID (where this formula is entered into cell A2):
INDEX('[TEST.xls]TEST1'!$A$2:$A$192,MATCH(B2,'[TEST.xls]TEST1'!$B$2:$B$192,0))
to find value (where this formula is entered into cell B2):
LARGE('[TEST.xls]TEST1'!$B$2:$B$192,ROW()-ROW($B$1))
However the Index function to find the ID only finds the first ID where there is a duplicate value. e.g. in the example above it would display id c twice and not id d.
Anyone know how i can solve this?
Thanks,