How to convert to @row functionality

Jeff Dunning
Jeff Dunning ✭✭
edited 10/02/20 in Formulas and Functions

I cannot seem to reference the next row down if I convert row numbers to @row

from this:

=IF(COUNT(ANCESTORS([Task Name]3)) < COUNT(ANCESTORS([Task Name]4)), COUNT(ANCESTORS([Task Name]3)))

to this:

=IF(COUNT(ANCESTORS([Task Name]@row)) < COUNT(ANCESTORS([Task Name]4)), COUNT(ANCESTORS([Task Name]@row))) what do I do for [Task Name]4?

Answers

  • SoS | Dan Palenchar
    SoS | Dan Palenchar ✭✭✭✭✭✭

    @row only works to reference the column in the same row as the formula. If you want to reference a cell in a different column you will have to use a numerical reference. You could technically add a helper column to adjust your values in the non @row column by whatever number of rows before/after, then reference this new column with @row

    School of Sheets (Smartsheet Partner)

    If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!

  • I'll work on that. Me and helper columns are old friends.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!