COUNTIFS with multiple criteria
Hi!
I am traying to work with the COUNTIFS formula to:
- Count by Platform column if between 01/01/2021-12/31/2021 in the Actual End column
- Struggling with the Platform that has one-letter value (X or S) as X keeps getting counted in both the X and Xi platforms
- Currently trying the following formula =COUNTIFS({Platform}, CONTAINS("X", @cell), {Actual End}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
Any insight is much appreciated.
Best Answer
-
Try the HAS function instead of CONTAINS. HAS looks for an exact match and should then differentiate between X and Xi.
=COUNTIFS({Platform}, HAS(@cell, "X"), {Actual End}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
Answers
-
Try the HAS function instead of CONTAINS. HAS looks for an exact match and should then differentiate between X and Xi.
=COUNTIFS({Platform}, HAS(@cell, "X"), {Actual End}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
-
@KDM, thank you so much! It works! I truly appreciate it! 😃
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 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!