Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Turning "=year" value into 2 digit number and "=yearday" value into 3 digit number.
Hi there,
With "=year()" function, I can get the year in 4 digit numbers and with "=yearday()" formula, I can get the day in 1 to 3 digit numbers.
However, I am trying to combine them into 5 digit number ("YY" + "DDD") to automatically generate julian date.
Since Smartsheet doesn't have the "=text()" function, I am not so sure how to do that.
I would very much appreciate if anyone can provide me with some feedback.
Thanks in advance.
Comments
-
There is a Join Function that may help with this.
-
Try this:
=RIGHT(YEAR(Date23), 2) + IF(YEARDAY(Date23) < 10, "00", IF(YEARDAY(Date23) < 100, "0")) + YEARDAY(Date23)
for row 23 and your date column named [Date]
You'll get an error on blank dates but that is just a IFERROR() wrapper to fix.
Note that YEAR() and YEARDAY() already return text.
Hope this helps.
Craig
-
To show Year Day of TODAY use this:
=YEARDAY(TODAY())
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives