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.

Pesky COUNTIFS with OR formula

Hi everyone,

I have one of those pesky formulas that is giving me a hard time. This is for a Summary Sheet I'll use to build a dashboard so I'm referencing another sheet with the data. Here's what I am trying to pull...Count if the following is true:

1) Project name is the same as the project in the summary sheet

2) Month is the same as the month in the summary sheet column

3) Year is the same as the year reference in the summary sheet

4) Status is not equal to "Completed" or "Canceled/Lost"

I have functioning formulas with 1-3 so I know they are correctly referencing as expected.

It's the 4th piece that is giving me issues. I do have a COUNTIF formula looking at the statuses which is working without issue. I've gone back and forth about AND vs OR but in both cases am getting the INVALID OPERATOR error.

Here's the formula as is:

=COUNTIFS({Project}, $Project@row, {Month}, Jan$17, {Year}, $Reference$14, OR({Status} <> "Completed", {Status} <> "Canceled/Lost"))

Here's a screenshot of my Summary Sheet.

COUNTIFS with OR.png

Thank you in advance for your help!

~Jaime

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions