Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

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)))))))))

Tags:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2