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.

ABC
1EmployeeSkill 1Skill 2
2JonDriverMechanic
3MichaelMechanic
4BenDriver
5TonyMechanicDriver

<tbody>
</tbody>

DriverMechanic
JonJon
BenMichael
TonyTony

<tbody>
</tbody>

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

Kind regards,
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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
Would anybody possibly know how to get similar results with index, match possibly?
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,266
Members
448,558
Latest member
aivin

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