Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Need formula example

Posted on 2014-01-24
Medium Priority
259 Views
In the attached spreadsheet, I seek to find duplicate ID numbers between Column A (List 1) and Column D (List 2). You will notice that the values of E3 and F3 (both have bad data) does not equal the values of B4 and C4, though they are associated with the same ID.  In column G (Matched), a formula drops in the duplicated ID numbers.

In this example, I want H4 and I4 to contain the (bad) data from E3 and F3, but only because the data is mismatched. If it all matched correctly, I would want the matched name and address to remain blank, like what you see with the matched ID 5 in G7.

What formula is required in H4 and I4?
Book1.xlsx
0
Question by:K_Deutsch
[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

LVL 81

Accepted Solution

byundt earned 2000 total points
ID: 39808015
Here are two formulas for cells H3 and I3:
=IF(\$G3="","",IF(\$B3=VLOOKUP(\$A3,\$D:\$F,2,FALSE),"",VLOOKUP(\$A3,\$D:\$F,2,FALSE)))
=IF(\$G3="","",IF(\$C3=VLOOKUP(\$A3,\$D:\$F,3,FALSE),"",VLOOKUP(\$A3,\$D:\$F,3,FALSE)))

If G3 displays a blank, the formulas return a blank. If G3 displays a number but the corresponding data in B3 doesn't match column E, the first formula returns the mismatched value from column E. Otherwise, it returns an empty string.
0

Author Closing Comment

ID: 39808058
Perfect, thanks!
0

## Featured Post

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month7 days, 17 hours left to enroll