When I use =RANK(5,A1:A5,1) the answer I get is 3. which is the third
POSITION not the value. ( I expect an answer of 2 because 5 is the second
smallest number while 4 is the first ). But since there are two instances of
4 the formula assumes that the two fours make up for the 1st and second
smallest number so that 5 is the third smallest.
SMALL() is getting fooled by the duplicates. So let's get rid of them:
In B1 enter 1
In B2 enter:
=IF(A2="",-1,IF(COUNTIF($A$1:$A1,A2)>0,0,MAX($B$1:B1)+1))
and copy down
In C1 enter:
=INDEX($A$1:$A$30,MATCH(ROW(),B$1:B$30,0),1)
and copy down
This is what we see:
4 1 4
4 0 5
5 2 8
8 3 10
10 4
Note that column C is just column A with all the duplicates removed. Now
=SMALL(C:C,1) shows 4
=SMALL(C:C,2) shows 5
=SMALL(C:C,3) shows 8

Signature
Gary''s Student - gsnu200787
> When I use =RANK(5,A1:A5,1) the answer I get is 3. which is the third
> POSITION not the value. ( I expect an answer of 2 because 5 is the second
> smallest number while 4 is the first ). But since there are two instances of
> 4 the formula assumes that the two fours make up for the 1st and second
> smallest number so that 5 is the third smallest.