AGoodKeenMan,
Here's the file...
Jim
Main Topics
Browse All TopicsI have a list of competitors, they all have an age class and a score. The table is categorized by the class and sorted by score. I would like to add another column with the competitors rank in each class.
I have searched for an excel formula to rank by category and found this:
A2:A20 = class
C2:C20 = score
Enter this formula in D2 and copy down as needed:
=SUMPRODUCT(--(A$2:A$20=A2
I don't understand what is going on here and it doesn't appear to work in numbers.
Please help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There appears to be a problem with the file attached, it crashes Numbers.
I pasted your formula above and got the same result. The error I get is "The Range A3:A21 can't be used as a single value". Does that give you any clues as to what I have wrong?
The class is string "Senior", "Open", "Junior" etc. and the score is a number.
Can you explain what the SUMPRODUCT() function does?
AGoodKeenMan,
As mentioned above, the SUMPRODUCT formula is counting all rows with a class equal to the existing row (A$2:A$20=A2) that have scores less than the score for the existing row (C2<C$2:C$20). The rest of the formulat then adds 1 to give the row a rank by class from highest score (rank 1) to lowest (rank n).
> it crashes Numbers
I'm not sure what you mean by that. Can you post your file? Here is another sample file that works with text values in column A.
Jim
Which version of Numbers do you have? I believe that Numbers 09 has a COUNTIFS function similar to Excel 2007 so you could rewrite the SUMPRODUCT formula as a COUNTIFS, i.e.
=COUNTIFS(C$2:C$10,">"&
I can't test this in Numbers 09 because I don't have it. That formula works in Excel 2007 and I believe the syntax is very similar.......
Note: SUMPRODUCT exists in both Numbers 08 and Numbers 09 but Numbers doesn't support the coercion of Boolean values involved in the specific SUMPRODUCT formula here.....
regards, barry
> I don't understand what is going on here and it doesn't appear to work in numbers.
It would help if you:
a forgot about excel
b understood what you want to do
c understood the Numbers functions available, how to use them
d understood what you need to have (the columns in the correct format for [b] and [c] )
e used Numbers functions (without regard to "how excel does it")
Cheers
Business Accounts
Answer for Membership
by: jeveristPosted on 2009-07-14 at 10:40:17ID: 24852073
Hi AGoodKeenMan,
),--(--C2<- -C$2:C$20) )+1
> I don't understand what is going on here
The SUMPRODUCT formula is counting every class for the existing row (A$2:A$20=A2) that is less that the score for the row (C2<C$2:C$20) and adding 1 to give the row a rank by class from highest score (rank 1) to lowest (rank n).
> it doesn't appear to work in numbers
It seems to work OK with numbers for me but is you have a mix of numbers and text then this version may work a little better:
=SUMPRODUCT(--(A$2:A$20=A2
See a sample file attached.
Jim