Vlookup, comparing two columns, output matches to a 4th column

aethernet

New Member
Joined
Apr 4, 2012
Messages
4
Hello,

I'm using Excel 2003 and am trying to consolidate data from two customer spreadsheets into one. What it boils down to is this, lets say I have these four columns in Excel:

<a href="http://imgur.com/zbTgW"><img src="http://i.imgur.com/zbTgW.jpg" alt="" title="Hosted by imgur.com" /></a>

What I need is a formula that will compare column C to column B, when it finds a match, copy A to D.

I've been trying to use Vlookup but have not figured it out. Any ideas?

Thanks!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

Perhaps try Index/Match like this:
Excel Workbook
ABCD
1Cust ID#Company Name (source 1)Company Name (source 2)Cust ID# Output
21NamcoNamco1
32AtariAtari2
43NintendoNintendo3
54NeoGeoSony5
65Sony
Sheet2
Excel 2010
Cell Formulas
RangeFormula
D2=INDEX(A$2:A$6,MATCH(C2,B$2:B$6,0))
 
Upvote 0
Re: BenMiller

Unfortunately column C and B get out of sync quickly because B has many duplicates / old entries.
 
Upvote 0
Re: circledchicken

0gi03qyg.ydq.gif
 
Upvote 0
Follow up to this question. What if I wanted to show all the cells in B that do not have a match in C?
 
Upvote 0
Hi,

One way might be:
Excel Workbook
ABCD
1Cust ID#Company Name (source 1)Company Name (source 2)Not in C
21NamcoNamco1
32AtariAtari2
43NintendoNintendo3
54NeoGeoSony#N/A
65Sony4
Sheet1
Excel 2010
Cell Formulas
RangeFormula
D2=MATCH(B2,C$2:C$6,0)
  • Drag down the formula in D2 to the end of your data.
  • Filter column D for the #N/A's
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top