With blanks appearing in a range of numbers, one may want to:
1. Average the first n numbers; and/or
2. Sum the last n numbers (in a horizontal and vertical range)
Because of blanks, the range for averaging will need to automatically keep expanding till the nth number is reached.
You may refer to my solution in this workbook.