# 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! ^_^

• ✭✭✭✭✭
Options

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))
```

• ✭✭✭✭✭
Options

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))
```
• Options

TYSM @Devin Lee! That's precisely what I needed.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!