Average of Pass/Fails, not percentages
Hi, I have a sheet that gives a "score" of Pass or Fail. Multiple rows per user. I originally had percentages as the score and we created a metric sheet that gathered the scores and gave an average per user per month. Since we changed it to pass/fail per score the metric now reads #DIVIDE BY ZERO ...is there a way to still average the amount of pass versus fail on the metric? below is the formula we had.
=AVG(COLLECT({QA - IBT Audit Review - 8 Category -Score}, {QA - IBT Audit Review - 8 Category - Month}, "January", {QA - IBT Audit Review - 8 Category -Employee Email}, [Employee Email]@row))
Best Answer
-
Perhaps a helper column would do the trick. In your main sheet, add a column called "PassFail" with the formula which checks your Score column, and assigns a 1 for Pass, and a 0 for Fail.
=IF(Score@row = "Pass", 1, 0)
Back on your metrics sheet, alter your formula to collect the AVG of the values from PassFail column instead of from the Score column.
=AVG(COLLECT({QA - IBT Audit Review - 8 Category -PassFail}, {QA - IBT Audit Review - 8 Category - Month}, "January", {QA - IBT Audit Review - 8 Category -Employee Email}, [Employee Email]@row))
Format the column for %, and you'll have your percentage of "Pass" for each employee.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Perhaps a helper column would do the trick. In your main sheet, add a column called "PassFail" with the formula which checks your Score column, and assigns a 1 for Pass, and a 0 for Fail.
=IF(Score@row = "Pass", 1, 0)
Back on your metrics sheet, alter your formula to collect the AVG of the values from PassFail column instead of from the Score column.
=AVG(COLLECT({QA - IBT Audit Review - 8 Category -PassFail}, {QA - IBT Audit Review - 8 Category - Month}, "January", {QA - IBT Audit Review - 8 Category -Employee Email}, [Employee Email]@row))
Format the column for %, and you'll have your percentage of "Pass" for each employee.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman THANK YOU! That was perfection in an answer and worked beautifully!
-
Happy I could help!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!