Generating text in a cell based on a date in another cell, with conditions

Options

Hello!

I'm new to smartsheets and I'm sure I've just made some kind of simple error or overlooked something.

I am trying to create a formula that will generate text in a cell [Recurrence], "1 week", "2 weeks", or "4 weeks" based on how far out today is from a contract start date [Start Date] - either less than 6 months, 6months to 12 months, or more than 12 months. I thought the following would work, but it doesn't. Can anyone help me with this?

=IF([Start Date]@row >= TODAY()-180, β€œ1 week”, IF(AND([Start Date]@row < TODAY()-180, [Start Date]@row >= TODAY()-365), β€œ2 weeks”, IF([Start Date]@row > TODAY()-365, β€œ4 weeks”, β€œβ€)))

I also tried the following, but it didn't work either

=IF([Start Date]@row <= TODAY(-365), β€œ4 weeks”, IF(AND([Start Date]@row <= TODAY(-180), [Start Date]@row > TODAY(-365)), β€œ2 weeks”, IF( [Start Date]@row > TODAY(-180), β€œ1 week”)))

Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!