ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with Sumproduct or Rank (https://www.excelbanter.com/excel-discussion-misc-queries/238831-help-sumproduct-rank.html)

Kim

Help with Sumproduct or Rank
 
I've this formula =SUMPRODUCT(($L$2:$L$35=L4)*(AO4<$AO$2:$AO$35))+1

1. It give me the correct ranking but from highest to lowest. I need them to
be lowest to the highest.

2. At the moment it gives me the ranking based on column L. If I need it to
give me the ranking based on 2 criteria (ie same country and same postal
city). Country= column C, Postal City = column L. This is because the same
postal city could be in two country. Ie Birmingham in UK and in US.

Thanks.
Kim



joel

Help with Sumproduct or Rank
 
going from highest to lowest is simply changing the "<" to "".


Here is the results for two cities

=SUMPRODUCT(($C$2:$C$35=C4)*($L$2:$L$35=L4)*(AO4$ AO$2:$AO$35))+1


"Kim" wrote:

I've this formula =SUMPRODUCT(($L$2:$L$35=L4)*(AO4<$AO$2:$AO$35))+1

1. It give me the correct ranking but from highest to lowest. I need them to
be lowest to the highest.

2. At the moment it gives me the ranking based on column L. If I need it to
give me the ranking based on 2 criteria (ie same country and same postal
city). Country= column C, Postal City = column L. This is because the same
postal city could be in two country. Ie Birmingham in UK and in US.

Thanks.
Kim




All times are GMT +1. The time now is 05:37 PM.

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