VBA to Compare Two Workbooks Using a Common Identifier, Compare Matches, Export Mismatches

goob90

New Member
Joined
Nov 12, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
I am working on a project to reconcile payroll data. I apologize if I ramble, I've tried to lay this out the best that I could, but as usual, my mind is scattered! Any input or suggestions is greatly appreciated!

I have an outline of what I am wanting to do:
1660758705912.png


User Selection:
Recon+ Blueprint.xlsx
BCDEFGHI
2Reconcile App
3
4
5
6Click to Select Payroll WorkbookReconcile!
7
8
9
10Click to Select Invoice Workbook
11
12
13
14
15
VBA Idea HS


Payroll Report:
Recon+ Blueprint.xlsx
ABCDEFGHIJKL
1Payroll Report
2NameEmployee ID#BirthdateHire DateTermination DateStatusDepartmentYearMonthCoverage PeriodDeduction/BenefitDeduction Amount
3Dwight Schrute26695/2/19825/12/2014ActiveSanitation2022101/01/2022-02/01/2022DPHO, DPHO, DPB, DPB$ 81.80
4Jo Bob23082/18/19685/2/20031/22/2022ActiveCEOC2022101/01/2022-02/01/2022DPHO, DPHO, DPB, DPB$ 56.40
5Ahsoka Tano513411/4/19965/3/2021ActivePolice2022101/01/2022-02/01/2022DPLO, DPHO, DPHO, DPFIX, DPB, DPB$ 66.92
VBA Idea



Carrier Invoice:
Recon+ Blueprint.xlsx
NOPQRS
1Carrier Invoice
2Coverage PeriodEmployee NameEmp IDProductContract TypeTotal Amount Due
301/01/2022-02/01/2022Andy Bernard5687DentalEmp Only56.4
401/01/2022-02/01/2022Jo Bob2308DentalEmp Only56.4
501/01/2022-02/01/2022Dwight Schrute2669DentalEmp Only + Spouse90
VBA Idea


Discrepancy Report Idea:
Recon+ Blueprint.xlsx
ABCDEFGHI
1NameEmployee ID#DepartmentCoverage PeriodDeduction/BenefitProduct TypeContract TypeDeduction AmountInvoiced Amount
2Dwight Schute2669Sanitation01/01/2022-02/01/2022DPHO, DPHO, DPB, DPBDentalEmp+Spouse$ 81.80$ 90.00
3Ahsoka Tano5134Police01/01/2022-02/01/2022DPLO, DPHO, DPHO, DPFIX, DPB, DPB$ 66.92Not on Invoice
4Andy Bernard5687DentalEmp Only$ 56.40Not on Payroll Report
Sheet6
 

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)

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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