Index Match Date Range with no repeating results

TheJonWithNoH

New Member
Joined
Sep 8, 2017
Messages
30
I have a worksheet that pulls a list of data from another sheet and I was able to create the formula so repeating data does not reoccur on my list. My problem now is that I need to edit this formula further to only include data for a certain date range. Here is an example of the data sheet:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Group Name[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]ABC Group[/TD]
[TD]9/22/2017[/TD]
[/TR]
[TR]
[TD]ABC Group[/TD]
[TD]9/23/2017[/TD]
[/TR]
[TR]
[TD]ABC Group[/TD]
[TD]9/24/2017[/TD]
[/TR]
[TR]
[TD]XYZ Group[/TD]
[TD]9/15/2017[/TD]
[/TR]
[TR]
[TD]XXX Group[/TD]
[TD]10/1/2017[/TD]
[/TR]
[TR]
[TD]XXX Group[/TD]
[TD]10/2/2017[/TD]
[/TR]
[TR]
[TD]QQQ Group[/TD]
[TD]9/30/2017[/TD]
[/TR]
[TR]
[TD]ZZZ Group[/TD]
[TD]11/1/2017[/TD]
[/TR]
[TR]
[TD]ZZZ Group[/TD]
[TD]11/2/2017[/TD]
[/TR]
</tbody>[/TABLE]

My current formula is an array formula that removes duplicates and just provides me with a list of Group Names:

{=INDEX(Data!A$1:INDEX(Data!A:A,MATCH("zzz",Data!A:A)),MATCH(0,COUNTIF(Z$1:Z1,Data!A$1:INDEX(Data!A:A,MATCH("zzz",Data!A:A))&""),0))}

This formula provides me with these results:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ABC Group[/TD]
[/TR]
[TR]
[TD]XYZ Group[/TD]
[/TR]
[TR]
[TD]XXX Group[/TD]
[/TR]
[TR]
[TD]QQQ Group[/TD]
[/TR]
[TR]
[TD]ZZZ Group[/TD]
[/TR]
</tbody>[/TABLE]


How can I modify this formula to only provide me the data for September groups? (ABC, XYZ, QQQ Groups should only be listed)


Thank you in advance for your help!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
1. Define Lrow in Name Manager as referring to:

=MATCH(9.99999999999999E+307,Data!$B:$B)

2. Define Groups in Name Manager as referring to:

=Data!$A$1:INDEX(Data!$A:$A,Lrow)

3. Define Dates in Name Manager as referring to:

=Data!$B$1:INDEX(Data!$B:$B,Lrow)

4. Define Ivec in Name Manager as referring to:

=ROW(Groups)-ROW(INDEX(Groups,1,1))+1

5. In Z1 enter: 9/1/2017

6. In Z2 control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-(Groups=""),IF(Dates-DAY(Dates)+1=$Z$1,MATCH(Groups,Groups,0))),Ivec),1))

7. In Z3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($Z$3:Z3)>$Z$2,"",INDEX(Groups,SMALL(IF(FREQUENCY(IF(1-(Groups=""),IF(Dates-DAY(Dates)+1=$Z$1,MATCH(Groups,Groups,0))),Ivec),Ivec),ROWS($Z$3:Z3))))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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