Combining COUNTIF and IF statements

edited 12/09/19 in Formulas and Functions

I am ultimately trying to add KPI data to a dashboard, but am stuck on the formula.  I want to look at two columns of data (Status and Priority) and cannot get the formula correct.

I want to show how many rows we have for each Priority level (I am using Stars, which are represented in Smartsheet as "zero", "one", "two", "three", "four", and "five". But I don't want to show any rows that have the Status of "Complete" or Denied/Deferred". Here is the formula that I have for Priority Five, but it comes back as Unparseable. I'm stuck!

=IF({Status} <= "Complete", OR({Status} <= "Denied/Deferred", THEN(=COUNTIF({Priorities}, "Five")))



Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!