Average Percent By Day

Joined
Apr 8, 2010
Messages
47
Okay guys, should be an easy one for you but it's giving me a headache (probably lack of sleep helping there too).

A is Dates, B is a starting #, C is an ending #, D is the difference, and E is the growth from B to C as a Percentage.

I need to set up a Average by day of week, ie: Monday: (average percentage of all "monday's" listed)

I tried:
Code:
=AVERAGE(IF(ISNUMBER(E$3:E$33),IF(G$3:G$33=L3,IF(E$3:E$33<>0,E$3:E$33))))

where G was weekday, and L3 was "Monday", but it just returns the average of the entire E column.

Thoughts?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I don't think you need the ISNUMBER part, this should be sufficient

=AVERAGE(IF(G$3:G$33=L3,IF(E$3:E$33<>0,E$3:E$33)))

...but either way the formula is an "array formula" which means you need to enter it in a special way - paste formula in cell - use F2 key to select then hold down CTRL and SHIFT keys while pressing ENTER. If done correctly then curly braces like { and } will appear around the formula in the formula bar.

If you are using Excel 2007 or later, though, you can use AVERAGEIFS function which can be entered normally, i.e.

=AVERAGEIFS(E$3:E$33,G$3:G$33,L3,E$3:E$33,"<>0")
 
Upvote 0

Forum statistics

Threads
1,224,581
Messages
6,179,668
Members
452,936
Latest member
anamikabhargaw

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