Solved

Values match ID

Posted on 2014-10-17
4
77 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

688 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