I need help comparing 2 sheets

madpammy

New Member
Joined
May 3, 2011
Messages
3
I have 2 spreadsheets, June Inv File and Tim Car. I need to compare column A on both and when it finds a match I need it to copy column C from June Inv File to Tim Car. Any help appreciated.

md
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try...

=IF(ISERROR(VLOOKUP(A1,'[June Inv File.xls]Sheet1'!$A:$C,3,0)),0,VLOOKUP(A1,'[June Inv File.xls]Sheet1'!$A:$C,3,0))

Replace the 0 with whatever you want to be shown if A1 cannot be found in the other sheet.

Drag the formula down for each A you want to search for.


If you are in excel 2007 or later there is the ISERROR function that negates the need for the IF function.

Regards

Roger
 
Upvote 0
can also use this: Change the range of A#:A# and C#:C# to match your data (if using Excel 2007 you can make it the entire column).

Place this in the C column where you want the value returned (in the Tim Car worksheet)

=SUMPRODUCT(--('Jun Inv File'!$A$1:$A$30=A1),'Jun Inv File'!$C$1:$C$30)

change range to suit your data!!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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