Counting into other columns.

mwindau

New Member
Joined
Sep 11, 2015
Messages
32
Office Version
  1. 365
I am working on a golf spreadsheet. How do I count the eagles, birdies, pars, bogeys, dbl bogeys, other score in separate columns from the Par and Score columns below.


ABCDEF

<tbody>
</tbody>
ParScoreEaglesBirdiesParsBogeysdbl bogeysOthers
44
56
45
34
56
45
43
47
34

<tbody>
</tbody>
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Assuming the data above is in cells A2:B10, place these formulas in cells D2:H2
Birdies: =SUMPRODUCT(--(A2:A10-B2:B10=1))
Pars: =SUMPRODUCT(--(A2:A10=B2:B10))
Bogeys: =SUMPRODUCT(--(A2:A10-B2:B10=-1))
Dbl Bogeys: =SUMPRODUCT(--(A2:A10-B2:B10=-2))
Others: =COUNT(A2:A10)-SUM(D2:G2)
 
Upvote 0
You are welcome.

I forgot Eagles, but that would just be the same formula as Birdies, changing the 1 to a 2, i.e.
=SUMPRODUCT(--(A2:A10-B2:B10=2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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