Add additional criteria
![Joan B](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
Hello... here is my current formula below. How can I also add a condition to only average if number in range 8 is >0? =AVERAGEIF({Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8})
Thanks for any help.
Answers
-
Unfortunately, there is no AVERAGEIFS function, but you can get around it USING COLLECT.
=AVG(COLLECT({Technical Certification and Competency Tra Range 8}, {Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8}, > 0))
-
Thank you Carson! I receive a #divide by zero error with your formula above. Is there a fix for that?
-
Are you only receiving the error on rows with no matches? If so, this should suppress the error for those rows.
=IFERROR(AVG(COLLECT({Technical Certification and Competency Tra Range 8}, {Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8}, > 0)), "")
-
PERFECT! Thank you again Carson.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!