Checking Dates

How do I write a formula that would look at a date field that is formatting dd/mm/yy and count if both the current month and the current year match. Then I would also want to do a count for the prior month, so if the month and year of that date matched those of last month, and we also have to account for the fact that Dec (12 ) comes before Jan (1). These are continually stumping me.
Answers
-
Just to be sure. Your speaking from a Fiscal year standpoint. You would have to create a reference sheet that to set the months of your fiscal year. then you could use a combination of Countif and Index Collect to achieve everything you need.
If you found this comment helpful. Please respond with any of the buttons below. Awesomeπ€, Insightfulπ‘, Upvoteβ¬οΈ, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!