Avatar of Chitra Lekha
Chitra Lekha
 asked on

Need help with excel reporting

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
VBAMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Chitra Lekha

8/22/2022 - Mon
Roy Cox

How do you determine missing entitlements and existing ones?
Chitra Lekha

ASKER
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
ASKER CERTIFIED SOLUTION
Ejgil Hedegaard

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Chitra Lekha

ASKER
Ejgil Hedegaard, Thanks a bunch for making my life easier. I really appreciate it.
Your help has saved me hundreds of hours of internet surfing.
fblack61