Formula for: If data on column A on Sheet 1 matches data on column A on Sheet 2, copy value from column B in Sheet 2 into Column B in Sheet 1

Charles_

New Member
Joined
Dec 12, 2012
Messages
32
Hello,

I need help with a formula please, I have data on 2 different spreadsheets. As per the title, I need a formula that will help me do: If data on column A (ID) on Sheet 1 matches data on column A on Sheet 2 (ID), copy value from column C ($) in Sheet 2 into Column B in Sheet 1 ($) .

Thanks!

Example

Sheet 1 (I need to populate Column C $ with the value on Sheet 2 where theres an ID match sheet 2)

IDName$
1Joe1
2Sue
3 Mark

Sheet 2

IDName$
1Joe10
4Peter5
9JP 4
2Sue30
6Ray25
3Mark5
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi Charles,
I am not sure if this is what you want

in B2 Sheet 1
Excel Formula:
=INDEX(Sheet2!B$2:B$7,MATCH(Sheet1!$A2,Sheet2!$A$2:$A$7,0))

in C2 Sheet 1
Excel Formula:
=INDEX(Sheet2!C$2:C$7,MATCH(Sheet1!$A2,Sheet2!$A$2:$A$7,0))
 
Upvote 0
Another option, if the IDs on sheet2 are unique
Excel Formula:
=sumifs(Sheet2!C:C,Sheet2!A:A,A2)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,052
Latest member
Fuddy_Duddy

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