Date based on the different cell values

Hi need help in calculating date based on the cell value in "Grouping"

If Cell value in grouping is "A" then add 45 days to the date in "End date" for the date required for populating next cycle count schedule.

If Cell value in grouping is "B" then add 30 days to the date in "End date" for the date required for populating next cycle count schedule.

If Cell value in grouping is "C" then add 25 days to the date in "End date" for the date required for populating next cycle count schedule.

If Cell value in grouping is "D" then add 15 days to the date in "End date" for the date required for populating next cycle count schedule.

If Cell value in grouping is "E" then add 10 days to the date in "End date" for the date required for populating next cycle count schedule.

Thanks

Best Answer

  • Nick Korna
    Nick Korna ✭✭✭✭✭✭
    Answer ✓

    Hi @Sunny Singh,

    This is a relatively straightforward nested IF statement, with the formula being:

    =IF(Grouping@row = "A", [End Date]@row + 45, IF(Grouping@row = "B", [End Date]@row + 30, IF(Grouping@row = "C", [End Date]@row + 25, IF(Grouping@row = "D", [End Date]@row + 15, IF(Grouping@row = "E", [End Date]@row + 10)))))

    Hope this helps, but if you've any problems/questions then just let us know!

Answers

  • Nick Korna
    Nick Korna ✭✭✭✭✭✭
    Answer ✓

    Hi @Sunny Singh,

    This is a relatively straightforward nested IF statement, with the formula being:

    =IF(Grouping@row = "A", [End Date]@row + 45, IF(Grouping@row = "B", [End Date]@row + 30, IF(Grouping@row = "C", [End Date]@row + 25, IF(Grouping@row = "D", [End Date]@row + 15, IF(Grouping@row = "E", [End Date]@row + 10)))))

    Hope this helps, but if you've any problems/questions then just let us know!

  • Thank you Nick Works perfectly

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!