ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sort rank (https://www.excelbanter.com/excel-worksheet-functions/244062-sort-rank.html)

Jennifer

sort rank
 
I am using the below formula to rank a column. I want whoever has the lowest
number to be ranked #1 and so forth. Any suggestions?

=IF(A1="","",SUMPRODUCT(--(A1<A$1:A$12),1/COUNTIF(A$1:A$12,A$1:A$12&""))+1)

Luke M

sort rank
 
Why not simply use:
=IF(A1="","",RANK(A1,A$1:A$12,1))

And copy down.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jennifer" wrote:

I am using the below formula to rank a column. I want whoever has the lowest
number to be ranked #1 and so forth. Any suggestions?

=IF(A1="","",SUMPRODUCT(--(A1<A$1:A$12),1/COUNTIF(A$1:A$12,A$1:A$12&""))+1)


Bernie Deitrick

sort rank
 
Jennifer,

Change

A1<A$1:A$12

to

A1A$1:A$12


HTH,
Bernie
MS Excel MVP


"Jennifer" wrote in message
...
I am using the below formula to rank a column. I want whoever has the lowest
number to be ranked #1 and so forth. Any suggestions?

=IF(A1="","",SUMPRODUCT(--(A1<A$1:A$12),1/COUNTIF(A$1:A$12,A$1:A$12&""))+1)




Bernie Deitrick

sort rank
 
Luke,

Why not simply use:


Because your formula handles ties differently than hers.

HTH,
Bernie
MS Excel MVP




All times are GMT +1. The time now is 02:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com