Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

COUNTIF Function Multiple Ranges

✭✭
edited 09/20/23 in Formulas and Functions

Hello all I am struggling with adding a second range with a Yes/No function. Below I have the basic function. What I am trying to do is get the count of cardiology that also meet the yes criteria.

=COUNTIF({02 ClinicalTrials.gov Problem Metrics Range 1},"Cardiology")


Would I add an AND statement or what. This formula below does not work though.

=COUNTIF({02 ClinicalTrials.gov Problem Metrics Range 1},"Cardiology") AND =COUNTIF({02 ClinicalTrials.gov Problem Metrics Range 2},"YES")

Below this also did not work. The first one I copied off smart sheets training.

=COUNTIF({02 ClinicalTrials.gov Problem Metrics Range 1},"Cardiology", [02 ClinicalTrials.gov Problem Metrics Range 2, "Yes")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions