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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!