Index Match Countif Distinct unique values with two or more match columns with result in two different tables.

Addictions

Board Regular
Joined
May 27, 2018
Messages
60
Office Version
  1. 365
Hello,

I wonder if anybody can help me out.

I am trying to get employees names based on their skills columns and return their names as a result in two different tables as a distinct unique values.
I was able to do this so far with Index, Match and Countif array formula but it only works for one skills column and I cannot figure it out how to do it if there are more skills columns.

Basically if employee has two skills allocated then as a result they would show up on both tables. Please see example of the table below and required results.

[TABLE="width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee[/TD]
[TD]Skill 1[/TD]
[TD]Skill 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Jon[/TD]
[TD]Driver[/TD]
[TD]Mechanic[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Michael[/TD]
[TD]Mechanic[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Ben[/TD]
[TD]Driver[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Tony[/TD]
[TD]Mechanic[/TD]
[TD]Driver[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 200"]
<tbody>[TR]
[TD]Driver[/TD]
[TD]Mechanic[/TD]
[/TR]
[TR]
[TD]Jon[/TD]
[TD]Jon[/TD]
[/TR]
[TR]
[TD]Ben[/TD]
[TD]Michael[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[TD]Tony[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Please if somebody can advise I would much appreciate your help.

Kind regards,
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about


Book1
ABCDEFG
1EmployeeSkill 1Skill 2DriverMechanicMate
2JonDriverMechanicJonJonBen
3MichaelMechanicBenMichael
4BenDrivermateTonyTony
5TonyMechanicDriver
Lookup
Cell Formulas
RangeFormula
E2=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,(ROW($A$2:$A$5)-ROW($A$2)+1)/($B$2:$C$5=E$1),ROWS(E$2:E2))),"")


Formula copied down & across
 
Upvote 0
Thank you very much. It works like a charm.

I need to really understand how it works as I never used aggregate and Row/Rows before.

Thank you it is much appreciated.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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