# Service Contract Status Formula

Hi there,

I'm trying to figure out a formula to return a Green/Yellow/Red Symbol based on a calculation of the date an item was purchased in comparison to the length of the service contract.

I am able to get the "Green Symbol" using this formula:

=IF([Service Contract Expiration]76 > TODAY(), "Green")

But, I'd like to have a "Yellow" dot when the service contract will expire between Today's date and 6 months from Today's date, then have the "Red" return anything service contract that's expired.

Thank you,

Tyson

Tags:

• ✭✭✭✭✭

Try:

=IF(actual@row < TODAY(), "Red", IF(actual@row <= (TODAY() + 6 * 30), "Yellow", "Green"))

Note: going by months in SS can be tricky. You could use a Month function and add or subtract 6 but what's the goal? Is it to calculate 6 months of work days, calendar days, or just a general estimate? I typically use 180 days when I am looking at 6 month increments.

More on the MONTH function here:

• I misspoke - I would like the "Yellow" be "Service Contract Expiration Date is within the next six months."

Thank you!

• ✭✭✭✭✭

Try:

=IF(actual@row < TODAY(), "Red", IF(actual@row <= (TODAY() + 6 * 30), "Yellow", "Green"))

Note: going by months in SS can be tricky. You could use a Month function and add or subtract 6 but what's the goal? Is it to calculate 6 months of work days, calendar days, or just a general estimate? I typically use 180 days when I am looking at 6 month increments.

More on the MONTH function here:

• Thank you, that worked beautifully.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!