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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.