Can I only show the year from the date in another column
I just want the year from [Completed Date] but not able to figure it out.
Best Answer
-
Hey Chris, that's because the column you're utilizing for inputting in the YEAR() function is a "Date" type column. When you're inputting just a year, say "1999", it invalidates the column's rule of showing a "Date" value.
You'll need to change the column type to "Text/Number", and the
=YEAR([Completed Date]@row)
function will work.My "Completed Year" column is a "Text/Number" type column, which gets the below value:
If this completes your question, please mark "Yes" below - it helps others find this solution (and Google searches!)
If this answer answers your question, please press "Yes" above - it helps the community (and those random Googlers out there 👀) find solutions like yours faster.
Love,
Brett Wyrick | Connect with me on LinkedIn.
------------------------------------------------------------------------------
2023 update: I'm no longer working on Smartsheet stuff. I started working at Microsoft in 2022, plus I have 1-year-old twins at home and frankly, I don't have enough time to do Smartsheet anymore. It's been real, Smartsheeters!
Answers
-
-
Yeah that's what I was thinking too but I keep getting this error below.
-
Hey Chris, that's because the column you're utilizing for inputting in the YEAR() function is a "Date" type column. When you're inputting just a year, say "1999", it invalidates the column's rule of showing a "Date" value.
You'll need to change the column type to "Text/Number", and the
=YEAR([Completed Date]@row)
function will work.My "Completed Year" column is a "Text/Number" type column, which gets the below value:
If this completes your question, please mark "Yes" below - it helps others find this solution (and Google searches!)
If this answer answers your question, please press "Yes" above - it helps the community (and those random Googlers out there 👀) find solutions like yours faster.
Love,
Brett Wyrick | Connect with me on LinkedIn.
------------------------------------------------------------------------------
2023 update: I'm no longer working on Smartsheet stuff. I started working at Microsoft in 2022, plus I have 1-year-old twins at home and frankly, I don't have enough time to do Smartsheet anymore. It's been real, Smartsheeters!
-
I hope you're well and safe!
To add to Mark's excellent advice/answer.
You can't use the YEAR function in a date column if you don't add +"" at the end.
So you can either change the column type or use the +"" at the end of the formula.
Something like this.
=YEAR([Completed Date]@row) + ""
Did that work/help?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thanks!
I should have known!
Have a great day
-
@Andrée Starå Nice! I didn't know about the ' + "" ' at the end of a formula for it to work on a Date column. I learned something today.
If this answer answers your question, please press "Yes" above - it helps the community (and those random Googlers out there 👀) find solutions like yours faster.
Love,
Brett Wyrick | Connect with me on LinkedIn.
------------------------------------------------------------------------------
2023 update: I'm no longer working on Smartsheet stuff. I started working at Microsoft in 2022, plus I have 1-year-old twins at home and frankly, I don't have enough time to do Smartsheet anymore. It's been real, Smartsheeters!
-
Excellent!
Glad it was helpful, and apologies for missing to reference you in my answer. I missed your answer.
Pro-tip. It also works in checkbox columns (and probably others as well). It converts the formula result, so it's interpreted as text.
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!