Match Values for repeating Employee IDs

rwmhr

New Member
Joined
Sep 21, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am in need of a formula that will allow me to compare two datasets with repeating employee IDs. The Task: I have to audit payments to employees. There is one sheet with a list of employee IDs and the payment they should receive, and another sheet from a system report listing the payments entered for the same employees. I have tried to use VLookup but it does not work when an employee is listed multiple times in either sheet. For example, John Smith may receive three payments of 500, 300, 1000. In both reports this will show as three rows with the different payments. However, when I use Vlookup to compare the two sheets, it shows John Smith with three rows but all payments show as 500. It seems to take the first value for John Smith and plugs it in the other two rows. See sample pic. Also, the rows in either sheets do not align row for row and not all employees may show in the system generated report sheet. The formula has to be able to use the employee's ID and the money value from one sheet and match it in the other sheet.
Thank you in advance for any help.

Capture.PNG
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Maybe something like this.
Book2
ABCDEFGH
1To be paid Dataset ATo PayPaidPaid in System Dataset B
2111111Employee1650650111111Employeel650
3222222Employee2500500222222Employee2500
4333333Employee3750750555555Employee5800
5555555Employee5800800333333Employee3750
6555555Employee5600Not Paid555555Employee5500
7555555Employee5300300555555Employee5300
8777777Employee710001000444444Employee8550
9444444Employee8600Not Paid777777Employee71000
10444444Employee8550550
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=FILTER($H$2:$H$9,(A2=$F$2:$F$9)*(C2=$H$2:$H$9),"Not Paid")
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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