Due Date by Quarter

I need a formula that populates the due date based on the date that its approved. I want the date to be at the end of each quarter
Best Answer
-
@TPALJA
Note that I changed my column name to dateApproved so you will need to rename it in the formula.
=IF(MONTH(dateApproved@row) < 4, DATE(YEAR(dateApproved@row), 3, 31), IF(MONTH(dateApproved@row) < 7, DATE(YEAR(dateApproved@row), 6, 30), IF(IF(MONTH(dateApproved@row) < 10, DATE(YEAR(dateApproved@row), 9, 30), DATE(YEAR(dateApproved@row), 12, 31)))))
Solution explained:
You want to define your use cases for logic as Q1, Q2, Q3, Q4, do this this you can infer quarter based on month.
So month(date) 1-3 will be Q1, 4-6 is Q2, etc, etc
The only thing left after that is to replace Q1-4 with the last day of each of those months and set for a dynamic year value based on the deadline.
date(y,m,d)
date(year(dateApproved@row),1,31) = Jan 31st of the year in your date approved column. Repeat for Q2 to Q4.Principal Consultant | System Integrations
Prime Consulting Group
Email: info@primeconsulting.com
Follow us on LinkedIn!
Answers
-
@TPALJA
Note that I changed my column name to dateApproved so you will need to rename it in the formula.
=IF(MONTH(dateApproved@row) < 4, DATE(YEAR(dateApproved@row), 3, 31), IF(MONTH(dateApproved@row) < 7, DATE(YEAR(dateApproved@row), 6, 30), IF(IF(MONTH(dateApproved@row) < 10, DATE(YEAR(dateApproved@row), 9, 30), DATE(YEAR(dateApproved@row), 12, 31)))))
Solution explained:
You want to define your use cases for logic as Q1, Q2, Q3, Q4, do this this you can infer quarter based on month.
So month(date) 1-3 will be Q1, 4-6 is Q2, etc, etc
The only thing left after that is to replace Q1-4 with the last day of each of those months and set for a dynamic year value based on the deadline.
date(y,m,d)
date(year(dateApproved@row),1,31) = Jan 31st of the year in your date approved column. Repeat for Q2 to Q4.Principal Consultant | System Integrations
Prime Consulting Group
Email: info@primeconsulting.com
Follow us on LinkedIn! -
@prime_nathaniel thank you for providing it worked perfectly
-
@TPALJA you are very welcome
Principal Consultant | System Integrations
Prime Consulting Group
Email: info@primeconsulting.com
Follow us on LinkedIn!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 209 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 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!