Formulas for Calculating Time
Comments
-
@Andrew Stills I usually use something that will give me "yyyymmddhhmm" as a value (hh is in 24 hour format). Runs into the same limitation when multiple rows are created within the same minute but doesn't require the time zone conversion for the YEARDAY function.
=VALUE(YEAR(Created@row) + "" + RIGHT("0" + MONTH(Created@row), 2) + RIGHT("0" + DAY(Created@row), 2) + LEFT(TIME(RIGHT(Created@row, 8), 1), 2) + RIGHT(TIME(RIGHT(Created@row, 8), 1), 2))
-
Oh that's great and bit shorter… er, more elegant. Would also allow it to survive past 2099. There goes my plans to start Y2.1K! ;-)
Thanks for passing it along, @Paul Newcome.
Andrew
He who fails to plan is planning to fail. - Winston Churchill
-
Welcome to 2025!
From 2020 to 2025, this has gotta be the longest thread we have in smartsheet. 🤣
-
Hey @Paul Newcome quick question. I'm using the previous formula (just a couple posts previous) I made. Even though I'm running the calculation on the (Created) field, I am experiencing a problem where when one person in one time zone edits, the unique number I am attempting to create is changing based on their time zone.
Am I to understand your solution above would mitigate this error?
Thanks!
Andrew
He who fails to plan is planning to fail. - Winston Churchill
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives