COUNTIF in an IF formula

I am trying to see when a segment is fully completed. Our segments can be broken out into subsegments, and they can have up to 5 subsegments, indicated by the segment number followed by a "—1", "—2", and so on. So far for this formula I've gotten it to count how many subsegments there are, but can't get the final push of it to tell me if all of those subsegments are completed (if the check box is checked).

=IF(COUNTIF(Segment:Segment, =Segment@row) = COUNTIF(Segment:Segment, =Segment@row, [Subsegment Complete]:[Subsegment Complete], 1), 1, 0)

This formula is giving an incorrect argument error. Any ideas?

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!