Solved

Excel Foruma to compare to excel sheets

Posted on 2014-02-06
2
320 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
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
locking multiple column ranges 10 29
Excel error  #DIV/0! 7 22
Excel filter on tab not showing any entries? 5 24
Excel - remove duplicates 1 16
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

825 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