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.

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

COUNTIF between two dates

Hi,


Starting to get desperate as I am not used to working in numbers and it seems to work quite differently than Excel. Hoping someone can please help me here.


Q: In the Summary column I want to know how many people have registered per month (please see example below of table), what formula can I use to do so?



User uploaded file

Appreciate the help! Thanks so much! 🙂

Posted on Aug 30, 2018 4:25 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 31, 2018 1:07 AM

Hi 'bella,


You've removed the commas from the circled areas, leaving the semi colons.


Assuming this is correct for your region, you'll also need to change the rest of the commas in the formula to semi colons as well.

User uploaded file

(I do have some doubts regarding this advice, as the formula is displaying the coloured tokens for cell references here. I would expect to see a simple text display if Numbers were not recognizing this as a formula. Will check in again later in the day.)


Regards,

Barry

6 replies
Question marked as Top-ranking reply

Aug 31, 2018 1:07 AM in response to heybella

Hi 'bella,


You've removed the commas from the circled areas, leaving the semi colons.


Assuming this is correct for your region, you'll also need to change the rest of the commas in the formula to semi colons as well.

User uploaded file

(I do have some doubts regarding this advice, as the formula is displaying the coloured tokens for cell references here. I would expect to see a simple text display if Numbers were not recognizing this as a formula. Will check in again later in the day.)


Regards,

Barry

Aug 30, 2018 7:12 AM in response to heybella

The function countif() sums when a single condition is true


there is a sister function countifs() which sums only when multiple conditions are true


you can do something like this:

User uploaded file


Name the table where you enter registrants "Registration Data" and the summary table on the right "Registration Summary"


make the first row of both tables a header row


In the table on the right ("Registration Summary"), select cell B2, then type (or copy and paste from here) the formula:

=COUNTIFS(Registration Data::A, ">="&DATE(YEAR(A2), MONTH(A2), 1),Registration Data::A, "<="&EOMONTH(DATE(YEAR(A2), MONTH(A2), 1),0))



short hand for this is:

B2=COUNTIFS(Registration Data::A, ">="&DATE(YEAR(A2), MONTH(A2), 1),Registration Data::A, "<="&EOMONTH(DATE(YEAR(A2), MONTH(A2), 1),0))


to fill down, select cell B2, copy

select cells B2 thru B13, paste

Aug 30, 2018 12:53 PM in response to heybella

heybella,


There ae three syntax errors in the formula:

User uploaded file

The separator in the three circled places should be a comma OR a semi colon.

Use a comma ( , ) if your region uses a period ( . ) as the decimal separator: $1.23

Use a semi colon ( ; ) if your region uses a comma ( , ) as the decimal separator: €1,23


Regards,

Barry

COUNTIF between two dates

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