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 Then Date

Good afternoon Smartsheet community. I am trying to get an if/then function to output a date in my sheet. I have a few columns I am checking against and feel like I am close but need some help getting it to work properly. Here is my formula:


=if(AND([Project Type]@row = "N Type"([3. RWA Acceptance Date (PM/Kayla)]@row = DATE(), [3. RWA Acceptance Date (PM/Kayla)]@row+90))


I am searching in the Project Type column for "N Type" projects only, then checking the "3. RWA Acceptance..." to make sure there is a date listed. If there is, then I want to check "Cost ($)" column. If 0-50k, I want to output a date 90days after "3. RWA Acceptance"; 50-250k gets 120 days after "3. RWA Acceptance"; and 180 days for 250k+. This date should be output in column "3a". Does this make sense? I know my formula is lacking a bunch of this info but this is as far as my knowledge has gotten me. HELP!!

Tags:

Best Answer

  • Community Champion
    Answer ✓

    Hi @GSA Rob,

    You're looking for a nice nested IF/AND formula here, along these lines:

    =IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row >= 0, [Cost ($)]@row <= 50000), [3. RWA Acceptance Date (PM/Kayla)]@row + 90, IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row > 50000, [Cost ($)]@row <= 250000), [3. RWA Acceptance Date (PM/Kayla)]@row + 120, IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row > 250000), [3. RWA Acceptance Date (PM/Kayla)]@row + 180, "")))

    Sample output using above:

    The formula will give a blank result if the conditions aren't met (project type is anything other than N type, no date). It's fairly easy to adjust the brackets if necessary - as your Cost thresholds had the number in both from/to ranges it's currently up to.

    Hope this helps, but if I've misunderstood something or you have any problems/questions then just post!

Answers

  • Community Champion
    Answer ✓

    Hi @GSA Rob,

    You're looking for a nice nested IF/AND formula here, along these lines:

    =IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row >= 0, [Cost ($)]@row <= 50000), [3. RWA Acceptance Date (PM/Kayla)]@row + 90, IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row > 50000, [Cost ($)]@row <= 250000), [3. RWA Acceptance Date (PM/Kayla)]@row + 120, IF(AND([Project Type]@row = "N Type", [3. RWA Acceptance Date (PM/Kayla)]@row <> "", [Cost ($)]@row > 250000), [3. RWA Acceptance Date (PM/Kayla)]@row + 180, "")))

    Sample output using above:

    The formula will give a blank result if the conditions aren't met (project type is anything other than N type, no date). It's fairly easy to adjust the brackets if necessary - as your Cost thresholds had the number in both from/to ranges it's currently up to.

    Hope this helps, but if I've misunderstood something or you have any problems/questions then just post!

  • ✭✭

    This worked perfectly! Thanks so much!!

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 ✓
    8
    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