OR With COUNTIFS Use
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
-
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
-
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))
-
TYSM @Devin Lee! That's precisely what I needed.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 210 Industry Talk
- 441 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 300 Events
- 33 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!