Average IF, but stop If

USAFRetired20
USAFRetired20 ✭✭
edited 04/07/25 in Formulas and Functions
Screenshot 2025-04-07 133204.png

I need a formula that if I am in the "KPI Calculation Average" column (location for script result) it will look at the "Consecutive Years" column rows above (i.e., if script is in row 7 it will look in rows 7 - 1). If the row is greater than '0' then stop BUT count the first '0' in the search. So for example if it searches and in rows 2 and 3 there is a 0, then it would capture what I am seeking in row 3 but not 2. Once it goes through that it will look at the "Availability" column for those rows it identified as being greater than 0 (but also including the first 0) and then averaging them.

Note: those are dummy values

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!