Averaging List with Blank Cells

F

Frank West

Hi,

Someone gave me this formula to average the most recent five items in
a column of numbers:

=AVERAGE(OFFSET(B2,COUNTA(A:A)-5,0,5,1))

It works great unless the list has blank cells. In that case it does
not work.

1. 6
2.
3. 7
4. 9
5.
6. 2
7.
8. 1
9. 23
10 4

How can I make it work when the columns have some blank cells?

Thanks,

Frank
 
F

Frank West

Hi, thanks for the response. Your formula doesn't work because if the
cell is blank it then counts that cell anyway. I want to ignore cells
that are blank.

1. 4
2.
3. 5
4. 6
5.
6. 4

If I have the formula set up to average the last three data points I
would get an answer of 5. This is what I want.

1. 4
2.
3. 5
4. 6
5.
6. 4
7. 2

Now, on the next day when I input new data, the average of the last
three data points would be 4.

Thanks,

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Averaging List with Blank Cells 2
Averaging blank cells 2
More Complex averaging 2
Averaging unique values 2
averaging cells 9
Average problem 1
Averaging non blanlk cells??? 2
Average Cells IF They Fit Criteria 3

Top