Why can't I convert this formula into a column formula?

Options
Adam Holmes
Adam Holmes ✭✭
edited 09/30/22 in Formulas and Functions

Hello,

I have sunk quite a few hours into trying to figure out why I can't turn the formula below into a column formula. Does anyone wiser than I have any ideas?

=IF([Start Date]2 > TODAY(), "Blue", IF(AND([% Complete]2 < 1, [End Date]2 < TODAY()), "Red", IF(COUNTIFS(CHILDREN(), "Red") > 0, "Yellow", "Green")))

The formula is meant to turn direct a symbol column to Red, Yellow, Green, and Blue symbols. It seems to work fine as a row formula.

Any help would be much appreciated!

Smartbean

Tags:

Best Answers

  • Paul McGuinness
    Paul McGuinness ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Smartbean

    Its because your formula contains absolute references (Row 2) column formulas need to be generic.

    So the formula would be

    =IF([Start Date]@row > TODAY(), "Blue", IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(COUNTIFS(CHILDREN(), "Red") > 0, "Yellow", "Green")))

    Hope that helps

    Thanks

    Paul

  • kirstie858
    kirstie858 ✭✭✭✭
    Answer ✓
    Options

    Hi! I believe it's your cell references. Instead of referencing a specific row 2, use @row.

    =IF([Start Date]@row > TODAY(), "Blue", IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(COUNTIFS(CHILDREN(), "Red") > 0, "Yellow", "Green")))

    You should then be able to convert formula to column.

    -K.

Answers

  • Paul McGuinness
    Paul McGuinness ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Smartbean

    Its because your formula contains absolute references (Row 2) column formulas need to be generic.

    So the formula would be

    =IF([Start Date]@row > TODAY(), "Blue", IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(COUNTIFS(CHILDREN(), "Red") > 0, "Yellow", "Green")))

    Hope that helps

    Thanks

    Paul

  • kirstie858
    kirstie858 ✭✭✭✭
    Answer ✓
    Options

    Hi! I believe it's your cell references. Instead of referencing a specific row 2, use @row.

    =IF([Start Date]@row > TODAY(), "Blue", IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(COUNTIFS(CHILDREN(), "Red") > 0, "Yellow", "Green")))

    You should then be able to convert formula to column.

    -K.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!