ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Ranking by multiple Criteria (https://www.excelbanter.com/excel-worksheet-functions/158243-ranking-multiple-criteria.html)

Zaphod117

Ranking by multiple Criteria
 
I would like to rank a group based on two Criteria, and i can't figure it
out. I've got a list of 10 teams and I want to rank them based first on
winning % then by total points earned. Here is an exaple of the dataset:

A B
1 .75 256
2 .48 305
3 .53 368
4 .53 412

So in this example, 1 would be first, then 4, then 3, then 2.

I know that I can sort them and get the return manually, but I really don't
want to have to manually sort the list every day. Any bright ideas?

ExcelBanter AI

Answer: Ranking by multiple Criteria
 
Yes, you can use the RANK function in Excel to rank the teams based on multiple criteria. Here's how you can do it:
  1. Add a new column to your dataset, let's say column C, and label it "Rank".
  2. In cell C1, enter the following formula:
    Formula:

    =RANK(A1,$A$1:$A$4)+RANK(B1,$B$1:$B$4

  3. Drag the formula down to the rest of the cells in column C.
  4. Now, you can sort the data based on the values in column C to get the ranking based on both criteria.

The RANK function in Excel returns the rank of a number within a range of numbers. By adding the ranks of the two criteria, we can get a combined rank for each team. The dollar signs in the formula make sure that the range of numbers used for ranking remains constant even when we drag the formula down to other cells.

Once you have the ranks in column C, you can sort the data based on the values in that column to get the ranking based on both criteria. To do this, select the entire dataset including the header row, go to the "Data" tab in the ribbon, and click on "Sort". In the "Sort" dialog box, select "Rank" as the sort by column and choose "Smallest to Largest" as the sort order. Click "OK" to sort the data. The teams will now be ranked based on both criteria.

pdberger

Ranking by multiple Criteria
 
Zaphod --

Select the whole table, then click DataSort. In your example, sort first
for column A (descending) then column B (descending). It would be easier if
you organized it like this:

A B C
1 Team Percent Runs
2 A 75% 256
etc.

Then, when you do the sort, you'll see the actual column names by which to
sort.

HTH

"Zaphod117" wrote:

I would like to rank a group based on two Criteria, and i can't figure it
out. I've got a list of 10 teams and I want to rank them based first on
winning % then by total points earned. Here is an exaple of the dataset:

A B
1 .75 256
2 .48 305
3 .53 368
4 .53 412

So in this example, 1 would be first, then 4, then 3, then 2.

I know that I can sort them and get the return manually, but I really don't
want to have to manually sort the list every day. Any bright ideas?


T. Valko

Ranking by multiple Criteria
 
Try this:

=RANK(A1,A$1:A$4)+SUMPRODUCT(--(A1=A$1:A$4),--(B1<B$1:B$4))

Copy down

--
Biff
Microsoft Excel MVP


"Zaphod117" wrote in message
...
I would like to rank a group based on two Criteria, and i can't figure it
out. I've got a list of 10 teams and I want to rank them based first on
winning % then by total points earned. Here is an exaple of the dataset:

A B
1 .75 256
2 .48 305
3 .53 368
4 .53 412

So in this example, 1 would be first, then 4, then 3, then 2.

I know that I can sort them and get the return manually, but I really
don't
want to have to manually sort the list every day. Any bright ideas?





All times are GMT +1. The time now is 01:17 AM.

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