OR With COUNTIFS Use

Options

The following formula works exactly as I need it to:

=COUNTIFS(OTD:OTD, "Yes", [Actual Completion]:[Actual Completion], AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021)) / COUNTIFS([Actual Completion]:[Actual Completion], AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021))

BUT... I can't figure out how to get it to include "N/A" (in addition to "Yes") in the criterion to be counted. I've tried the OR function every which way I can think of, but I'm missing something.

All suggestions/logic explanations are welcome! ^_^

Best Answer

  • Devin Lee
    Devin Lee ✭✭✭✭✭
    Answer ✓
    Options

    Hey @Katherine Wilgruber

    Give this a try

    =COUNTIFS(OTD:OTD, OR(@cell = "Yes", @cell = "N/A"), [Actual Completion]:[Actual Completion], AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021)) / COUNTIFS([Actual Completion]:[Actual Completion], AND(IFERROR(MONTH(@cell), 0) = 12, IFERROR(YEAR(@cell), 0) = 2021))
    

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!