• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

Excel Foruma to compare to excel sheets

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
thomasm1948
Asked:
thomasm1948
1 Solution
 
NBVCCommented:
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
 
thomasm1948Author Commented:
That worked perfect.  Thank you very much
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now