We are looking for an easier way to automate matching payments from customers. Checks that include invoice numbers are easily matched, those are not the problem. It is for the payments that are received without invoice numbers that require manual review to determine where the money should be allocated to.
Below, I've included 2 sample tables, one that contains the orders and another that contains the payments received. Although Customers Numbers are common on both tables, simply matching the Customer Numbers do not work as customers can have more than one order and can have more than one check received. (Tried using Vlookup which did not work due to multiple instances of Customer Numbers and multiple instances of same dollar values. Index & Match didn't work either)
Ideally, we would a macro that can do these things:
I imagine this may be too complicated for macro to handle but it doesn't hurt to ask.
Thanks in advance.
Customer Orders Table
<tbody>
</tbody>
Payments Received Table
<tbody>
</tbody>
Output Report Example
<tbody>
</tbody>
Below, I've included 2 sample tables, one that contains the orders and another that contains the payments received. Although Customers Numbers are common on both tables, simply matching the Customer Numbers do not work as customers can have more than one order and can have more than one check received. (Tried using Vlookup which did not work due to multiple instances of Customer Numbers and multiple instances of same dollar values. Index & Match didn't work either)
Ideally, we would a macro that can do these things:
- Compare and match Customer Numbers
- If Customer Number match is found, compare and match dollar amounts
- If dollar matches found, copy Check Amounts and Check Numbers to output report (see output report)
- If no matches found, enter "Not Found"
I imagine this may be too complicated for macro to handle but it doesn't hurt to ask.
Thanks in advance.
Customer Orders Table
Customer No | Invoice Number | Purchase Amount |
15935 | 07213588-1 | 5,000.00 |
142559 | 09559387-1 | 3,500.00 |
185735 | 09592476-1 | 8,581.00 |
196899 | 07355651-1 | 9,200.00 |
279579 | 01001349-1 | 6,568.77 |
319381 | 08928126-1 | 3,500.00 |
349797 | 06677269-1 | 100.00 |
349797 | 06677269-1 | 100.00 |
349797 | 06677269-1 | 100,000.00 |
350927 | 04169385-1 | 3,500.00 |
350927 | 04169385-1 | 3,500.00 |
419764 | 08927751-1 | 15,000.00 |
421443 | 06764633-1 | 1,500.00 |
436840 | 09015276-1 | 3,500.00 |
438463 | 09016534-1 | 3,500.00 |
471948 | 09041007-1 | 5,000.00 |
481330 | 09048932-1 | 5,000.00 |
493391 | 02331161-1 | 5,000.00 |
526320 | 03359918-1 | 3,500.00 |
526320 | 03359918-1 | 3,510.00 |
545502 | 03316973-1 | 75,000.00 |
579778 | 03636433-1 | 3,500.00 |
583199 | 06887036-1 | 3,500.00 |
583199 | 06887036-1 | 3,500.00 |
606823 | 07664043-1 | 4,500.00 |
620270 | 04429721-1 | 5,000.00 |
620270 | 04429721-1 | 7,631.20 |
633542 | 04442762-1 | 7,500.00 |
737960 | 07761962-1 | 406.00 |
779532 | 03898704-1 | 2,000.00 |
883960 | 07871511-1 | 3,500.00 |
941457 | 09396825-1 | 7,500.00 |
961675 | 09411797-1 | 611.40 |
970168 | 07936233-1 | 3,500.00 |
971750 | 08673382-1 | 9,000.00 |
974325 | 09422044-1 | 7,500.00 |
974325 | 09422044-1 | 7,500.00 |
<tbody>
</tbody>
Payments Received Table
Customer No | Check Amount | Check Number |
15935 | 5,000.00 | 104727370 |
21128 | 1,250.00 | 119204419 |
21128 | 1,450.00 | 145930023 |
109225 | 10,235.00 | 147330779 |
128912 | 6,533.00 | 145558906 |
142559 | 3,500.00 | 142946325 |
185735 | 8,581.00 | 146842182 |
196899 | 9,200.00 | 137189591 |
279579 | 6,568.77 | 148727437 |
306326 | 25,000.00 | 147166738 |
319381 | 3,500.00 | 145927908 |
349797 | 100.00 | 142446881 |
349797 | 100.00 | 142446882 |
349797 | 100,000.00 | 147747165 |
350927 | 3,500.00 | 130843967 |
350927 | 3,500.00 | 147096693 |
419764 | 15,000.00 | 123466494 |
421443 | 1,500.00 | 100599091 |
436840 | 3,500.00 | 134345889 |
437252 | 1,500.00 | 139573296 |
438463 | 3,500.00 | 145734790 |
452126 | 4,500.00 | 147099095 |
471948 | 5,000.00 | 144172551 |
481330 | 5,000.00 | 131034064 |
493391 | 5,000.00 | 128081007 |
526320 | 3,500.00 | 123845749 |
540944 | 250,000.00 | 149143010 |
545502 | 75,000.00 | 144259893 |
547478 | 9,253.00 | 132728054 |
583199 | 3,500.00 | 130042365 |
583199 | 3,500.00 | 142366423 |
605244 | 35,000.00 | 145650826 |
605244 | 7,500.00 | 146085435 |
606823 | 4,500.00 | 124372621 |
620270 | 5,000.00 | 143212783 |
633542 | 7,500.00 | 143804189 |
656817 | 7,500.00 | 125486623 |
700698 | 1,500.00 | 143981597 |
737960 | 406.00 | 129955189 |
779532 | 2,000.00 | 147098652 |
815124 | 9,253.00 | 146586643 |
883960 | 3,500.00 | 144992649 |
930482 | 35,000.00 | 148813121 |
941457 | 7,500.00 | 109629786 |
947913 | 7,500.00 | 117616433 |
947913 | 7,500.00 | 145157309 |
961675 | 611.40 | 147942078 |
970168 | 3,500.00 | 141559228 |
974325 | 7,500.00 | 145156081 |
<tbody>
</tbody>
Output Report Example
Customer No | Invoice Number | Invoice Number | Purchase Amount | Check Amount | Check Number |
15935 | 07213588-1 | 07213588-1 | 5,000.00 | 5,000.00 | 104727370 |
142559 | 09559387-1 | 09559387-1 | 3,500.00 | 3,500.00 | 142946325 |
185735 | 09592476-1 | 09592476-1 | 8,581.00 | 8,581.00 | 146842182 |
196899 | 07355651-1 | 07355651-1 | 9,200.00 | 9,200.00 | 137189591 |
279579 | 01001349-1 | 01001349-1 | 6,568.77 | 6,568.77 | 148727437 |
319381 | 08928126-1 | 08928126-1 | 3,500.00 | 3,500.00 | 145927908 |
349797 | 06677269-1 | 06677269-1 | 100.00 | 100.00 | 142446881 |
349797 | 06677269-1 | 06677269-1 | 100.00 | 100.00 | 142446882 |
349797 | 06677269-1 | 06677269-1 | 100,000.00 | 100,000.00 | 147747165 |
350927 | 04169385-1 | 04169385-1 | 3,500.00 | 3,500.00 | 130843967 |
350927 | 04169385-1 | 04169385-1 | 3,500.00 | 3,500.00 | 147096693 |
419764 | 08927751-1 | 08927751-1 | 15,000.00 | 15,000.00 | 123466494 |
421443 | 06764633-1 | 06764633-1 | 1,500.00 | 1,500.00 | 100599091 |
436840 | 09015276-1 | 09015276-1 | 3,500.00 | 3,500.00 | 134345889 |
438463 | 09016534-1 | 09016534-1 | 3,500.00 | 3,500.00 | 145734790 |
471948 | 09041007-1 | 09041007-1 | 5,000.00 | 5,000.00 | 144172551 |
481330 | 09048932-1 | 09048932-1 | 5,000.00 | 5,000.00 | 131034064 |
493391 | 02331161-1 | 02331161-1 | 5,000.00 | 5,000.00 | 128081007 |
526320 | 03359918-1 | 03359918-1 | 3,500.00 | 3,500.00 | 123845749 |
526320 | 03359918-1 | 03359918-1 | 3,500.00 | Not Found | Not Found |
545502 | 03316973-1 | 03316973-1 | 75,000.00 | 75,000.00 | 144259893 |
579778 | 03636433-1 | 03636433-1 | 3,500.00 | Not Found | Not Found |
583199 | 06887036-1 | 06887036-1 | 3,500.00 | 3,500.00 | 130042365 |
583199 | 06887036-1 | 06887036-1 | 3,500.00 | 3,500.00 | 142366423 |
606823 | 07664043-1 | 07664043-1 | 4,500.00 | 4,500.00 | 124372621 |
620270 | 04429721-1 | 04429721-1 | 5,000.00 | 5,000.00 | 143212783 |
620270 | 04429721-1 | 04429721-1 | 5,000.00 | Not Found | Not Found |
633542 | 04442762-1 | 04442762-1 | 7,500.00 | 7,500.00 | 143804189 |
737960 | 07761962-1 | 07761962-1 | 406.00 | 406.00 | 129955189 |
779532 | 03898704-1 | 03898704-1 | 2,000.00 | 2,000.00 | 147098652 |
883960 | 07871511-1 | 07871511-1 | 3,500.00 | 3,500.00 | 144992649 |
941457 | 09396825-1 | 09396825-1 | 7,500.00 | 7,500.00 | 109629786 |
961675 | 09411797-1 | 09411797-1 | 611.40 | 611.40 | 147942078 |
970168 | 07936233-1 | 07936233-1 | 3,500.00 | 3,500.00 | 141559228 |
971750 | 08673382-1 | 08673382-1 | 3,500.00 | Not Found | Not Found |
974325 | 09422044-1 | 09422044-1 | 7,500.00 | 7,500.00 | 145156081 |
974325 | 09422044-1 | 09422044-1 | 7,500.00 | Not Found | Not Found |
<tbody>
</tbody>