index match with multiple criteria to create list

Bob_ipc

Board Regular
Joined
Oct 18, 2017
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hello,

I find myself needing some help on a problem I am having. I am looking to get a list from my Entry tab that meets two criteria, the two criteria are the date and Project Name. I am trying to use Index Match but have not yet gotten very far. Can anyone help?

Thanks in advance
 

Attachments

  • Entry tab.png
    Entry tab.png
    52.9 KB · Views: 6
  • Summary.png
    Summary.png
    52 KB · Views: 8
In your summary, your workday is 3/14. There's nothing in the entry tab that has the date 3/14. If you're certain that the references are correct the formatting isn't an issue, and there's nothing to return then try this...

Excel Formula:
=FILTER(Entry!C4:C13,(Entry!A4:A13=B2)*(Entry!B4:B13=J6),"Not found")
Hey, yes I did see that I had the incorrect date there and had change it to 3/04, Now when I put in =FILTER(Entry!C4:C13,(Entry!A4:A13=B2)*(Entry!B4:B13=J6),"Not found") it returns "Not Found"
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Yes...that's the point about the cell address. The image doesn't tell us if the project name is in B2 or C2...and date in J6 or K6. You may need to adjust those references in the formula to point to the correct cell(s).
Ah gotcha that makes sense, so I changed it to references to make it look like this =FILTER('Entry'!C4:C400,('Entry'!A4:A400=B2:D2)*('Entry'!B4=J6:L6),"Not found") but now it is returning #VALUE!
 
Upvote 0
No...not B2:D2 or J6:L6. Should be a single cell reference just like @Cubist had, although maybe its not B2...could be C2. You'll need to check which cell actually holds the values of interest.

I suspect @Cubist's point about the date format may be the issue. The dates in column B have an unusual format mmm/dd/yyyy. Reformat one of those date entries as a number, not a date, and see if it returns a numeric value around 45355.
 
Upvote 0
No...not B2:D2 or J6:L6. Should be a single cell reference just like @Cubist had, although maybe its not B2...could be C2. You'll need to check which cell actually holds the values of interest.

I suspect @Cubist's point about the date format may be the issue. The dates in column B have an unusual format mmm/dd/yyyy. Reformat one of those date entries as a number, not a date, and see if it returns a numeric value around 45355.
Ok so I tried B2, C2, D2 as well as J6, K6, L6 and that didn't do the trick. And when I change the date format to General it does give me a number of 45355. I have also reformatted the date to 3/4/2024. Still no change :(
 
Upvote 0
In some empty cell on the worksheet, type =B2 and let us know if the project name "Line mitigation" appears. Similarly, type =J6 and tell us what you get.
 
Upvote 0
In some empty cell on the worksheet, type =B2 and let us know if the project name "Line mitigation" appears. Similarly, type =J6 and tell us what you get.
So B2 returns Line Mitigation and J6 returns 3/4/2024, so I have B2 and J6 in the formula.
 
Upvote 0
Book2.xlsx
ABC
1
2
3Project NameDateEquipment
4Project AFeb/25/2024Chain saw
5Project BFeb/28/2024John Deer
6Project CMar/2/2024Vechicle
7Project AMar/4/2024Crew truck
8Project AMar/4/2024travel rate
9Project AMar/4/2024On-site
10Project AMar/4/2024Meals
11Project AMar/4/2024
Entry


Book2.xlsx
ABCDEFGHIJ
2Project NameProject A
3
4
5
6Work DateMarch 04,2024
7
8Equipment
9Crew truck
10travel rate
11On-site
12Meals
130
14
15
Summary
Cell Formulas
RangeFormula
A9:A13A9=FILTER(Entry!C4:C11,(Summary!$B$2=Entry!A4:A11)*(Summary!$J$6=Entry!B4:B11),"Not found")
Dynamic array formulas.
 
Upvote 1
Solution
Somewhere on the data worksheet (the "Entry tab")...out to the right in some empty column, in row 4, enter:
Excel Formula:
=A4:A13="Line Mitigation"
...and let us know if you see a vertical array of TRUEs and FALSEs...and those correspond correctly to the data table.
 
Upvote 0
Book2.xlsx
ABC
1
2
3Project NameDateEquipment
4Project AFeb/25/2024Chain saw
5Project BFeb/28/2024John Deer
6Project CMar/2/2024Vechicle
7Project AMar/4/2024Crew truck
8Project AMar/4/2024travel rate
9Project AMar/4/2024On-site
10Project AMar/4/2024Meals
11Project AMar/4/2024
Entry


Book2.xlsx
ABCDEFGHIJ
2Project NameProject A
3
4
5
6Work DateMarch 04,2024
7
8Equipment
9Crew truck
10travel rate
11On-site
12Meals
130
14
15
Summary
Cell Formulas
RangeFormula
A9:A13A9=FILTER(Entry!C4:C11,(Summary!$B$2=Entry!A4:A11)*(Summary!$J$6=Entry!B4:B11),"Not found")
Dynamic array formulas.
THIS WORKS!! so awesome! Thank you!
 
Upvote 0
That still doesn't explain why @Cubist's formula in post #2 wasn't working for you. You don't need to specify the worksheet name when the formula resides on that same worksheet.
Excel Formula:
=FILTER(Entry!C4:C13,(Entry!A4:A13=B2)*(Entry!B4:B13=J6),"Not found")
...should still work.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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