COUNTIFS with multiple inputs and dates
Answers
-
@heyjay That is the correct line of thinking! However, it is still saying unparseable :(
=COUNTIF(DISTINCT(COLLECT(Division:Division, [Submission Date]:[Submission Date], >DATE(2023, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31)))) + COUNT(DISTINCT(COLLECT([Please Specify:][Please Specify], [Submission Date]:[Submission Date], >DATE(2024, 3, 31), [Submission Date]: [Submission Date], <DATE(2024, 6, 31))))
when I tested it with just the first part of the formula, it says incorrect argument set
=COUNTIF(DISTINCT(COLLECT(Division:Division, [Submission Date]:[Submission Date], >DATE(2023, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31))))
-
@heyjay unfortunately it's still saying unparseable :(
-
Use COUNT not COUNTIF.
=COUNT(DISTINCT(COLLECT( Division:Division, [Submission Date]:[Submission Date], >DATE(2023, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31)))) + COUNT(DISTINCT(COLLECT( [Please Specify:][Please Specify], [Submission Date]:[Submission Date], >DATE(2024, 3, 31), [Submission Date]: [Submission Date], <DATE(2024, 6, 31))))
=COUNT(DISTINCT(COLLECT( Division:Division, [Submission Date]:[Submission Date], >DATE(2023, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31))))
...
-
@heyjay I tried that as well, with no luck
=COUNT(DISTINCT(COLLECT(Divsion:Division, [Submission Date]:[Submission Date] >DATE(2024, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31))))+ COUNT(DISTINCT(COLLECT([Please Specify]:[Please Specify], [Submission Date]:[Submission Date], >DATE(2024, 3, 31), [Submission Date]:[Submission Date], <DATE(2024, 6, 31))))
-
You have a typo here. try to copy paste wha I posted previously.
...
-
Good catch, thank you! It's no longer imparseable, but it's not working correctly unfortunately, as the answer is returning "3" when it should be 12
-
Must have something to do with your data/date. Please double check and adjust your formula as needed.
...
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!