Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Filtering on gathered statistics adds dummy empty rows and fails anyway

$
0
0

I have a simple data set:

Pupil A Teacher A   pass
Pupil B Teacher A   fail
Pupil B Teacher B   pass

And want to compute the following statistics:

Teacher     pass rate
Teacher A    50%
Teacher B   100%

The way I went about it is to create two columns with formulas, =unique(B:B) and =COUNTIFS(C:C,"pass", B:B, E2) / COUNTIF(B:B, E2).

Now, this works correctly but when creating a filter and ordering by pass rate, I got this:

enter image description here

Two-part question:

  1. What am I missing? How to fix it?
  2. Is there a smarter and a better way to do this?

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>