ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with Filtering data and matching two data sets? (https://www.excelbanter.com/excel-programming/292731-help-filtering-data-matching-two-data-sets.html)

masai_chadi

Help with Filtering data and matching two data sets?
 
Hello All

I have two sets of data:

- list of Jobs with one or many Competency requirements.
- list of Employees with their Competencies.

I would like to create a filter scheme that allows a user to enter
Job, and have Excel automatically match Employees with competencie
that are required by the Job.

For example,

Job 'Cashier - Cafeteria' requires two competencies from each employe
working on this Job. So, in this case, there are 4 employees with thes
competencies: Employee 4, Employee 7, Employee 8, Employee 9.

Similarly,

Job 'Cleaner' requires 9 competencies from each employee working o
this Job. In this case, there is only one employee with all
competencies: Employee 8.

The attached spreadsheet shows the data sets.

How would I achieve this? Thanks.

Masa

Attachment filename: sample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=45654
--
Message posted from http://www.ExcelForum.com


acw[_2_]

Help with Filtering data and matching two data sets?
 
Masai

I've got an answer that entails the creation of a User
Defined Function. The function is

Function IsVisible(x) As Boolean
IsVisible = True
If Rows(x.Row).Hidden = True Then IsVisible = False
End Function

With this function available, enter the formula =isvisible
(B2) in cell C2 of sheet OHR Job Quals. Copy down as
required. Use the Data, Filter, autofilter on columns A
and B.

In sheet Emp Quals, enter the heading Match in C1, then
enter the formula in C2 and copy down. Again generate an
autofilter on columns A:C inclusive.

Using the OHR sheet, select the Cashier - Cafeteria from
the Job name in column A. 2 entries appear. Then go to
sheet Emp Quals, and select True from the Match column. 4
entries appear. Similarly for the other scenario you
mentioned, but you will have to reselect the match for
each change in the Job name.

HTH

Tony

-----Original Message-----
Hello All

I have two sets of data:

- list of Jobs with one or many Competency requirements.
- list of Employees with their Competencies.

I would like to create a filter scheme that allows a user

to enter a
Job, and have Excel automatically match Employees with

competencies
that are required by the Job.

For example,

Job 'Cashier - Cafeteria' requires two competencies from

each employee
working on this Job. So, in this case, there are 4

employees with these
competencies: Employee 4, Employee 7, Employee 8,

Employee 9.

Similarly,

Job 'Cleaner' requires 9 competencies from each employee

working on
this Job. In this case, there is only one employee with

all 9
competencies: Employee 8.

The attached spreadsheet shows the data sets.

How would I achieve this? Thanks.

Masai

Attachment filename:

sample.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=456541
---
Message posted from http://www.ExcelForum.com/

.


masai_chadi[_2_]

Help with Filtering data and matching two data sets?
 
Hello Tony

Thank you for the solution. Just one question for clarification:

-You mentioned that "In sheet Emp Quals, enter the heading Match in C1
then enter the formula in C2 and copy down.". Do you mean the sam
function as entered on OHR Job Quals sheet, ie. =isvisible(b2) o
'=isvisible('OHR Job Quals'!B2)'?

When I enter either of these formula I get wrong matches.

I have uploaded the sample file with the formula so that you can se
what I am doing wrong.

Thanks

Masa

Attachment filename: sample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=46042
--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com