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

DateIntervalOutboundweekdayinterval2weekday (3)weekday (4)weekday (4)
1/2/20188:30 AM5738:30 AM
1/2/20188:45 AM5938:45 AM
1/2/20189:00 AM10939:00 AM
1/2/20189:15 AM12339:15 AM
1/3/20188:30 AM9548:30 AM
1/3/20188:45 AM8248:45 AM
1/3/20189:00 AM5149:00 AM
1/3/20189:15 AM6749:15 AM
1/4/20188:30 AM5158:30 AM

<tbody>
</tbody>



weekday (2)

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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