Copying Selected Field Values from Sheet2 to Sheet 1, if the Value in multiple columns match in both sheets

KD1991N

New Member
Joined
Dec 2, 2019
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have two worksheets. The following are the conditions based on which Values from Sheet 2 need to be copied over to Sheet 1.

In Sheet 2: We have Column A, Column N, Column R
Sheet 2 has multiple values for each instance of a Pipe
A is the primary value(InstanceID), along with Columns N or R (Value can be present in either N or R, or both) (datatype of N and R are double)
N and R are never present on the same row together.
On Sheet 2, If N is present, then Column A+Column N values need to be matched with values on Sheet 1.
On Sheet 2, If R is present, then Column A+Column R values need to be matched with values on Sheet 1.
If N and R are empty for a row, then skip that row in Sheet 2

Next match Sheet2's column A with Sheet1's column A, then Match N or R value of sheet 2 with Sheet1's Column D

Once both the values are matched, copy values Column Z, Column AA, Column AB from Sheet 2 to the columns K,L,M of Sheet 1

This needs to be done for every row in Sheet2.

Can someone help me out!
 

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.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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