#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Ranking a list

I'm trying to build a spreadsheet to manage results from a race. The racers
can be in one of 7 different categories.

In column A, I want to rank the racer's finish, 1-x, x being the number of
racers for that category. In column H, I have the category for each racer.
In column I, I have the race times which I will use to sort my list.

I'm having trouble with the formula in column A, the rank. I have no way of
knowing how many racers are in each category so I can't just pre-enter a
series of numbers. I have to enter a series, starting from 1 and then reset
that series to 1 each time the value in column H changes.

Can anyone help with a worksheet function or formula?

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Ranking a list

So, you want to rank by time for each category?

Sounds like you should sort your data first by category then by time.

Then, a formula like this will do what you want: (assuming the lowest time
is best: rank = 1)

=SUMPRODUCT(--(H$2:H$10=H2),--(I2I$2:I$10))+1

Biff

"HK" wrote in message
.. .
I'm trying to build a spreadsheet to manage results from a race. The
racers can be in one of 7 different categories.

In column A, I want to rank the racer's finish, 1-x, x being the number of
racers for that category. In column H, I have the category for each
racer. In column I, I have the race times which I will use to sort my
list.

I'm having trouble with the formula in column A, the rank. I have no way
of knowing how many racers are in each category so I can't just pre-enter
a series of numbers. I have to enter a series, starting from 1 and then
reset that series to 1 each time the value in column H changes.

Can anyone help with a worksheet function or formula?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Ranking a list

I figured it out. So simple:

=IF(H24=H23,B23+1,1)

Column B is the Ranking Column. If it's the first occurrence of that
category, then it's 1, if not, then add 1 to B. And yes, I'm starting with
a sorted list.

Thanks.


"T. Valko" wrote in message
...
So, you want to rank by time for each category?

Sounds like you should sort your data first by category then by time.

Then, a formula like this will do what you want: (assuming the lowest time
is best: rank = 1)

=SUMPRODUCT(--(H$2:H$10=H2),--(I2I$2:I$10))+1

Biff

"HK" wrote in message
.. .
I'm trying to build a spreadsheet to manage results from a race. The
racers can be in one of 7 different categories.

In column A, I want to rank the racer's finish, 1-x, x being the number
of racers for that category. In column H, I have the category for each
racer. In column I, I have the race times which I will use to sort my
list.

I'm having trouble with the formula in column A, the rank. I have no way
of knowing how many racers are in each category so I can't just
pre-enter a series of numbers. I have to enter a series, starting from 1
and then reset that series to 1 each time the value in column H changes.

Can anyone help with a worksheet function or formula?

Thanks.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Ranking a list

I figured it out. So simple:
=IF(H24=H23,B23+1,1)


While that may seem to work, you're not actually ranking the times. You're
ranking by virtue of sorting and just counting the instances of a catergory.
That will probably be good enough but if 2 times in the same category are
the same, if that's even possible, then a true "rank" will not be achieved.

Biff

"HK" wrote in message
.. .
I figured it out. So simple:

=IF(H24=H23,B23+1,1)

Column B is the Ranking Column. If it's the first occurrence of that
category, then it's 1, if not, then add 1 to B. And yes, I'm starting
with a sorted list.

Thanks.


"T. Valko" wrote in message
...
So, you want to rank by time for each category?

Sounds like you should sort your data first by category then by time.

Then, a formula like this will do what you want: (assuming the lowest
time is best: rank = 1)

=SUMPRODUCT(--(H$2:H$10=H2),--(I2I$2:I$10))+1

Biff

"HK" wrote in message
.. .
I'm trying to build a spreadsheet to manage results from a race. The
racers can be in one of 7 different categories.

In column A, I want to rank the racer's finish, 1-x, x being the number
of racers for that category. In column H, I have the category for each
racer. In column I, I have the race times which I will use to sort my
list.

I'm having trouble with the formula in column A, the rank. I have no
way of knowing how many racers are in each category so I can't just
pre-enter a series of numbers. I have to enter a series, starting from
1 and then reset that series to 1 each time the value in column H
changes.

Can anyone help with a worksheet function or formula?

Thanks.







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Ranking a list

You're right. If get two identical times, it will not show a tie. I'll try
your formula again but I had trouble with it and went with my simple
version.


"T. Valko" wrote in message
...
I figured it out. So simple:
=IF(H24=H23,B23+1,1)


While that may seem to work, you're not actually ranking the times. You're
ranking by virtue of sorting and just counting the instances of a
catergory. That will probably be good enough but if 2 times in the same
category are the same, if that's even possible, then a true "rank" will
not be achieved.

Biff

"HK" wrote in message
.. .
I figured it out. So simple:

=IF(H24=H23,B23+1,1)

Column B is the Ranking Column. If it's the first occurrence of that
category, then it's 1, if not, then add 1 to B. And yes, I'm starting
with a sorted list.

Thanks.


"T. Valko" wrote in message
...
So, you want to rank by time for each category?

Sounds like you should sort your data first by category then by time.

Then, a formula like this will do what you want: (assuming the lowest
time is best: rank = 1)

=SUMPRODUCT(--(H$2:H$10=H2),--(I2I$2:I$10))+1

Biff

"HK" wrote in message
.. .
I'm trying to build a spreadsheet to manage results from a race. The
racers can be in one of 7 different categories.

In column A, I want to rank the racer's finish, 1-x, x being the number
of racers for that category. In column H, I have the category for each
racer. In column I, I have the race times which I will use to sort my
list.

I'm having trouble with the formula in column A, the rank. I have no
way of knowing how many racers are in each category so I can't just
pre-enter a series of numbers. I have to enter a series, starting from
1 and then reset that series to 1 each time the value in column H
changes.

Can anyone help with a worksheet function or formula?

Thanks.











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ranking SBárbara Excel Discussion (Misc queries) 3 December 14th 06 06:39 PM
Ranking a List which must be within GROUPS Gary Jordan Excel Discussion (Misc queries) 0 May 24th 06 02:06 PM
Ranking a list Bri Excel Worksheet Functions 9 January 22nd 06 12:14 AM
Ranking Tim Sullivan Excel Worksheet Functions 7 July 18th 05 07:00 PM
need function to sum top ranking items in list QuantumPion Excel Worksheet Functions 13 June 6th 05 10:42 AM


All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"