Averageifs within a Table

Richards440

New Member
Joined
Feb 24, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi All,

This has probably already been answered on here but I have tried a few different solutions and not managed to get what I am looking for.

I have a Table with Days in D1:AE1, Dates in D2:AE2 & Intervals in C3:C29. Then I have the relevant data in each cell based on that time and date.

I am trying to create an averageifs statement based on the Day of the week and the time interval. For example, it will look at each monday at 08:00 and find each of these instances and bring back the average.

Can Anybody help at all?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi
Welcome to the board

Sorry, I don't understand.

If you have the dates in D2:AE2 then you already have the days.
What's the data in D1:AE1?
Thank you!

In D1:AE2 it's just the days as text as I want to find an average for each week day interval
 
Upvote 0
I am trying to create an averageifs statement based on the Day of the week and the time interval. For example, it will look at each monday at 08:00 and find each of these instances and bring back the average.

Hi

This is a solution for the example that you posted.

You said you have the time in C3:C29. Is it not C3:C26 (24 hours in a day).
Next time please post a table to clarify these doubts.

I assumed the values in row 1 are text, like you posted.

Try in A9:

=AVERAGEIF(D1:V1,A3,INDEX(D3:V26,MATCH(A6,C3:C26,0),0))



Book1
ABCDEFGHIJKLMNOPQRSTUV
1FridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesday
2Day2021-01-012021-01-022021-01-032021-01-042021-01-052021-01-062021-01-072021-01-082021-01-092021-01-102021-01-112021-01-122021-01-132021-01-142021-01-152021-01-162021-01-172021-01-182021-01-19
3Monday0:00382352684404958033101435679253549
41:0028478718502234623133601599455359613311
5Time2:0018172942332831541314924751816673695428
68:003:001660197658138128544365560618437949
74:00433484732287205122951849646752481047
8Result5:00998787687647072419015529887257804962
9616:006771363360711887755945853753449058
107:0047192655762834901650908422590906799
118:00832725818114425750703455931662246865
129:00808412725508021331550743294025174586
1310:00485863026471883432843573486582729873
1411:0074747251307738231417242709537999263
1512:00963088934997544666043261573856362392
1613:006134267719222646679534633787829924492
1714:007135993591331896349732483433731313443
1815:0020112344051614877243884330719946544
1916:002766923163424484564363496652133405628
2017:00288583636036671216667120108063563913
2118:0086295955344877145389582939657981070
2219:001177738290728962839463929256232155379
2320:0099432642481558825218926556132594676090
2421:005938187464692351768957294391568905064
2522:0023335516286079506673367996661065352
2623:00563216526679939427659415661881377929
Sheet4
 
Upvote 0
My apologies, I'm new to all this forum lark.

I will ensure I post a view of what I am trying to do next time.

Your formula helped me massively, it wasn't quite correct for what I needed (my own fault for not providing enough information). But I managed to work around what you gave me to get the figures I wasd looking for.

Thank you again!
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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