How can I create an autonumber field that only increases when the column "Hierarchy" = 0?

Options
Peace
Peace ✭✭
edited 07/03/25 in Formulas and Functions

What I have tried so far but is not working:

  1. =IF([Hierarchy] = 0, MAX((IF([@[Hierarchy]] = 0, [@[AutoNumber]]))) + 1, "")
  2. =IF([Hierarchy]@row = 0, COUNTIFS([Hierarchy]:[Hierarchy], 0, ROW([Hierarchy])@row , "<=" & ROW()), "")
  3. =IF([Hierarchy@row ] = 0, COUNTA([Hierarchy@row ]) + 1, "")
Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!