I currently have these formulas for each value of 3-10 (in column C)...this is a formula to help create a golf handicap...
=(COUNTIF(E$3:E5,">0")>=$C5,(SUM(SMALL(E$3:E5,{1,2,3}))/$C5-35)*0.8,0)
...
=IF(COUNTIF(E$3:E15,">0")>=$C15,(SUM(SMALL(E$3:E15,{1,2,3,4,5,6,7,8,9,10}))/$C15-35)*0.8,0)
Column C houses a number from 3-10...I'm thinking I want to get rid of this column and build the logic into the formula...
I think what I want to do is count column E...
The logic would be:
if count =3,4,5 then sum the lowest 3 values and divide by 3...
if count =6,7 then sum the lowest 4 values and divide by 4...
if count =8 then sum the lowest 5 values and divide by 5...
if count =9 then sum the lowest 6 values and divide by 6...
if count =10 then sum the lowest 7 values and divide by 7...
if count =11 then sum the lowest 8 values and divide by 8...
if count =12 then sum the lowest 9 values and divide by 9...
if count =13 then sum the lowest 10 values and divide by 10...
Now I'm sure i could do a nested IF statement but I'm looking to see if there is a better way...any help would be great...
this is what is currently there for 1 player...i'm thinking of getting rid of col C and using a count to figure out as stated above...this page has all calculations pulled off a data input sheet...these formulas work perfectly until somebody misses a week...so i have to try and build logic in to capture that...
=(COUNTIF(E$3:E5,">0")>=$C5,(SUM(SMALL(E$3:E5,{1,2,3}))/$C5-35)*0.8,0)
...
=IF(COUNTIF(E$3:E15,">0")>=$C15,(SUM(SMALL(E$3:E15,{1,2,3,4,5,6,7,8,9,10}))/$C15-35)*0.8,0)
Column C houses a number from 3-10...I'm thinking I want to get rid of this column and build the logic into the formula...
I think what I want to do is count column E...
The logic would be:
if count =3,4,5 then sum the lowest 3 values and divide by 3...
if count =6,7 then sum the lowest 4 values and divide by 4...
if count =8 then sum the lowest 5 values and divide by 5...
if count =9 then sum the lowest 6 values and divide by 6...
if count =10 then sum the lowest 7 values and divide by 7...
if count =11 then sum the lowest 8 values and divide by 8...
if count =12 then sum the lowest 9 values and divide by 9...
if count =13 then sum the lowest 10 values and divide by 10...
Now I'm sure i could do a nested IF statement but I'm looking to see if there is a better way...any help would be great...
this is what is currently there for 1 player...i'm thinking of getting rid of col C and using a count to figure out as stated above...this page has all calculations pulled off a data input sheet...these formulas work perfectly until somebody misses a week...so i have to try and build logic in to capture that...
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | |||
2 | Week | MinGames | Act | Adj | Pts | Hdc | ||
3 | 1 | 48 | 47 | 9 | ||||
4 | 2 | 52 | 51 | 14 | ||||
5 | 3 | 3 | 48 | 47 | 16 | 11 | ||
6 | 4 | 3 | 54 | 54 | 6 | 11 | ||
7 | 5 | 3 | 48 | 48 | 1 | 10 | ||
8 | 6 | 4 | 48 | 48 | 12 | 10 | ||
9 | 7 | 4 | 49 | 49 | 7 | 10 | ||
10 | 8 | 5 | 46 | 46 | 10 | 10 | ||
11 | 9 | 6 | 48 | 48 | 9 | 10 | ||
12 | 10 | 7 | 46 | 44 | 11 | 9 | ||
13 | 11 | 8 | 0 | 10 | ||||
14 | 12 | 9 | 0 | 10 | ||||
15 | 13 | 10 | 0 | 11 | ||||
Monday Calcs (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G5 | =IF(COUNTIF(E$3:E5,">0")> =$C5,(SUM(SMALL(E$3:E5,{1,2,3}))/$C5 -35)*0.8,0) | |
G6 | =IF(COUNTIF(E$3:E6,">0")> =$C6,(SUM(SMALL(E$3:E6,{1,2,3}))/$C6 -35)*0.8,0) | |
G7 | =IF(COUNTIF(E$3:E7,">0")> =$C7,(SUM(SMALL(E$3:E7,{1,2,3}))/$C7 -35)*0.8,0) | |
G8 | =IF(COUNTIF(E$3:E8,">0")> =$C8,(SUM(SMALL(E$3:E8,{1,2,3,4}))/$C8 -35)*0.8,0) | |
G9 | =IF(COUNTIF(E$3:E9,">0")> =$C9,(SUM(SMALL(E$3:E9,{1,2,3,4}))/$C9 -35)*0.8,0) | |
G10 | =IF(COUNTIF(E$3:E10,">0")> =$C10,(SUM(SMALL(E$3:E10,{1,2,3,4,5}))/$C10 -35)*0.8,0) | |
G11 | =IF(COUNTIF(E$3:E11,">0")> =$C11,(SUM(SMALL(E$3:E11,{1,2,3,4,5,6}))/$C11 -35)*0.8,0) | |
G12 | =IF(COUNTIF(E$3:E12,">0")> =$C12,(SUM(SMALL(E$3:E12,{1,2,3,4,5,6,7}))/$C12 -35)*0.8,0) | |
G13 | =IF(COUNTIF(E$3:E13,">0")> =$C13,(SUM(SMALL(E$3:E13,{1,2,3,4,5,6,7,8}))/$C13 -35)*0.8,0) | |
G14 | =IF(COUNTIF(E$3:E14,">0")> =$C14,(SUM(SMALL(E$3:E14,{1,2,3,4,5,6,7,8,9}))/$C14 -35)*0.8,0) | |
G15 | =IF(COUNTIF(E$3:E15,">0")> =$C15,(SUM(SMALL(E$3:E15,{1,2,3,4,5,6,7,8,9,10}))/$C15 -35)*0.8,0) |
Last edited: