So if I understand you correctly.
You need an average of only the cells that have a value in them.
So for your example.
Lets say M7:M17 had 9 values and 2 blanks
You would want the formula to show 82% correct?
If so you are looking for the following:
=AVERAGEA(M7:M17)