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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!