Need match on two fields in two different sheets and return value from sheet 2 to sheet 1

KingSrahim

New Member
Joined
Jun 8, 2016
Messages
2
Hello,

I need assistance with matching on two columns/fields across two different worksheets and returning a value in a cell from one worksheet to another if there is an exact match. Specifically, I am beginning in column "W" in the sheet entitled "Personnel". I need to match on the CAN and Short Name across both sheets in this workbook. If there is an exact match between both worksheets, I need it to return the value from column "D" on sheet 2 into column "W" on sheet 1.

I am matching employee name and the specific CAN they are paid from across two worksheets (however some employees are paid from multiple CANs, hence the need to match to avoid manual updates after doing a simple vlookup).

I am able to send a detailed file with detailed data to assist. Thanks so much for any/all valuable input!

Thanks,
Rahim
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hello,

I need assistance with matching on two columns/fields across two different worksheets and returning a value in a cell from one worksheet to another if there is an exact match. Specifically, I am beginning in column "W" in the sheet entitled "Personnel". I need to match on the CAN and Short Name across both sheets in this workbook. If there is an exact match between both worksheets, I need it to return the value from column "D" on sheet 2 into column "W" on sheet 1.

I am matching employee name and the specific CAN they are paid from across two worksheets (however some employees are paid from multiple CANs, hence the need to match to avoid manual updates after doing a simple vlookup).

I am able to send a detailed file with detailed data to assist. Thanks so much for any/all valuable input!

Thanks,
Rahim

You would use a vlookup here, however, create a unique id for each record by concatenating Employee Name and CAN in BOTH sheets. Then use those values for the vlookup.
 
Upvote 0
Hi barjoman,

great idea...thank you. I will try it this afternoon and let you know the outcome. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,328
Members
449,155
Latest member
ravioli44

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