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.

Two conditions in a COUNTIF conditional formula?

I'd like to count the number of people who are between 20 and 30 years old.


COUNTIF (AGE-COLUMN, CONDITION), where CONDITION is something like ">=20 and <=30".


Is there a way to do this?


Thanks!

iMac / iBook / iPhone, Mac OS X (10.5.2)

Posted on Sep 1, 2018 10:31 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 1, 2018 1:38 PM

Hi Mark'


COUNTIF accepts a single condition. For multiple conditions, use COUNTIFS:


COUNTIFS(C,">=20",C,"<=30")

User uploaded file


Regards,

Barry


Note: the "C" column reference includes all cells in column C, except cells in Header rows (Row 1 in the example) or Footer rows (none in the example).

B.

3 replies
Question marked as Top-ranking reply

Sep 1, 2018 1:38 PM in response to markmal

Hi Mark'


COUNTIF accepts a single condition. For multiple conditions, use COUNTIFS:


COUNTIFS(C,">=20",C,"<=30")

User uploaded file


Regards,

Barry


Note: the "C" column reference includes all cells in column C, except cells in Header rows (Row 1 in the example) or Footer rows (none in the example).

B.

Two conditions in a COUNTIF conditional formula?

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