Comparing two different worksheets, then bringing data over.

J Lowe

New Member
Joined
Feb 17, 2002
Messages
27
I have two worksheets that have similar data. The new worksheet contains clients and fees collected while the original worksheet contains this information plus another twenty fields that I need.

My goal is to avoid the duplication of work.

Both sheets contains clients that are the same, but the new sheet also contains new clients and perhaps has lost a few clients.

Is there a way to:

A.) Compare the data in A2:A500 (Worksheet one) with A2:A500 (Worksheet two)...

B.) Where ever the information in the columns are the same, then take the information in C2 - V2: C500 - V500 (worksheet one) and fill in the same cells in worksheet two?

I am guessing this will be an If...then statement, but am not quite sure how to set it up successfully.

Can anyone help with this?

Thank you,
Jason
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
On 2002-03-08 11:13, J Lowe wrote:
I have two worksheets that have similar data. The new worksheet contains clients and fees collected while the original worksheet contains this information plus another twenty fields that I need.

My goal is to avoid the duplication of work.

Both sheets contains clients that are the same, but the new sheet also contains new clients and perhaps has lost a few clients.

Is there a way to:

A.) Compare the data in A2:A500 (Worksheet one) with A2:A500 (Worksheet two)...

B.) Where ever the information in the columns are the same, then take the information in C2 - V2: C500 - V500 (worksheet one) and fill in the same cells in worksheet two?

I am guessing this will be an If...then statement, but am not quite sure how to set it up successfully.

Can anyone help with this?

Thank you,
Jason

Jason, place this formula in C2 and copy to C2:V500.

=IF(ISNA(VLOOKUP($A1,Sheet2!$A$2:$V$500,COLUMN(),0)),0,VLOOKUP($A1,Sheet2!$A$2:$V$500,COLUMN(),0))

This will return the value 0 if no match is found. If you want it to be blank, replace 0 with "".

Regards,
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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