I have been progressing well and solved many complex formulae but this simple one has me

I am trying to return the closest parent for the equipment ID when i have other interceding hierarchy levels between the true parent and the Equipment ID. I keep getting a syntax error and for the life of me cannot see it.

=IF(Heirarchy@row = 5, INDEX(ANCESTORS(Heirarchy@row, 2), [Equipment ID]@row), IF(Heirarchy@row > 5, [Parent]@row, "")) is the formula used in the above snip.


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!