Using Average and vlookup together

Occasional Contributor

I have 14 solar panels on the roof of my house and I get a daily reading for the days production. I have created a spreadsheet showing that daily production for each day. I have a running total using the =SUM(C3:C368) formula but I want to divide that with the number of days that have actually been read. See example attached

3 Replies


That's easy: the AVERAGE function ignores blank cells. In C370:




Fill to the right.

@Hans Vogelaar 


Thank You. I thought I had to use the date or actual cell numbers



You may try to play with PivotTable, simple variant is attached.