Need non-array solution to calculate averages per day of the week.

AndyTampa

Board Regular
Joined
Aug 14, 2011
Messages
199
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a spreadsheet that I'll be updating at work. I won't be the only one updating it. There is a chart in that spreadsheet that calculates an average of all of a set of values for Monday, Tuesday, etc.

Let's say our data is on sheet DATA.

Cells C3:AG3 will be dates (8/1/11, 8/2/11, 8/3/11, etc.) for the entire month.
Cells C5:AG5 will be the data row.
There is no row with the actual day names and I can't add one either.

This workbook is updated every week. The chart was set up with 7 columns (MON, TUE, WED, etc.). The formulas for the averages are simple AVERAGE formulas like =AVERAGE(DATA!$C$3,DATA!$J$3,DATA!$Q$3,DATA!$X$3,DATA!$AE$3)

When they started training me to update this, I noticed that the chart itself never gets updated. Wednesday is always pulling data from the third, tenth, seventeenth, twenty-fourth, and thirty-first of every month.

I've managed to find an array formula that works, [ {=AVERAGE(IF(TEXT($C$3:$AG$3,"dddd")="Monday",$C$5:$AG$5)} ] but arrays are so easily broken when so many people will be using the workbook. One click inside a function box or double-click on a formula cell followed by an oops and enter will break the formula. I'm not allowed to change the basic format of the sheets. That includes using helper columns or cells.

Is there a way to get the AVERAGEIF or AVERAGEIFS formulas to work? Or is there another way?

I've been messing around with:

=AVERAGEIF(C3:AG3,TEXT(C3:AG3,"dddd")="Monday",C5:AG5)

as a straight formula, but I keep getting DIV/0 error. I think it's the criteria portion of the formula that's messing me up.

Any ideas?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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