End of Month referencing date column
As I have combed through the solution for this with the smartsheet community resources, I however am still having issues populating the last day of the month when referencing a date column. @Paul Newcome seems like the expert in this. Halp.
Best Answers
-
Hi @lgonzales,
A trick for this is to find the 1st date of the next month and subtract a day from it using a formula like below:
=IFERROR(DATE(YEAR([Billing Start Date]@row), MONTH([Billing Start Date]@row) + 1, 1), DATE(YEAR([Billing Start Date]@row) + 1, 1, 1)) - 1
Hope this helps! 😊
-
Make sure the column you are putting the formula in is set as a date type column.
Answers
-
Hi @lgonzales,
A trick for this is to find the 1st date of the next month and subtract a day from it using a formula like below:
=IFERROR(DATE(YEAR([Billing Start Date]@row), MONTH([Billing Start Date]@row) + 1, 1), DATE(YEAR([Billing Start Date]@row) + 1, 1, 1)) - 1
Hope this helps! 😊
-
@lgonzales Yes. The formula that Nick has provided above is one that I have been using for quite a while to find the last day of a month. That should work for you.
-
So I had tried this route and got #INVALID COLUMN VALUE - See screencap of formula that I had input, but still gives me error @Paul Newcome @Nick Korna
-
Make sure the column you are putting the formula in is set as a date type column.
-
The Date type did the trick. Although, I was working with a more complex formula outside of a Date column, so had to make a helper column, but figured it out! Thanks! @Paul Newcome @Nick Korna
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!