Ranking Values that Meet a Certain Criteria

A

andy.hogan

How can I rank a set of values in a range that meet a specified
criteria?

An example:
range A1:A10 contains the number of wins a team has. range B1:B10
contains each team's goal differential. For teams that have the same
number of wins, I want to be able to rank them on their goal
differential. I don't want to sort the list and then rank (this is a
simplified example) - rather having excel automatically identifying
all of the ties and breaking them.

Any help??

Thanks,
adh
 
T

T. Valko

Try this:

The higher goal differential is ranked better.

Entered in C1:

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

Copy down to C10

Biff
 
A

andy.hogan

thanks, biff.

would it be possible to add a third ranking criteria? say two teams
are tied for both wins and goals scored, so i want to break that tie
in a third column (say, C1:C10) which is goals scored at home.

thanks!!

-adh
 
T

T. Valko

The higher goals scored are ranked better:

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

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top