List all matching values between two named ranges based on criteria

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
270
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
Hi, I have got this here , now I need to get the list of matching value at cell J3 to downwards.
How should I alter this formula to get the matching values?
I'd be grateful if anyone could help with this?

Book1
ABCDEFGHIJ
1evaluated_nameexecutivesexit_dateNOT MATCHMATCH
2
3aaaaon dutykk
4bbkkon dutygg
5ccccon dutyjj
6ddddon duty 
7eeggon duty 
8ffhhout duty 
9jjon duty 
Sheet3
Cell Formulas
RangeFormula
I3:I9I3=IFERROR(INDEX(executives,MATCH(1,(COUNTIF($I$2:I2,executives)=0)*(exit_date="On Duty")*(ISERROR(MATCH(executives,evaluated_name,0))),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
evaluated_name=Sheet3!$A$3:$A$8I3:I9
executives=Sheet3!$D$3:$D$9I3:I9
exit_date=Sheet3!$E$3:$E$9I3:I9
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,012
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IFERROR(INDEX($A$3:$A$8,AGGREGATE(15,6,(ROW($A$3:$A$8)-ROW($A$3)+1)/(ISNUMBER(MATCH($A$3:$A$8,$D$3:$D$9,0)))/($E$3:$E$9="On Duty"),ROWS(J$3:J3))),"")
 

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
270
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
Many thanks, it's worked.
Could you please alter the main formula to get the matching values?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,012
Office Version
  1. 365
Platform
  1. Windows
That does get the matching values.
 

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
270
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web

ADVERTISEMENT

How about
Excel Formula:
=IFERROR(INDEX($A$3:$A$8,AGGREGATE(15,6,(ROW($A$3:$A$8)-ROW($A$3)+1)/(ISNUMBER(MATCH($A$3:$A$8,$D$3:$D$9,0)))/($E$3:$E$9="On Duty"),ROWS(J$3:J3))),"")

I also want to get the non-matching data list. so I want to use a similar formula for that.
So, give me the alternative formula with INDEX-AGGREGATE-MATCH to get the non-matching value.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,012
Office Version
  1. 365
Platform
  1. Windows
Try
Excel Formula:
=IFERROR(INDEX($D$3:$D$9,AGGREGATE(15,6,(ROW($D$3:$D$9)-ROW($D$3)+1)/(ISNA(MATCH($D$3:$D$9,$A$3:$A$8,0)))/($E$3:$E$9="On Duty"),ROWS(J$3:J3))),"")
 

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
270
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web

ADVERTISEMENT

I will check in morning, thanks for your help.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,012
Office Version
  1. 365
Platform
  1. Windows
Glad to help & thanks for the feedback.
 

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
270
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
@Fluff , I have tried to figure out, how to get the not matching list of values from both columns A & D, in a single column. But I couldn't able to do that.

I have got a solution based on CTR+SHIFT+ENTER, but I would like to know If it's possible to get the list using INDEX & AGGREGATE?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,689
Messages
5,597,559
Members
414,156
Latest member
WDMix

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
Top