Solved

Values match ID

Posted on 2014-10-17
4
69 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
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

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

Author Comment

by:ablove3
ID: 40388079
Yes
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Outline Suppose you have some simple text based data in Excel that you would like to display as a PowerPoint presentation. Of course it would be possible to write some fairly complex VBA code that created a new slide for each line of the Excel data…
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now