Excel Problem: Counting if any 3 Dates in a column are within 300 days of each other

trobb001

New Member
Joined
Jun 9, 2015
Messages
1
I am currently working on a spreadsheet to calculate values depending on whether or not they meet specific criteria.

I need a formula to workout whether or not there are any 3 FTE's within 300 days of other, as this is the criteria that I require.

This box is a simplified version of the main criteria, below I have put the entire formula that I use.
Capture.PNG


TypeSourceSchoolField 1Field 2Field 3
FTEAABC High 12/09/20138-
FTEAABC High30/05/20142-
PERMAABC High06/06/2014--
SENBBCD High09/06/2014-
CMEBNot at school10/08/2014-
FTEABCD High04/08/20148-

<tbody>
</tbody>

Currently, I use this formula to workout whether or not a value should be counted. But what I need is a way of working out if any 3 FTE values are within 300 days of each other (threshold), so I can then count the all FTE as events.
=(SUM(IFERROR(1/COUNTIFS($I$112:$I$161,$I$112:$I$161,$E$112:$E$161,">="&"41518",$E$112:$E$161,"<="&"41639",$I$112:$I$161,"<>P20000000",$D$112:$D$161,"<>0",$C$112:$C$161,"<>0",$B$112:$B$161,"=FTE",$E$112:$E$161,"<>0", $F$112:$F$161, "<>0"),0)))

I think that maybe I might have to have a separate column to have an indicator that I can then just put an extra COUNTIF criteria in to look for a value.

Any help on this issue would be greatly appreciated!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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