Help with Formula to Capture Dates for Full 12 Months

Options

My team has a few use cases where we have savings projects in which the savings gets spread out over a 12 month period. To make the Smartsheet solution more sustainable, I would like to set the sheet up with a START DATE COLUMN and then only 1 Column per month, so JAN, FEB, MAR, etc, rather than a Mo/Year Column that will need to change over time.

I am currently trying to use this formula:

=IF(MONTH([Start Date]@row) = 2, [Start Date]@row, IF(MONTH(JAN@row) = 12, DATE(YEAR(JAN@row) + 1, 1, DAY(JAN@row)), DATE(YEAR(JAN@row), MONTH(JAN@row) + 1, DAY(JAN@row))))

But when I add this to the last of the 12 month columns, I get a #CIRCULAR REFERENCE error message. Is there any way around this? Really hoping I can make this work.

Thank you!

Best Answer

  • Leibel S
    Leibel S ✭✭✭✭✭✭
    Answer ✓
    Options

    @Tina Ciak

    Make 3 helper columns that simplify your formula:

    1. Start Year: =YEAR([Start Date]@row)
    2. Start Month =MONTH([Start Date]@row)
    3. Start Day =DAY([Start Date]@row)

    then your formula for each of the months is the below, replacing the bolded numbers with the corresponding month (e.g. April would be 4)

    =DATE(IF([Start Month]@row > 1, [Start Year]@row + 1, [Start Year]@row), 1, [Start Day]@row)

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!