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.
How to remove slashes from formula that includes date field?
I am using a formula to concatenate several fields, one of which is a date field which contains forward slashes (e.g. 02/09/16).
Is it possible to modify the formula so that it removes the slashes from the end result and appears as 020916?
Comments
-
You can use the MONTH() DAY() YEAR() functions to pull out this information individually then concatenate them together.
Here's an example:
=MONTH([Date3]3) + "" + DAY([Date3]3) + "" + YEAR([Date3]3)
Change [Date3]3 to the cell or formula containing the date.
That formula would turn this:
02/11/16
To this:
2112016
You can then modify this formula if you want this displayed other ways.
Like this:
=IF(MONTH([Date3]3) < 10, "0" + MONTH([Date3]3) + "" + DAY([Date3]3) + "" + RIGHT(YEAR([Date3]3), 2), MONTH([Date3]3) + "" + DAY([Date3]3) + "" + RIGHT(YEAR([Date3]3), 2))
This would turn this:
02/11/16
Into this:
021116
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives