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.

If statements with <>, blanks, and errors

Need assistance putting all my "if conditions" into a single formula if possible

Tags:

Answers

  • ✭✭✭
    edited 09/06/24

    First, can you add an IFERROR(*column formula here*,"") to the Due column to make it blank instead of giving an error?

    Then use this formula:

    =IF(Due@row="",0,IF(Due@row<Sent@row,1,IF(AND(Due@row<TODAY(),Sent@row=""),1,IF(Due@row>=Sent@row,1,IF(AND(Due@row>=TODAY(),Sent@row=""),1,"")))))

  • ✭✭✭✭✭

    =iferror(if(or(due@row<today(),due@row<sent@row),1,0),0)

    Seems like it should work. Your records 2 and 4 are just the false conditions of your records 1 and 3, so you get them evaluated for free. Your 1 and 3 apply as an "or" condition (it isn't due yet OR it got done early) so both of your false conditions are an implied "and" (it is due AND it isn't done). You can put whichever one of them you want first, but if you go with the result 0 values first make sure to choose an "and" test vs an "or". Incidentally - with your conditions the way they are, if someone gets it done on the day it is due you are counting it as late.

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