Index/Match?

Cam147

New Member
Joined
Aug 17, 2021
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
Possibly a 2 condition index match formula? Data sheet is in a separate spreadsheet to the formula sheet.

I am looking to return the relevant data (into cell G4, H4 & I4 on formula sheet) from the Data sheet (Task - column C, Frequency – Column B & Who – Column E) if the due date (column G on Data sheet) falls on or between the 2 dates (Q2&Q8 on Formula sheet) & Cell G2 in Formula sheet.


If there are multiple results I need it to return all of them.

Any help would be greatly appreciated.
Thanks Cam
 

Attachments

  • Data Sheet.PNG
    Data Sheet.PNG
    94.1 KB · Views: 13
  • Formula Sheet.png
    Formula Sheet.png
    33 KB · Views: 13

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Starting with this:

Book1
ABCDEFG
1FrequencyTaskDepartmentWhoDue Date
2Weekly1A1A3/4/2022
3Weekly2B2B3/4/2022
4Weekly3A1C3/5/2022
5Weekly4B2D9/9/2022
6Weekly5A1E10/1/2022
7Monthly6B2F3/10/2022
8Monthly7A1G7/7/2022
9Quarterly8B2H3/8/2022
10Monthly9A1I3/6/2022
11Quarterly10B2J8/8/2022
12Weekly11A1K9/9/2022
13Quarterly12B2L10/10/2022
14Monthly13A1M11/11/2022
Data Sheet


You can use formulas like this on your formula sheet:

Book1
ABCDEFGHIJKLMNOPQ
1Upcoming Tasks
2A13/1/2022
3TaskFrequencyWho
41WeeklyA
53WeeklyC
69MonthlyI
7   
8B23/10/2022
9TaskFrequencyWho
102WeeklyB
116MonthlyF
128QuarterlyH
13   
Formula Sheet
Cell Formulas
RangeFormula
G4:G7G4=IFERROR(INDEX('Data Sheet'!$C:$C,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$2)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$4:G4))),"")
H4:H7H4=IFERROR(INDEX('Data Sheet'!$B:$B,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$2)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$4:G4))),"")
I4:I7I4=IFERROR(INDEX('Data Sheet'!$E:$E,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$2)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$4:G4))),"")
G10:G13G10=IFERROR(INDEX('Data Sheet'!$C:$C,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$8)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$10:G10))),"")
H10:H13H10=IFERROR(INDEX('Data Sheet'!$B:$B,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$8)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$10:G10))),"")
I10:I13I10=IFERROR(INDEX('Data Sheet'!$E:$E,AGGREGATE(15,6,ROW('Data Sheet'!$C$2:$C$50)/('Data Sheet'!$D$2:$D$50=$G$8)/('Data Sheet'!$G$2:$G$50>=$Q$2)/('Data Sheet'!$G$2:$G$50<=$Q$8),ROWS(G$10:G10))),"")


Incidentally, please look into the XL2BB tool (see the link in my signature). It's easy to download, install, and use. And it makes it MUCH easier for the helpers here to work with your sample data, we don't need to retype everything, which is what we have to do if you just post a picture.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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