Date Format Not Saving When Using Formula
Hello,
I am using a formula to extract a date from a string of text. It appears to be working, but if I leave the sheet and come back later it continually reformats the date from MM/DD/YY to YYYY,MM,DD. The target columns are formatted as dates, and the original column is a dropdown list. I can change the target column format to text, and then back to date and it will again reformat the date as MM/DD/YY.
The data in the original cell is a dropdown list and formatted as: 24Q1 - 6 (03/11-03/24)
I am using this formula to extract and convert the start date: =(VALUE(2024) + "," + VALUE(MID([Targeted Date]@row, 11, 2)) + "," + VALUE(MID([Targeted Date]@row, 14, 2)))
I am using this formula to extract and convert the end date: =(VALUE(2024) + "," + VALUE(MID([Targeted Date]@row, 17, 2)) + "," + VALUE(MID([Targeted Date]@row, 20, 2)))
I appreciate any help anyone can provide
Best Answer
-
@Dylan G In your formula, you are telling smartsheet to add commas between each date with this "," you can instead add "/" and it might work, or you can use these formulas below.
START:
=DATE(2024, VALUE(MID([Targeted Date]@row, 11, 2)), VALUE(MID([Targeted Date]@row, 14, 2)))
END:
=DATE(2024, VALUE(MID([Targeted Date]@row, 17, 2)), VALUE(MID([Targeted Date]@row, 20, 2)))
Sincerely,
Jacob Stey
Answers
-
@Dylan G In your formula, you are telling smartsheet to add commas between each date with this "," you can instead add "/" and it might work, or you can use these formulas below.
START:
=DATE(2024, VALUE(MID([Targeted Date]@row, 11, 2)), VALUE(MID([Targeted Date]@row, 14, 2)))
END:
=DATE(2024, VALUE(MID([Targeted Date]@row, 17, 2)), VALUE(MID([Targeted Date]@row, 20, 2)))
Sincerely,
Jacob Stey
-
Thanks @SteyJ ! That fixed it
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 478 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!