[HELP] AverageIfs() with multiple criteria in both rows and columns

Godofthunder12

New Member
Joined
Apr 22, 2015
Messages
2
Can someone please help me with creating a formula which can take the average from a table, based on multiple criteria in both the rows and columns?

My first table is rather large but this is the basic layout :

[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD="align: right"]Time period :[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]Week number :[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[TD]13[/TD]
[TD]14[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]Step[/TD]
[TD]Test[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]TºC[/TD]
[TD]32[/TD]
[TD]33[/TD]
[TD]31[/TD]
[TD]35[/TD]
[TD]29[/TD]
[TD]36[/TD]
[TD]33[/TD]
[TD]32[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]pH[/TD]
[TD]6.8[/TD]
[TD]6.9[/TD]
[TD]6.5[/TD]
[TD]6.7[/TD]
[TD]6.8[/TD]
[TD]6.5[/TD]
[TD]6.4[/TD]
[TD]6.9[/TD]
[TD]6.3[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Salt[/TD]
[TD]1.5[/TD]
[TD]1.3[/TD]
[TD]1.4[/TD]
[TD]1.5[/TD]
[TD]1.6[/TD]
[TD]1.2[/TD]
[TD]1.1[/TD]
[TD]1.7[/TD]
[TD]1.8[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Fat[/TD]
[TD]14[/TD]
[TD]15[/TD]
[TD]13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TD]
[TD]1.7[/TD]
[TD]1.4[/TD]
[TD]1.1[/TD]
[TD]1.4[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Fat[/TD]
[TD]32[/TD]
[TD]33[/TD]
[TD]35[/TD]
[TD]31[/TD]
[TD]29[/TD]
[TD]28[/TD]
[TD]32[/TD]
[TD]33[/TD]
[TD]34[/TD]
[/TR]
</tbody>[/TABLE]


I have a second table in which I have columns for Step and Test and want to have the average by time period.

Any help would be greatly appreciated. Thanks!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I would like to have the average for each Step and Test by time periods (1,2,3). My second table is like this :

[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Step[/TD]
[TD]Test[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]TºC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]pH[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Salt[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Fat[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]TºC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]pH[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Salt[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Fat[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]TºC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]pH[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Salt[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Fat[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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