You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Apple Fitness+ unveils an exciting lineup of new ways to stay active and mindful in 2025

Offerings include new programs for strength, pickleball, yoga, and breath meditation, and a new collaboration with Strava. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Numbers Formula on my MAC Pro

I have a spreadsheet relating to golf scores.


When I enter my score [say 4 on hole 1), I want the row relating to par for that hole, [ie 4 for hole 1] to increase by 4.


So when I complete another round of golf, and enter my score for hole 1 in my example, say a 5, I want the par entry to increase by 4 to 8, which represents the number of shots that I should have taken for that hole in two rounds.


22 Sept 2021

4 {ACTUAL SCORE]

24 Sept 2021

4

27 Sept 2021

5

29 Sept 2021

4

1 Oct 2021

4

4 Oct 2021

5

11 Oct 2021

5

15 Oct 2021

5

18 Oct 2021

4

20 Oct 2021

5

22 Oct 2021

3

25 Oct 2021

4

Actual

52

Par

48 [equivalent to 12 score entries]


MacBook Pro 13″, macOS 10.15

Posted on Oct 31, 2021 12:42 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 1, 2021 1:35 AM

Hi Smokey,


I'd start by making some changes in the table to avoid columns where the data switches format between numbers and dates. This simplifies the formulas used.


List the dates in column A, and the number of strokes on each hole in a separate column, as shown below.

Rows 1 and 2 are defined as Header rows.

Rows 16 and 17 are defined as Footer rows.


This allows a 'full column reference, as seen in the SUM formula, that actually includes only the body rows (3 to 15 in the example) omitting the Header rows and Footer rows in the SUM formula shown above, and in the Count formula shown below.


SUM above sums the values in all body cell of column A. Blank cells are treated as zeros.


This formula, in B17, multiplies the par value in row 2 of its column by the COUNT of scores entered in that column.


COUNT counts only the cells that contain numbers or quasi-numeric values (such as Date and Time values). The result is 'Par' for the number of scores recorded for each hole.


Enter the formulas a shown in the footer rows of column B, then fill then right to the column for the last hole.


Regards,

Barry



4 replies
Question marked as Top-ranking reply

Nov 1, 2021 1:35 AM in response to Smokey339

Hi Smokey,


I'd start by making some changes in the table to avoid columns where the data switches format between numbers and dates. This simplifies the formulas used.


List the dates in column A, and the number of strokes on each hole in a separate column, as shown below.

Rows 1 and 2 are defined as Header rows.

Rows 16 and 17 are defined as Footer rows.


This allows a 'full column reference, as seen in the SUM formula, that actually includes only the body rows (3 to 15 in the example) omitting the Header rows and Footer rows in the SUM formula shown above, and in the Count formula shown below.


SUM above sums the values in all body cell of column A. Blank cells are treated as zeros.


This formula, in B17, multiplies the par value in row 2 of its column by the COUNT of scores entered in that column.


COUNT counts only the cells that contain numbers or quasi-numeric values (such as Date and Time values). The result is 'Par' for the number of scores recorded for each hole.


Enter the formulas a shown in the footer rows of column B, then fill then right to the column for the last hole.


Regards,

Barry



Numbers Formula on my MAC Pro

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.