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
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 480 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 72 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!