Averaging multiple data sets by the data whilst excluding zeros

devinhr

New Member
Joined
Oct 25, 2016
Messages
5
Hi

I need some help. I have multiple data sets on a given day which I would like to average by day, whilst excluding blanks and zeros. As follows:

[TABLE="width: 180"]
<tbody>[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]5.26
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]6.84
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]5.97
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]3.39
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]3.06
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]3.26
[/TD]
[/TR]
[TR]
[TD="align: right"]7/19/2015
[/TD]
[TD="align: right"]3.34
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]1.99
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]0.74
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]1.64
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]1.45
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]2.22
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]2.31
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD="align: right"]2.11
[/TD]
[/TR]
[TR]
[TD="align: right"]7/20/2015
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/29/2015
[/TD]
[TD="align: right"]0.00
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]0.00
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]43.00
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]35.00
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]32.00
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]35.69
[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015
[/TD]
[TD="align: right"]34.25
[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015
[/TD]
[TD="align: right"]33.19
[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015
[/TD]
[TD="align: right"]31.63
[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015
[/TD]
[TD="align: right"]0.00
[/TD]
[/TR]
</tbody>[/TABLE]


I would like to use a formula that returns a daily average whilst excluding zeros and blank cells. For example, the daily average for the 19th of July 2015 should be 4.45. I would like to be able to drag and copy this formula across large data sets, resulting in a list of average data sets by day. For example:

7/19/2015 - 4.45
7/20/2015 - 1.78
8/7/2015 - 29.9

etc

Thank you for your help.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top