Stop average calculation when cell value is less than a certain number

HullBorn

New Member
Joined
Jan 18, 2023
Messages
4
Office Version
  1. 2016
Hi all,

I'm creating a dart scorer for my dart team.

We stop working out the player averages when the remaining score gets below 140. In the example below the remaining score is E1

e.g if the remaining score when it's player 2s turn is 145 his score wants to be counted towards his average. If he scores 6 or more the taking the remaining score below 140 the scores from then on are not counted on the averages. Hope that makes some sort of sense.

Would someone be able to help me with the formula to do this?

Thanks Wayne.

Darts Scorer v1.xlsx
BCDEFGHIJK
1308
2Team 11001
3ThrowsPlayer 1Player 2Player 3Player 4Player 5Player 6Round1001
4
5110045905656100447554
62502065454521246308
73  
84  
95  
106  
117  
128  
139  
1410  
1511  
1612  
1713  
1814  
1915  
2016  
2117  
2218  
2319  
2420  
2521  
2622  
2723  
2824  
2925  
3026  
3127  
3228  
3329  
3430  
35Averages75.0032.5077.5050.5050.5060.50346.50
Game 1
Cell Formulas
RangeFormula
E1E1=IF(COUNT(J5:J34)>0,MIN(J5:J34),K2)
J3J3=K2
I5:I34I5=IF(COUNT(C5:H5)>0,SUM(C5:H5),"")
J5J5=IF(LEN(I5)>0,IF(I5>J3,J3,IF(AND($B$1="Double",(J3-I5)=1),J3,J3-I5)),"")
J6:J34J6=IF(LEN(I6)>0,IF(I6>J5,J5,IF(AND($B$1="Double",(J5-I6)=1),J5,J5-I6)),"")
C35:H35C35=IFERROR(AVERAGE(C2:C29)+C32,"0")
I35I35=IFERROR(AVERAGE(I2:I29),"0")
Named Ranges
NameRefers ToCells
LeftP1='Game 1'!$J$3:$J$34J5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:I34Expression=A5=1textNO
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Sorry I am a little confused by your explanation. I might be able to help with this if I understood better.

So you are saying when E1 is under 140 the average calculation in row 35 should stop calculating? So right now your example does not match that scenario right? Can you provide an example that shows it as under 140?

"if the remaining score when it's player 2s turn is 145 his score wants to be counted towards his average" His score 'wants' to be counted?
 
Upvote 0
So you are saying when E1 is under 140 the average calculation in row 35 should stop calculating?
Yes, for all players for the remainder of the game.
if the remaining score when it's player 2s turn is 145 his score wants to be counted towards his average
Yes

Darts Scorer v1.xlsx
BCDEFGHIJK
1138
2Team 11001
3ThrowsPlayer 1Player 2Player 3Player 4Player 5Player 6Round1001
4
5110045905656100447554
62502065454521246308
7312050170138
84  
95  
106  
117  
128  
139  
1410  
1511  
1612  
1713  
1814  
1915  
2016  
2117  
2218  
2319  
2420  
2521  
2622  
2723  
2824  
2925  
3026  
3127  
3228  
3329  
3430  
35Averages90.0038.3377.5050.5050.5060.50287.67
Game 1
Cell Formulas
RangeFormula
E1E1=IF(COUNT(J5:J34)>0,MIN(J5:J34),K2)
J3J3=K2
I5:I34I5=IF(COUNT(C5:H5)>0,SUM(C5:H5),"")
J5J5=IF(LEN(I5)>0,IF(I5>J3,J3,IF(AND($B$1="Double",(J3-I5)=1),J3,J3-I5)),"")
J6:J34J6=IF(LEN(I6)>0,IF(I6>J5,J5,IF(AND($B$1="Double",(J5-I6)=1),J5,J5-I6)),"")
C35:H35C35=IFERROR(AVERAGE(C2:C29)+C32,"0")
I35I35=IFERROR(AVERAGE(I2:I29),"0")
Named Ranges
NameRefers ToCells
LeftP1='Game 1'!$J$3:$J$34J5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:I34Expression=A5=1textNO
 
Upvote 0
I am sorry I can not find a solution unless you average per row. So I added columns to do that. If you want to hide those columns if you want. The Average on row 35 will still update.

Cell Formulas
RangeFormula
I5:I34I5=IF(COUNT(C5:H5)>0,SUM(C5:H5),"")
J5J5=IF(LEN(I5)>0,IF(I5>K2,K2,IF(AND($C$1="Double",(K2-I5)=1),K2,K2-I5)),"")
J6:J34J6=IF(LEN(I6)>0,IF(I6>J5,J5,IF(AND($C$1="Double",(J5-I6)=1),J5,J5-I6)),"")
L5:L34L5=IF(J5="","",IF($J5>140,AVERAGE(C$5:C5),""))
M5:M34M5=IF(J5="","",IF($J5>140,AVERAGE(D$5:D5),""))
N5:N34N5=IF(J5="","",IF($J5>140,AVERAGE(E$5:E5),""))
O5:O34O5=IF(J5="","",IF($J5>140,AVERAGE(F$5:F5),""))
P5:P34P5=IF(J5="","",IF($J5>140,AVERAGE(G$5:G5),""))
Q5:Q34Q5=IF(J5="","",IF($J5>140,AVERAGE(H$5:H5),""))
C35:H35C35=LOOKUP(2,1/(L:L<>""),L:L)
 
Upvote 0
I am sorry I can not find a solution unless you average per row. So I added columns to do that. If you want to hide those columns if you want. The Average on row 35 will still update.

Cell Formulas
RangeFormula
I5:I34I5=IF(COUNT(C5:H5)>0,SUM(C5:H5),"")
J5J5=IF(LEN(I5)>0,IF(I5>K2,K2,IF(AND($C$1="Double",(K2-I5)=1),K2,K2-I5)),"")
J6:J34J6=IF(LEN(I6)>0,IF(I6>J5,J5,IF(AND($C$1="Double",(J5-I6)=1),J5,J5-I6)),"")
L5:L34L5=IF(J5="","",IF($J5>140,AVERAGE(C$5:C5),""))
M5:M34M5=IF(J5="","",IF($J5>140,AVERAGE(D$5:D5),""))
N5:N34N5=IF(J5="","",IF($J5>140,AVERAGE(E$5:E5),""))
O5:O34O5=IF(J5="","",IF($J5>140,AVERAGE(F$5:F5),""))
P5:P34P5=IF(J5="","",IF($J5>140,AVERAGE(G$5:G5),""))
Q5:Q34Q5=IF(J5="","",IF($J5>140,AVERAGE(H$5:H5),""))
C35:H35C35=LOOKUP(2,1/(L:L<>""),L:L)
 
Upvote 0
Thanks, that's a good solution.

Is there a way I can download the spreadsheet?

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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