Average if Formula Help

Sparda142

Board Regular
Joined
Dec 19, 2018
Messages
52
Hello.

how can i add weekday to the formula below. right now the formula im using is giving me the average interval, i need it to say per weekday per interval .

im trying to get the average for all mondays in the year at 8:30 am.

{=AVERAGE(IF(($A$2:$B$18927)=$E2,$C$2:$C$18927))}

a b c d e f g h

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Interval[/TD]
[TD]Outbound[/TD]
[TD]weekday[/TD]
[TD]interval2[/TD]
[TD]weekday (3)[/TD]
[TD]weekday (4)[/TD]
[TD]weekday (4)[/TD]
[/TR]
[TR]
[TD]1/2/2018[/TD]
[TD]8:30 AM[/TD]
[TD]57[/TD]
[TD]3[/TD]
[TD]8:30 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2018[/TD]
[TD]8:45 AM[/TD]
[TD]59[/TD]
[TD]3[/TD]
[TD]8:45 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2018[/TD]
[TD]9:00 AM[/TD]
[TD]109[/TD]
[TD]3[/TD]
[TD]9:00 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2018[/TD]
[TD]9:15 AM[/TD]
[TD]123[/TD]
[TD]3[/TD]
[TD]9:15 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/3/2018[/TD]
[TD]8:30 AM[/TD]
[TD]95[/TD]
[TD]4[/TD]
[TD]8:30 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/3/2018[/TD]
[TD]8:45 AM[/TD]
[TD]82[/TD]
[TD]4[/TD]
[TD]8:45 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/3/2018[/TD]
[TD]9:00 AM[/TD]
[TD]51[/TD]
[TD]4[/TD]
[TD]9:00 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/3/2018[/TD]
[TD]9:15 AM[/TD]
[TD]67[/TD]
[TD]4[/TD]
[TD]9:15 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/4/2018[/TD]
[TD]8:30 AM[/TD]
[TD]51[/TD]
[TD]5[/TD]
[TD]8:30 AM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]weekday (2)[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
you can use the AVERAGEIFS functions which allows you to add more than one conditions, so you don't need an array formula:
=AVERAGEIFS($C$3:$C$11,$B$3:$B$11,$E3,$D$3:$D$11,3)
Note the last 3 is the weekday. I would suggest you put this in a cell , and use a reference instead.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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