If criteria from 2 columns is met, pull the avg of a third column

I need the avg of the "% to complete" column if the "project" column is checked and the "Law" column = 1. It keeps giving a divide by zero error. When I tried it with count instead of avg, it is only showing a count of 1 even though many rows meet the criteria.

=AVG(COLLECT([% To Goal]:[% To Goal], Project:Project, =1, Law:Law, =1))

Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!