# Averages ignoring zeros

#### ctomblin

##### New Member
I need to calculate "average number of loads per day" for any given number of days. ie. over a 7 day period I only want the average calculated against active days. For example if production only takes place on 3 of the 7 days then the average should be calculated against 3 days not 7.

### Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
If you have values in say, A1 down thru A7, but some of the cells in that area are blank, no entries, =AVERAGE(A1:A7) will only look at the cells that have values in them. So, if you take any cells that have zeros in them and make them blank ("") instead of zero, you will only average the cells with numbers.

or use this;

=SUM(B1:B4)/COUNTIF(B1:B4,"<>0")

Thanks guys, =average is fine. I didn't realise XL ignored empty cells.

Replies
3
Views
159
Replies
4
Views
405
Replies
2
Views
448
Replies
2
Views
196
Replies
0
Views
324

1,217,750
Messages
6,138,407
Members
450,134
Latest member
TYoung24

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back