Index Match with one criterium in multiple columns

Arjen Bakker

New Member
Joined
Sep 27, 2017
Messages
19
Hello together,

unfortunately I have to work with databases like below. People work on days 1 - 5 and do
different activities
I would be glad to be able to have the data like written in column "J" without workarounds.
In this case people who worked on day 3 with activity "c".

Thanks very much for your help !
Arjen





A B C D E G H I J
1 Code1 Code2
2 3 c Name
3 Wished
4 Code1 Code2 Name Result
5 1 2 3 5 c A A
6 1 2 4 a A NA
7 2 3 4 5 c C C
8 1 5 d C NA
<colgroup><col width="64" style="width: 48pt;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <col width="67" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;"> <col width="58" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;" span="2"> <col width="59" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2157;"> <col width="64" style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <tbody> </tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try:
Copy formula down as needed.
Excel Workbook
ABCDEFGHI
1Code1Code2
23cName
3Wished
4Code1Code2NameResult
51235cAA
6124aANA
72345cCC
815dCNA
Sheet
 
Upvote 0
Try:
Copy formula down as needed.

ABCDEFGHI
1Code1Code2
23c Name
3 Wished
4Code1 Code2Name Result
5123 5cA A
612 4 aA NA
7 2345cC C
81 5dC NA

<colgroup><col style="width: 30px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 28px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
I5=IF(SUMPRODUCT((A5:E5=$A$2)*(F5=$B$2)),G5,"NA")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Hello Jeaníe,
It works.
Great again !
Thanks so much.
Have the best weekend of this week.
That's where I'm going now.
It's 3:45 AM - a bit too late to keep working,

Arjen
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,553
Members
449,038
Latest member
Guest1337

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