Using =SUM(SMALL to count but omitting Zero

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
104
Office Version
  1. 2021
Platform
  1. Windows
Hey everyone,

I'm doing a small spreadsheet for our local golf group and I'm stuck at using the =SUM(SMALL formula.
The golfers play FIVE rounds and the calculation is their BEST FOUR scores from the five. In golf, it's the LOWEST score that counts so I wrote this formula
=SUM(SMALL(B4:F4,1)+SMALL(B4:F4,2)+SMALL(B4:F4,3)+SMALL(B4:F4,4))

This works great if the golfer attended all five outings and returned a score, however, if they missed an outing, then a ZERO is recorded. This throws a wobbly as the formula counts the zero as one of the lowest scores.
How can i amend the formula not to count zero's. I tried this but it gave an error
=SUMIF(SMALL(B4:F4,"<>0",1)+SMALL(B4:F4,"<>0",2)+SMALL(B4:F4,"<>0",3)+SMALL(B4:F4,"<>0",4))

Thanks as always
GMC

Best Golf Rounds.xlsx
ABCDEFG
12024 CLUB Championship
2
3PLAYERKINGS ACRELOUDOUN GCAUCHTERARDERHIRSELTHORNTONBEST 4 RDS
4Player 16373696869269
5Player 268670750135
6Player 36870757270280
7Player 4707007672212
8Player 5727608168216
9Player 675737100144
10Player 776790780154
11Player 8788408470232
12Player 9790778072228
13Player 10807385760229
14Player 118473828786325
15Player 12807383810234
16Player 138282857581320
17Player 14927976810236
18Player 158683807571309
19Player 16848480081245
20Player 1797008989178
21Player 18081800080
22Player 19083810081
23Player 20069740069
Sheet1
Cell Formulas
RangeFormula
G4:G23G4=SUM(SMALL(B4:F4,1)+SMALL(B4:F4,2)+SMALL(B4:F4,3)+SMALL(B4:F4,4))
 
Actually, since there's only 5, you could also SUM them and subtract out the largest one:
=SUM(B4:F4,-MAX(B4:F4))
Hi Scott
Many thanks for looking at my question and giving me your solution. I really appreciate you taking the time to do this.
Thanks again
GMC
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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