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
Check out the Formula Handbook template!