?
Solved

Values match ID

Posted on 2014-10-17
4
Medium Priority
?
79 Views
Last Modified: 2014-10-18
Hello, I need a formula or macro to help me determine if the values ZPRF, ZCMP and ZGEM appear on a Person's ID

In my file I have employees with duplicate records, which can be identified by Person ID that's missing a grouping reason or a single record that may be missing a Grouping Reason

I need a formula that will look at the person ID and return in Column C "YES", if all 3 grouping reasons exist "NO" if one of the codes is missing and in Column D, the code(s) that's missing

Example

PersonID                 Grouping Reason      All      Missing code
10181451        ZCMP                      YES      
10181451        ZGEM,ZPRF      YES
      
10181489                      ZCMP                      No      ZPRF
10181489                      ZGEM                      No      ZPRF

10181517                      ZCMP                      No      ZPRF, ZGEM
zflag-audit.xlsx
0
Comment
Question by:ablove3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:als315
ID: 40388001
Is it possible to use macros?
0
 

Author Comment

by:ablove3
ID: 40388079
Yes
0
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 40388616
Look at sample (allow macros and press ctrl+a on worksheet with data)
zflag-audit.xlsm
0
 

Author Closing Comment

by:ablove3
ID: 40388734
This is going to make my life so easy at work.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question