Link to home
Start Free TrialLog in
Avatar of oldrin
oldrin

asked on

conditional ranking

I am using sumproduct function for conditional ranking.  

But the ranking is not in sequence when there is a repetition of same amounts.

Please find enclosed sample.

Could you please fine tune the formula so that the ranking by the function is matching with the ranking in the example column ?

Thanks in Advance.
sample-for-conditional-ranking.xlsx
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Try this formula in B2 copied down

=SUMPRODUCT(((B$2:B$73<B2)*(A$2:A$73=A2))/COUNTIFS(A$2:A$73,A$2:A$73,B$2:B$73,B$2:B$73))+1

regards, barry
Avatar of oldrin
oldrin

ASKER

Thanks Barry,

Your solution is working and results are as per example.

When I increase the range to above 73 and if the cells are blank then an error is resulted.

Could you please help to resolve this ?
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial