Forum Discussion
Reza Dashti
Sep 25, 2020Copper Contributor
IF function
Hi
i use COUNTIF + AND functions to count the number of some courses. i want to count course and status at the same time. i mean count the number of LANUGUAGE when STATUS is yes. for example there are there rows where COURSE=LANGUAGE and STATUS=YES, but my formula in cell j2 returns zero. how can i solve the problem? an image is also attached.
luck
Reza Dashti That could be:
=SUMPRODUCT(--(C2:C5="language")*--(F2:F5="yes"))or
=COUNTA(FILTER(C2:C5,(C2:C5="language")*(F2:F5="yes")))in case you are a MS365 subscriber.
7 Replies
- SergeiBaklanDiamond Contributor
That's COUNTIFS() which allows to use several AND conditions
- Reza DashtiCopper Contributor
- SergeiBaklanDiamond Contributor
In your sample in column D you have no one word "language", thus formula correctly returns zero. If you'd like to calculate on column C, when it returns another.
You may use formula suggested by Riny_van_Eekelen , or COUNTIFS