Filter - Date interval

Metty

New Member
Joined
Nov 6, 2019
Messages
15
Hello,

My case is as following:

I have a database of event participants with their respective participation period (start date and end date) as in below example:

Name Start Date End Date

Julie 11/03/2019 24/04/2019

Tom 25/03/2019 15/04/2019

Jeff 05/04/2019 23/05/2019

Brad 12/05/2019 19/06/2019

John 24/04/2019 10/06/2019

I need a function/formula/command which would let me filter participants by date range for finding answers for below questions:

- Who participated during the time period of, for example, 25/05/2019-05/06/2019?
- How many participants were there in, for example, April?
- To see the big picture on participation level by month/date range in chart.

The methods that I tried allow only filtering by either start date or end date, so I cannot use both of them for formulating an interval.

Thank you in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi & welcome to MrExcel.
How about


Book1
ABCDEFGH
125/05/2019AttendedCount
2Julie11/03/201924/04/201905/06/2019Brad01/04/20194
3Tom25/03/201915/04/2019John
4Jeff05/04/201923/05/2019
5Brad12/05/201919/06/2019
6John24/04/201910/06/2019
7
8
Lookup
Cell Formulas
RangeFormula
H2=COUNTIFS(B2:B6,"<="&EDATE(G2,1),C2:C6,">="&G2)
F2=IFERROR(INDEX($A$2:$A$6,AGGREGATE(15,6,(ROW($A$2:$A$6)-ROW($A$2)+1)/(($B$2:$B$6<=$E$1)*($C$2:$C$6>=$E$2)),ROWS(F$2:F2))),"")
 
Upvote 0
Hi Fluff,

Thank you for your response.

Maybe you have an idea about how I could visualize it as we normally do in timeline in pivottable? Would it be possible in my case?
 
Upvote 0
I've never used pivots, so cannot help with that.
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,668
Members
452,992
Latest member
TokugawaIesuma

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