Solved

XLS  Matching to columns

Posted on 2014-02-10
2
133 Views
Last Modified: 2014-02-10
Hi all

   I’m not an XLS person and I have a file with 2 columns of names. What I need to do is match names in column A to names in column b  and print in column C the names of column A that have a match in column B something like the example below

John      Paul       Paul
Paul      John      John
dan      Margret       dan
margret      Peter      Peter
peter      Robert       Dan = no match in B
0
Comment
Question by:d_asselin
[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 Comments
 
LVL 19

Accepted Solution

by:
Ken Butters earned 500 total points
ID: 39848191
I've attached a spreadsheet that has a formula in Column C that will use Vlookup function to accomplish what you want.

Here is formula in C1... then did fill down to C5.
=IF(ISNA(VLOOKUP(A1,B:B,1,FALSE)),CONCATENATE(A1," = No match in B"),VLOOKUP(A1,B:B,1,FALSE))

what this does is take the value of John in A1 and checks to see if it can be found in column B.  If it can be found in Column B, it evaluates to the name in column A.

If it cannot be found... it takes the name in Column a and says it cannot be found in B.
Book1--1-.xlsx
0
 

Author Closing Comment

by:d_asselin
ID: 39848259
Perfect thank you

Dan
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

732 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