averageifs with 3 criteria

Crowie_12

New Member
Joined
Oct 27, 2017
Messages
1
Hi all,
I am having problems sorting out a formula that can include all of my criteria.
I need to find the average (column C- RR Interval) only if there is more then 2 values recorded in the past 7 days (Column B) for a participant (Column A- Name).
Example is below:

[TABLE="width: 357"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]RR Interval[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]26/01/2015[/TD]
[TD]1093.7[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]27/01/2015[/TD]
[TD]1276.9[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]28/01/2015[/TD]
[TD]1175.7[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]29/01/2015[/TD]
[TD]1210.1[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]30/01/2015[/TD]
[TD]1230.1[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]31/01/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]1/02/2015[/TD]
[TD]1064.3[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]2/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]3/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]4/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]4/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]5/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]6/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]7/02/2015[/TD]
[TD]1102.4[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]8/02/2015[/TD]
[TD]1147.2[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]9/02/2015[/TD]
[TD]1150.7[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]10/02/2015[/TD]
[TD]1189.1[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]11/02/2015[/TD]
[TD]1137[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]12/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]13/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]14/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]15/02/2015[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]16/02/2015[/TD]
[TD]1149.2[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]17/02/2015[/TD]
[TD]1187.6[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]18/02/2015[/TD]
[TD]1191[/TD]
[/TR]
[TR]
[TD]SC[/TD]
[TD]19/02/2015[/TD]
[TD]1198.3[/TD]
[/TR]
</tbody>[/TABLE]

What I have so far is AVERAGEIFS(C:C,B:B,"<="&B2,$B:$B,">"&$B2-7,$A:$A,$A2) .... but this averages all values even if there is 2 or less values between the two dates.

Any help would be appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
maybe a combination of: if, countifs and averageifs
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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