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.

Formula HELP

Answers

  • Hi there,

    I'm looking for something similar and am stuck on my formula. We have a class ("LCST") that happens throughout the work week (M-F); and we pull a report every Friday with the range of the prior Friday through current week's Thursday. For example, on today 11/08/24, we would run the report for (last Friday) 11/1 - (yesterday, Thursday) 11/7.

    So far, I have the formula as:

    =IF(OR(Class@row = "DX Traditions", Class@row = "LMTR"), [Start Date]@row + 1, IF(Class@row = "LCST", ([Start Date]@row + 6 - WEEKDAY([Start Date]@row))))

    This formula works okay as long as the start date is not a Friday. See the below highlighted in yellow — a Friday date remains the same. Can anyone help incorporate what to do if the start date IS a Friday? How can I get the Aftercare column to reflect the following Friday?

  • Community Champion

    We can throw in a special case just for Fridays:

    =IF(OR(Class@row = "DX Traditions", Class@row = "LMTR"), [Start Date]@row + 1, IF(Class@row = "LCST", IF(WEEKDAY([Start Date]@row) = 6, [Start Date]@row + 7, ([Start Date]@row + 6 - WEEKDAY([Start Date]@row)))))

  • THANK YOU SO MUCH! This worked :) I appreciate the help.

  • Community Champion

    Happy to help! 🙂

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