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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 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!