Prize Payout Calculation

johnrlalor

New Member
Joined
Feb 14, 2014
Messages
40
I have been working on a competition spreadsheet and have one item which is still causing me problems.
The competition is made up of 2 categories plus an overall prize winner.
What I am trying to acheive is that if a particular golfer wins the overall prize, the 2nd place golfer in his/her category wins the 1st place category prize as in the example below:

The overall winner can come from either category, all I really need is a formula which will reference column D to define the positions in column F, any help is appreciated.
CategoryPtsPosTrue Category PosCat Pos for prize calculation
Player 1140532
Player 2150321
Player 3130854
Player 417011-
Player 5140532
Player 6220944
Player 72201055
Player 8260211
Player 9240533
Player 10250322

<colgroup><col><col span="4"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You don't mention your excel version but if 2010 or later try:

=IF(E2="","",IF(AGGREGATE(15,6,1/($B$2:$B$12=B2)*$D$2:$D$12,1)=1,IF(E2-1=0,"-",E2-1),E2))
 
Upvote 0
Hi Steve,
That does exactly what I want. Can you explain what the aggregate (15,6,1 is doing as I may need to increase/decrease the participants in each category.
Thanks
John
 
Upvote 0
It is doing a calculation using the function SMALL (this is the 15) ignoring errors (the 6). The 1/($B$2:$B$12=B2) produces an error if any of the cells in B2:B12 don't equal B2 and a 1 if they do. This error is then ignored (back to the 6). The one is multiplied by D2:D12 to produce a series of numbers. SMALL acts on these numbers to produce the smallest number (,1 at the end). If it equals 1 we know the overall winner is within our category.
 
Upvote 0

Forum statistics

Threads
1,217,386
Messages
6,136,278
Members
450,001
Latest member
KWeekley08

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top