Solved

Excel Foruma to compare to excel sheets

Posted on 2014-02-06
2
324 Views
Last Modified: 2014-02-06
Hi

How can I compare to columns (on different spreadsheets in the same workbook) that may have the same data (string value) and then enter in another value from a column that contain data.

For Example

Sheet 1
Column a
Accounting

Sheet2
Column A     Column b
Accounting    AA-Accounting

What I need to do is compare the sheets and move column b to sheet 1 column b
The sheets may not be in the same order or one sheet may have more than the other

Is there a formula that can do this or is there a quick macro that can accomplish this

Thank you for all of your help in advance
0
Comment
Question by:thomasm1948
[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 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39839747
You can use VLOOKUP

e.g.

=VLOOKUP(A2,'Sheet2'!A:B,2,0)

this returns result from second column of range Sheet2!A:B where A2 in your active sheet matches column A of Sheet2.

You can copy down.

Alternate:

=INDEX('Sheet2'!B:B,MATCH(A2,'Sheet2'!A:A,0))
0
 

Author Closing Comment

by:thomasm1948
ID: 39839784
That worked perfect.  Thank you very much
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

729 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