List all matching values between two named ranges based on criteria

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
348
Office Version
  1. 365
  2. 2016
  3. 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
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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))),"")
 
Upvote 0
Many thanks, it's worked.
Could you please alter the main formula to get the matching values?
 
Upvote 0
That does get the matching values.
 
Upvote 0
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.
 
Upvote 0
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))),"")
 
Upvote 0
I will check in morning, thanks for your help.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
@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?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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