Date Expected Error or decimal return
I'm trying to return a date value based on the week number identified.
So if I have "Week One" in my training date number, I want the Date column to return 10/17/22.
I'm trying to use an IF formula to do this but keep getting #DATEEXPECTED error.
When I try to convert the column type to text/number instead, it gives me a decimal value.
The formula I'm trying to use is:
=IF([Training Week]@row = "Week One", 10 / 17 / 2022, IF([Training Week]@row = "Week Two", 10 / 24 / 22, IF([Training Week]@row = "Week Three", 10 / 31 / 22, IF([Training Week]@row = "Week Four", 11 / 7 / 22, IF([Training Week]@row = "Week Five", 11 / 14 / 22, IF([Training Week]@row = "Week Six", 11 / 21 / 22, IF([Training Week]@row = "Week Seven", 11 / 28 / 22, IF([Training Week]@row = "Week Eight", 12 / 5 / 22, IF([Training Week]@row = "Week Nine", 12 / 12 / 22)))))))))
Best Answer
-
Modify your formula like this:
=IF([Training Week]@row = "Week One", DATE(2022, 10, 17)
etc etc
Make sure this formula is in a date column.
Answers
-
Modify your formula like this:
=IF([Training Week]@row = "Week One", DATE(2022, 10, 17)
etc etc
Make sure this formula is in a date column.
-
You're a hero.
I forgot there was a date formula that would do that. It worked, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!