Solved

XLS  Matching to columns

Posted on 2014-02-10
2
134 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
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.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

690 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