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:

NameDateRR Interval
AB26/01/20151093.7
AB27/01/20151276.9
AB28/01/20151175.7
AB29/01/20151210.1
AB30/01/20151230.1
AB31/01/2015
AB1/02/20151064.3
AB2/02/2015
AB3/02/2015
AB4/02/2015
AB4/02/2015
AB5/02/2015
AB6/02/2015
AB7/02/20151102.4
AB8/02/20151147.2
AB9/02/20151150.7
SC10/02/20151189.1
SC11/02/20151137
SC12/02/2015
SC13/02/2015
SC14/02/2015
SC15/02/2015
SC16/02/20151149.2
SC17/02/20151187.6
SC18/02/20151191
SC19/02/20151198.3

<tbody>
</tbody>

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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
maybe a combination of: if, countifs and averageifs
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,813
Members
449,469
Latest member
Kingwi11y

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