Split the prize amounts for ties?

Douglas Edward

New Member
Joined
Jul 24, 2018
Messages
22
Office Version
  1. 2019
Platform
  1. Windows
How do I create a formula to split the prize amounts for ties? (It's for a golf league)

Player Score Rank Prize Rank Prize In this example the prize payout should be…
A 70 1 ? 1 100 95
B 70 1 ? 2 90 95
C 71 3 ? 3 80 70
E 71 3 ? 5 60 70
F 72 6 ? 6 50 30
G 72 6 ? 7 40 30
H 72 6 ? 8 30 30
I 72 6 ? 9 20 30
J 72 6 ? 10 10 30
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
like this?

HTML:
Player	Score	Rank	Prize	Rank	Prize
A	70	1	95	1	100
B	70	1	95	2	90
C	71	3	70	3	80
E	71	3	70	5	60
F	72	6	30	6	50
G	72	6	30	7	40
H	72	6	30	8	30
I	72	6	30	9	20
J	72	6	30	10	10

formula in D2 the cell below prize
Code:
=SUMIF($C$2:$C$10,C2,$F$2:$F$10)/COUNTIF($C$2:$C$10,C2)

just replace $C$10 and $F$10 with the last cell in your list. hope that works
 
Upvote 0
That works perfectly! Thank you fhqwgads!

Now I just wish I understood how it works. ha

Any chance you could give a explanation?
 
Upvote 0
I spoke too soon.

It works perfectly if you keep the rank column sorted in ascending order.

But If the rank column is in a random order, the prize column stays in descending order.
 
Upvote 0
Maybe something like this


A
B
C
D
E
F
G
1
Player​
Score​
Rank​
Prize​
Rank​
Prize​
2
A​
72​
8​
10​
1​
100​
3
B​
70​
1​
90​
2​
90​
4
C​
71​
4​
45​
3​
80​
5
E​
71​
4​
45​
4​
60​
6
F​
73​
11​
0​
5​
50​
7
G​
71​
4​
45​
6​
40​
8
H​
72​
8​
10​
7​
30​
9
I​
72​
8​
10​
8​
20​
10
J​
73​
11​
0​
9​
10​
11
K​
70​
1​
90​
12
L​
71​
4​
45​
13
M​
70​
1​
90​
14
15
Total​
480​
Total​
480​

Formula in C2 copied down (Rank)
=COUNTIF(B$2:B$13,"<"&B2)+1

Formula in D2 copied down
=IF(C2>9,0,SUM(OFFSET(INDEX(G$2:G$10,MATCH(C2,$F$2:$F$10,0)),,,MIN(9-MATCH(C2,F$2:F$10,0)+1,COUNTIF(C$2:C$13,C2))))/COUNTIF(C$2:C$13,C2))

Just to check...
Formula in D15
=SUM(D2:D13)

Formula in G15
=SUM(G2:G10)

Hope this helps

M.
 
Upvote 0
basically to split between ties we need to find the average of the prize money, which is the total prize money divided by the number of people with the same score

Code:
=SUMIF($C$2:$C$10,C2,$F$2:$F$10)/COUNTIF($C$2:$C$10,C2)

to find the total prize money of people with the same score we use SUMIF

SUMIF adds numbers together based on various criteria
SUMIF(range of cells your are checking, criteria you are checking for, range of numbers to sum)
the range we are looking at is all the possible places in $C$2 to the bottom (now that i think about it, you might be able to just use the whole of column C as a reference instead of specifying C2 to whatever if you want to simplify the code a bit). the criteria we are looking for is the place that specific player got in C2. and the range of numbers sum adds the numbers that fulfill the criteria

basically it looks at what place the player got and adds all the prize money amounts that have the same place

COUNTIF gives us the number of players with the same place

COUNTIF(range you're looking in, what you're looking for)

this gives you a count of all the occurrences of the value you're looking for, in this case the player's place, in the range

sorry it's not the best explanation. i'm not great with words. the office support site have better explanations and examples

https://support.office.com/en-us/article/sumif-function-169b8c99-c05c-4483-a712-1697a653039b
https://support.office.com/en-us/article/COUNTIF-function-E0DE10C6-F885-4E71-ABB4-1F464816DF34
 
Upvote 0
ah sorry my solution didnt work out. hopefully other people can help
 
Upvote 0
Playerscorerankprizerankprize
A701951100
B72630290
C72630380
E71340560
F72630650
G70195740
H71340830
I72630920
J726301010

<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>

For random ranks
Formula in C2 then dragdown

=SUMPRODUCT(($F$2:$F$10)*($E$2:$E$10>=C2)*($E$2:$E$10<(C2+COUNTIF($C$2:$C$10,C2))))/COUNTIF($C$2:$C$10,C2)
 
Upvote 0
A simpler formula


A
B
C
D
E
F
G
1
Player​
Score​
Rank​
Prize​
Rank​
Prize​
2
A​
72​
8​
10​
1​
100​
3
B​
70​
1​
90​
2​
90​
4
C​
71​
4​
45​
3​
80​
5
E​
71​
4​
45​
4​
60​
6
F​
73​
11​
0​
5​
50​
7
G​
71​
4​
45​
6​
40​
8
H​
72​
8​
10​
7​
30​
9
I​
72​
8​
10​
8​
20​
10
J​
73​
11​
0​
9​
10​
11
K​
70​
1​
90​
12
L​
71​
4​
45​
13
M​
70​
1​
90​
14
15
Total​
480​
Total​
480​

Formula in C2 copied down (Rank)
=COUNTIF(B$2:B$13,"<"&B2)+1

Formula in D2 copied down
=SUMIFS(G$2:G$10,F$2:F$10,">="&C2,$F$2:$F$10,"<="&C2+COUNTIF(C$2:C$13,C2)-1)/COUNTIF(C$2:C$13,C2)

M.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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