Formula to retrieve a value based on multiple criteria

Sandman1985

New Member
Joined
Jun 22, 2022
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Have been trying to figure out how to look up and retrieve values in an array with multiple criteria.
Have attempted an INDEX and MATCH formula with no success.
I have a Resource plan which has all resources, skill levels and whether or not the are engaged on a particular date.
On a separate sheet, I am trying to retrieve the all of the resources on a given date that are not engaged.
Not sure if the formula I have been using is the right one but any help would be appreciated.
The resource schedule image is the underlying dataset. The circled stuff in the available image is what I am trying to get my formula to retrieve. I managed to build the below where BNG is the Resource plan, column B being the resources, scheduler view being the sheet for available resources, then the first match being date and second match being empty to signify available.
=INDEX(BNG'!B13:B69,MATCH(1,('Scheduler View'!C7='BNG'!G9)*('Scheduler View'!B1='BNG'!G13:G69),0))
 

Attachments

  • Resource Schedule.PNG
    Resource Schedule.PNG
    26.5 KB · Views: 14
  • Available.PNG
    Available.PNG
    26.5 KB · Views: 13

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Using this as a data source:
MrExcel_20220619.xlsx
ABCDEFGHIJ
1ResourceSkill1-Jul2-Jul3-Jul4-Jul5-Jul6-Jul7-Jul8-Jul
2Resource 11Engaged
3Resource 22EngagedEngaged
4Resource 31EngagedEngagedEngaged
5Resource 43EngagedEngagedEngaged
6Resource 52EngagedEngagedEngaged
7Resource 61EngagedEngaged
8Resource 72Engaged
9Resource 82
10Resource 92Engaged
11Resource 101EngagedEngaged
12Resource 111EngagedEngagedEngaged
13Resource 121EngagedEngagedEngaged
14Resource 133EngagedEngaged
15Resource 142Engaged
16Resource 153
17Resource 163Engaged
18Resource 172EngagedEngaged
19Resource 181EngagedEngagedEngaged
20Resource 192EngagedEngaged
21Resource 201Engaged
22Resource 211
Sheet9

...then the nested FILTER formula pasted into the yellow cells will produce your desired output. In this case, paste into cells B3, B12, B19 and drag across the row...the results will spill down the columns.
MrExcel_20220619.xlsx
ABCD
1
2Skill7/1/20227/2/20227/7/2022
31Resource 3Resource 1Resource 3
4Resource 6Resource 3Resource 6
5Resource 10Resource 10Resource 11
6Resource 11Resource 11Resource 12
7Resource 12Resource 12Resource 18
8Resource 18Resource 18Resource 20
9
10
11
122Resource 2Resource 2Resource 5
13Resource 5Resource 5Resource 7
14Resource 17Resource 9Resource 14
15Resource 19Resource 17Resource 19
16
17
18
193Resource 4Resource 4Resource 4
20Resource 13Resource 16Resource 13
21
22
Sheet10
Cell Formulas
RangeFormula
B19:D20,B12:D15,B3:D8B3=FILTER(Sheet9!$A$2:$A$22,(FILTER(Sheet9!$C$2:$J$22,Sheet9!$C$1:$J$1=B$2)="Engaged")*(Sheet9!$B$2:$B$22=Sheet10!$A3))
Dynamic array formulas.

If you are unfamiliar with the XL2BB add-in, you can install it from the link in my signature line. The add-in allows you to post snippets from your spreadsheet, including the formulas. And to generate what has been posted, you can simply click on the clipboard icon in the upper corner of the posted mini-sheet and paste into your own worksheet.
 
Upvote 0
Solution
Hi KRice,

This is fantastic. Only issue is, it keeps only giving me the first result rather than the subsequent results i.e. in Sheet 10 I keep getting the same resource. Is this because I need the add-in?
Will download the add-in now.

Thanks for your help. Appreciate it.

S
 
Upvote 0
Hi KRice,

Realised I'm an idiot. I was entering the array formula rather than just for the first one.
Thanks so much for your help.

Cheers,

S
 
Upvote 0
Glad to hear you got it working...I'm happy to help.
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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