Hello Smartsheet Community.
I have created a formula that returns the current phase of a project based on the input of the project number:
=IFERROR(INDEX(COLLECT(Team:Team, Number:Number, NumberCheck@row, Parent:Parent, ISBLANK(@cell), Start:Start, @cell <= TODAY(), End:End, @cell >= TODAY()), 1), “")
It works great, but it returns a blank if the project is in lag time between phases. I can also get it to return either the current phase or the next upcoming phase if I look for the next end date that is in the future:
=IFERROR(INDEX(COLLECT(Team:Team, Number:Number, NumberCheck@row, Parent:Parent, ISBLANK(@cell), End:End, @cell >= TODAY()), 1), “”)
Is there a way to get it to return either the current phase or the last completed phase if the project is in lag time?
