Help needed - count number of cells based on multiple criteria

JSLockwood

New Member
Joined
Aug 12, 2018
Messages
4
Hi guys,

Can anybody help me with a formula
ABCDEFGHIJK
Buy-InPlayersPlaces Paid1st(1)1st(2)1st(3)2nd3rdPosPrizeProfit /Loss
3052150505030050-30
15411252020001205
158290402025040-15
156255353020013015
1562145353035023520
30417070400017040
15314030200013015
155290502525015035
1551904020002015

<tbody>
</tbody>

Basically, these are poker tournament results. In this specific type of tournament, you randomly pick between 3 different prizes when you win.

I want to generate a formula that gives me the % time I have picked the "top" "middle" and "lowest" prize (to see any variance from the expected 1/3 on each). I want this individually for each of the different buy-in amounts, as well as as a whole.

So I need a formula that does the following:

% Top Prize Picked (for $15 buy-in):

When 'Column A' = 15 and 'Column I' = 1, count the amount of times Column D matches Column J (divided by when Column A = 15 and Column I = 1)

Thanks in advance :)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the MrExcel board!

I'm not understanding how columns E, F, G & H fit into the scheme. Can you explain further and/or give more calculation examples?

Based on the sample data and "When 'Column A' = 15 and 'Column I' = 1, count the amount of times Column D matches Column J (divided by when Column A = 15 and Column I = 1)", that result would be 0%. Is that correct?
 
Last edited:
Upvote 0
Welcome to the MrExcel board!

I'm not understanding how columns E, F, G & H fit into the scheme. Can you explain further and/or give more calculation examples?

Based on the sample data and "When 'Column A' = 15 and 'Column I' = 1, count the amount of times Column D matches Column J (divided by when Column A = 15 and Column I = 1)", that result would be 0%. Is that correct?

Thanks for your response Peter.

Columns G and H aren't particularly relevant to what I'm trying to do here, but just to be clear about what each column means I'll explain the process.

When you enter the tournament, you are seated at a table with a random number of players between 3 and 8. (This is shown in column B). The amount of places who receive a prize varies depending on how many players. Whoever wins the tournament has to then select one of 3 boxes, which becomes their prize.

Therefore, columns D, E and F show the 3 options for first prize, columns G and H show the prize for 2nd and 3rd place (if there is one).

Column I shows my position in that tournament and column J shows the prize I received.

You are correct that in my example, the calculation would be 0% - meaning out of all the times I won, I never picked the maximum prize available.

However, when I have a formula to work with I will be applying this in multiple ways as follows:

% picked max prize
% picked middle prize
% picked lowest prize

for each buy-in level as well as on the whole for all games. As mentioned, this will in effect show me how 'lucky' or 'unlucky' I am in terms of prize picking. This figure will help me to take account of variance when viewing my results.
 
Upvote 0
You are correct that in my example, the calculation would be 0% - meaning out of all the times I won, I never picked the maximum prize available.
For that same sample data & buy-in of 15 & position of 1 ...
- What is your % for picking the middle prize, and which rows/cells in my screen shot below give you that %?
- What is your percentage for picking the lowest prize, and which rows/cells in my screen shot below give you that %?


Book1
ABCDEFGHIJK
1Buy-InPlayersPlaces Paid1st(1)1st(2)1st(3)2nd3rdPosPrizeProfit /Loss
23052150505030050-30
315411252020001205
4158290402025040-15
5156255353020013015
61562145353035023520
730417070400017040
815314030200013015
9155290502525015035
101551904020002015
Prize %
 
Last edited:
Upvote 0
Grrr I've just encountered an issue, in that sometimes the top and middle, or middle and bottom prizes are the same. E.g. Row 2 and 3

Anyways, ignore that for now and I'll think of a work around, but the percentages based on the formula I'm trying to achieve would be:

Based on $15 buy in and first position (which happened 4 times) I picked:

Top prize: 0/4 - 0%
Middle prize: 3/4 (rows 3, 8 and 9) - 75%
Low prize: 2/4 (rows 3 and 5) - 50%

Yes, I know this is 125% for now :ROFLMAO:
 
Upvote 0
Yes, I know this is 125% for now :ROFLMAO:
That is exactly why I was asking! ;)

So, if you are happy with those percentages, try this formula, copied down.

Excel Workbook
ABCDEFGHIJKLMN
1Buy-InPlayersPlaces Paid1st(1)1st(2)1st(3)2nd3rdPosPrizeProfit /LossBuy-In15
23052150505030050-30Pos1
315411252020001205Top0.00%
4158290402025040-15Middle75.00%
5156255353020013015Low50.00%
61562145353035023520
730417070400017040
815314030200013015
9155290502525015035
101551904020002015
Prize %
 
Upvote 0
Try T26, copied across and down

Code:
=SUMPRODUCT(--($C$5:$C$29=T$18),--($L$5:$L$29=1),--(INDEX($F$5:$H$29,0,ROWS(T$26:T26))=$M$5:$M$29))/COUNTIFS($C$5:$C$29,T$18,$L$5:$L$29,1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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