Need help with excel reporting

Chitra Lekha
Chitra Lekha used Ask the Experts™
on
Hello,

In the attached file-worksheet DETAILS
These are the main columns
LOGON_ID,ASSOCIATE_CONTRACTORS, JOB_CODE, CSDB_ENTITLEMENT

If you filter by the Job code, you will see all Unique values of CSDB entitlements
alloted to that job code.
If filter by user, you will see all the entitlement assigned to that user. This will not
tell us if any of the missing or unassigned entitilement which we discussed earlier as Unique.

Looking for a formula or a macro which will give the user's missing and matching entitlements in the following format

LOGON_ID      ASSOCIATE_CONTRACTOR      JOB_CODE CSDB_ENTITELMENT MISSING ENTITLEMENT

e.g
If you fitler job code and select CZ0202. In this job code we have 2 users John Smith and Naomi Morris
we get 11 CSDB_ENTITLEMENTS
ALFA21
ALFA22
ALFA23
SIGMA13
SIGMA13
SIGMA14
SIGMA17
SIGMA18
BOSS22
BOSS23
BOSS24

I have put in the the report in the REPORT tab, to explain what I need.

Thank you for your help. I appreciate it
ENT_RECORDS.xlsx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Roy CoxGroup Finance Manager

Commented:
How do you determine missing entitlements and existing ones?

Author

Commented:
It tried using the vlookup, and compared it the values for each user. It became too tedious

First I filter by Job Code Then, I take all the CSBD Entitlements for that Job Code  and  paste it on a new worksheet and remove the duplicates. This will give me the total unique values of CSDB for that one particular job code

 I go back to the details tab, From that same Job Code, I now filter one ASSOCIATE_CONTRACTOR (USER NAME), this will give me the CSDB Entitlements for that user. I copy these and past it on the other woksheet , next to the unique values column I had pasted in my first step above.
Then I do vlookup. this gives me what the user have and what is missing
Try this.
Press the button to run the macro.
ENT_RECORDS.xlsm

Author

Commented:
Ejgil Hedegaard, Thanks a bunch for making my life easier. I really appreciate it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial