Index match to specific month

Sumeluar

Active Member
Joined
Jun 21, 2006
Messages
271
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
  2. MacOS
  3. Mobile
Folks, what am I doing wrong?
I have a table which contains two columns "Date" (Column EJ) & "Description" (Collumn EK), I want to use Index to pick all the events form April but I cannot get the formula to work. Here's what I have: =INDEX('Perpetual Calendar'!$EK$8:$EK$200,IF((DATE(2021,4,1)='Perpetual Calendar'!$EJ$8:$EJ$200*DATE(2021,5,1)<='Perpetual Calendar'!$EJ$8:$EJ$200),MATCH(ROW('Perpetual Calendar'!$EK$8:$EK$200),ROW('Perpetual Calendar'!$EK$8:$EK$200)),""),ROWS($A$1:$A1)). The result I'm getting is: #Value!

Please guide me in the right direction, thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try the following formula:
=IF((DATE(2021,4,1)<='Perpetual Calendar'!$EJ$8:$EJ$200)*(DATE(2021,5,1)>='Perpetual Calendar'!$EJ$8:$EJ$200),'Perpetual Calendar'!$EK$8:$EK$200,"")
 
Upvote 0
Try the following formula:
=IF((DATE(2021,4,1)<='Perpetual Calendar'!$EJ$8:$EJ$200)*(DATE(2021,5,1)>='Perpetual Calendar'!$EJ$8:$EJ$200),'Perpetual Calendar'!$EK$8:$EK$200,"")

Thanks Rino, is almost there!

The problem is that April starts 73 rows from the top down, the formula throws 73 empty rows before it shows all the activities for that month.
 
Upvote 0
Hi,
If you are office 365 you use LET function like this:

=LET(x, IF((DATE(2021,4,1)<='Perpetual Calendar'!$EJ$8:$EJ$200)*(DATE(2021,5,1)>='Perpetual Calendar'!$EJ$8:$EJ$200),'Perpetual Calendar'!$EK$8:$EK$200,""), FILTER(x, x<>""))

Regards
 
Upvote 0
Or for older versions of Excel:

Book2
EJEKELEMEN
7DateDescriptionApril Events
81-JanEvent1Event4Event4
91-FebEvent2Event5Event5
101-MarEvent3Event6Event6
111-AprEvent4Event7Event7
123-AprEvent5Event11Event11
134-AprEvent6 
1419-AprEvent7 
151-MayEvent8 
161-JunEvent9 
1731-JulEvent10 
1822-AprEvent11 
19
Perpetual Calendar
Cell Formulas
RangeFormula
EN8:EN12EN8=FILTER('Perpetual Calendar'!EK8:EK200,(MONTH('Perpetual Calendar'!EJ8:EJ200)=4)*(YEAR('Perpetual Calendar'!EJ8:EJ200)=2021))
EM8:EM18EM8=IFERROR(INDEX('Perpetual Calendar'!EK:EK,AGGREGATE(15,6,ROW('Perpetual Calendar'!EJ$8:EJ$200)/(4=MONTH('Perpetual Calendar'!EJ$8:EJ$200))/(2021=YEAR('Perpetual Calendar'!EJ$8:EJ$200)),ROWS(EM$8:EM8))),"")
Dynamic array formulas.
 
Upvote 0
Solution
Hi,
If you are office 365 you use LET function like this:

=LET(x, IF((DATE(2021,4,1)<='Perpetual Calendar'!$EJ$8:$EJ$200)*(DATE(2021,5,1)>='Perpetual Calendar'!$EJ$8:$EJ$200),'Perpetual Calendar'!$EK$8:$EK$200,""), FILTER(x, x<>""))

Regards

Rino, thanks again. That formula worked great!

Appreciate the response.
 
Upvote 0
Or for older versions of Excel:

Book2
EJEKELEMEN
7DateDescriptionApril Events
81-JanEvent1Event4Event4
91-FebEvent2Event5Event5
101-MarEvent3Event6Event6
111-AprEvent4Event7Event7
123-AprEvent5Event11Event11
134-AprEvent6 
1419-AprEvent7 
151-MayEvent8 
161-JunEvent9 
1731-JulEvent10 
1822-AprEvent11 
19
Perpetual Calendar
Cell Formulas
RangeFormula
EN8:EN12EN8=FILTER('Perpetual Calendar'!EK8:EK200,(MONTH('Perpetual Calendar'!EJ8:EJ200)=4)*(YEAR('Perpetual Calendar'!EJ8:EJ200)=2021))
EM8:EM18EM8=IFERROR(INDEX('Perpetual Calendar'!EK:EK,AGGREGATE(15,6,ROW('Perpetual Calendar'!EJ$8:EJ$200)/(4=MONTH('Perpetual Calendar'!EJ$8:EJ$200))/(2021=YEAR('Perpetual Calendar'!EJ$8:EJ$200)),ROWS(EM$8:EM8))),"")
Dynamic array formulas.

Eric, great formulas. Both produced the desired results.
 
Upvote 0

Forum statistics

Threads
1,215,632
Messages
6,125,913
Members
449,274
Latest member
mrcsbenson

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