Countif comparing months in a date
Hi
I'm trying to figure out a countif formula to count up the number of times dates in 2 columns are not in the same month but struggling to figure it out. Can anyone help?
I've attached a screen shot to show bit more clearly what I mean. Basically I want a count to show the number of times things were not prepared and submitted in the same month - so that I can figure out how many times prep spanned over one month in to another. Is this possible? Note, my dates are in the UK format of DD/MM/YYYY.
Thanks
Comments
-
The easiest way would be to create a helper column. For this example I will use a Flag/Symbol type column to flag the row if the months for the two dates do not match.
=IF(MONTH([In Prep]@row) <> MONTH(Submitted@row), 1)
This will flag the rows where the months don't match, and then you can use a basic COUNTIFS on the helper column to count how many rows are flagged.
=COUNTIFS(Helper:Helper, 1)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives