Count Number of Months

Hello, I am looking to count the number of months remaining in a calendar year without having to change my formula monthly, simply put if the date is 9/15/23 I'd like the output to be "4", if 12/20/23 = "1" etc.
Best Answer
-
@John Littler - Good morning! Give this a try.
=13 - MONTH(Date@row)
Let me know if that works for you!
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
Answers
-
@John Littler - Good morning! Give this a try.
=13 - MONTH(Date@row)
Let me know if that works for you!
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
-
@Amber Eakin perfect! Works as expected...thank you!
-
My pleasure!
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
-
Hi Amber, 1 wrinkle...I have records that are in 2024. Do you suggest adding an iferror statement for the year?
-
Hi John - This formula will give you a number if it's the current year. If it's in the past, it'll be blank; if it's in the future, it'll be blank. Will that work for your use case?
=IF(YEAR(Date@row) = YEAR(TODAY()), 13 - MONTH(Date@row))
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
-
Yep...functioning as designed 😀 great!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!