mrzesty973
New Member
- Joined
- Jan 8, 2017
- Messages
- 3
I have two databases that each have invoice numbers and invoice dates. I need code that will first sort each list of data in ascending order. Then I need the code to compare the lists from each database. The output of the code should show where each invoice data is matching or missing. If there is a match between the databases, the code should align the data on the same row. If the invoice is missing, the code should be able to write out "missing." There might be cases where the database themselves have duplicate data. In those cases, the duplicates should be listed down at the bottom of the database list. Please see the final output below.
Column A Column B Column D Column E
Database A Database B
Invoice # Due Date Invoice # Due Date
113565 12/15/2016 113565 12/15/2016
Missing Missing 113761 12/21/2016
140720513-001 11/14/2016 140720513-001 11/14/2016
140836272-002 8/9/2016 Missing Missing
140836272-003 7/15/2016 140836272-003 7/15/2016
Duplicate Data Duplicate Data
140720513-001 11/14/2016 113565 12/15/2016
113761 12/21/2016
Column A Column B Column D Column E
Database A Database B
Invoice # Due Date Invoice # Due Date
113565 12/15/2016 113565 12/15/2016
Missing Missing 113761 12/21/2016
140720513-001 11/14/2016 140720513-001 11/14/2016
140836272-002 8/9/2016 Missing Missing
140836272-003 7/15/2016 140836272-003 7/15/2016
Duplicate Data Duplicate Data
140720513-001 11/14/2016 113565 12/15/2016
113761 12/21/2016