Find the matching details from 2 workbooks compile it in a sheet and then summarize it and put it in different sheet.

deba2020

New Member
Joined
Jan 8, 2020
Messages
26
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I have a workbook i.e. Hundi Payment.xlsm in which we maintain list of invoices which has Hundi Payment Term and the file also contains numerous details related to such invoices like invoice number, date, supplier id, GRN etc
I have 2nd workbook i.e. Imprest Report.xlsx which contains all such invoices as aforementioned as well all their associated invoices, deductions and other invoices as well which have different payment terms.
Then there is a 3rd workbook i.e. RBL Payment.xlsx, which needs to be prepared using both the above workbooks wherein I need to put invoice wise details from workbook 1 and their associated invoices or deductions from workbook 2 in worksheet "Details" of workbook3 and summarize this details in "Details" worksheet and put it in worksheet "Summary" in workbook3.
I am trying to figure out VBA code to put one invoice detail at a time from workbook 1 to workbook 3 and then only find all the associated invoices or deductions from workbook 2 and if found put those in workbook 3 if not found then ignore it and then proceed for 2nd invoice and so on.
We need to find the details in workbook 2 of the invoices mentioned in workbook 1 with a criteria that it pertains to the same supplier id and to identify the associated invoices or deduction it has this pattern i.e. Invoice Number-Some Suffix.
Please help. If you have any query please let me know.

Workbook1
GRNReceipt DateOrgSupplier NameSupplier CodePO No.Item CodeItem DescriptionTypeInvoice No.Invoice DateReceipt QtyChallan QtyGross AmountSGSTCGSTIGSTNet AmountFreightDiscountOthersAmount PaidCurrencyExchange RateGRN exchange ratePayment TermsGRN CurrencyMaterial StatusInvoicedInvoice NumberVoucher NumberSourceValidation StatusG L DateAP PeriodDue DateDate Invoice ReceivedVendor TypeWith this date hundi should be doneDue DateBills Should Be Passed ByTenorVendorGRBill NoApprox AmtPassed AmtVoucher No.Remarksrequest sent to bank on FY
2194024-May-23My Org:110ABC1862291999AMaterial ARMMUMV0362622-05-2023 00:00100001000039000035100351000460200INR1515 days Hundi payment 60 days tenure thru RTGS60DeliveredYMUMV03626152319Manual Invoice EntryValidated26-May-23May-2308-Jun-23RM-INDIGENOUS08-Jun-2327-07-20231060ABC21940MUMV03626460200460200152319#N/A2022-23
2188320-May-23My Org:110XYZ18852283065BMaterial BPKGPC/0129/23-2419-05-2023 00:0017601760157643.214187.8914187.890186018.980INR15MSME - RTGS -15 days Hundi payment 60 days tenure60DeliveredYPC/0129/23-24152161ERSValidated20-May-23May-2304-Jun-2345066RM-INDIGENOUS04-Jun-2327-07-2023660XYZ21883PC/0129/23-24186018.98186018.98152161#N/A2022-23
2190722-May-23My Org:110BCD1860295206CMaterial CRMNH/54/23-2416-05-2023 00:0024720247202348400004227122771112INR20MSME - RTGS - 20 days Hundi payment 60 days tenure60Pending DeliveryYNH/54/23-24152307Manual Invoice EntryValidated26-May-23May-2306-Jun-23RM-INDIGENOUS11-Jun-2327-07-20231360BCD21907NH/54/23-2427711122771112152307
2191623-May-23My Org:110CDE1715297290DMaterial DRM166785129820-05-2023 00:0035000350003045000015225319725INR1515 days Hundi payment 60 days tenure thru RTGS60DeliveredY1.668E+09152314Manual Invoice EntryValidated26-May-23May-2307-Jun-23RM-INDIGENOUS07-Jun-2327-07-2023960CDE219161667851298319725319725152314
2188320-May-23My Org:110XYZ18852283065EMaterial EPKGPC/0129/23-2419-05-2023 00:002600260012565811309.2211309.220148276.440INR15MSME - RTGS -15 days Hundi payment 60 days tenure60DeliveredYPC/0129/23-24152161ERSValidated20-May-23May-2304-Jun-2345066RM-INDIGENOUS04-Jun-2327-07-2023660XYZ21883PC/0129/23-24148276.44148276.44152161
2172915-May-23My Org:110BCD1860295206CMaterial CRMNH/46/23-2409-05-2023 00:001597215972151734000273121.21790461.2INR20MSME - RTGS - 20 days Hundi payment 60 days tenure60DeliveredYNH/46/23-24151638Manual Invoice EntryValidated18-May-23May-2330-May-23RM-INDIGENOUS04-Jun-2327-07-2023660BCD21729NH/46/23-241790461.21790461.2151638
2042723-Feb-23My Org:110ABC1862281420FMaterial FRMMUMV1588921-02-2023 00:001001003900035103510046020INR1515 days Hundi payment 60 days tenure thru RTGS60DeliveredYMUMV15889147330Manual Invoice EntryValidated31-Mar-23Mar-2310-Mar-23RM-INDIGENOUS10-Mar-2327-07-2023-8060ABC20427MUMV158894602046020147330


Workbook2
REGNDEPOTPERIODCreated byVOUCHER NUMBERCheque NumberCheque DateAccount NumberSupplier IdSupplier SiteTDS SectionTDS PercentageTRADING PARTNERINVOICE NUMBERINVOICE DATEACCOUNTAccount NameAMOUNTHDR DESCRIPTIONDIST DESCRIPTIONAttribute 4PID CODEPID NAMEPID CATEGORY
W1380:Jejuri - MfgMay-23380-ACCOUNTANT152319'1862MumbaiSEC. 194(Q)0.1ABCMUMV0362622-May-23380.380.000.26206.10.000000Accrued A/c Payables390000BASOFIX T
W1380:Jejuri - MfgMay-23380-ACCOUNTANT152319'1862MumbaiSEC. 194(Q)0.1ABCMUMV0362622-May-23380.380.000.26206.10.000000Accrued A/c Payables35100CGST_REC_STANDARD
W1380:Jejuri - MfgMay-23380-ACCOUNTANT152319'1862MumbaiSEC. 194(Q)0.1ABCMUMV0362622-May-23380.380.000.26206.10.000000Accrued A/c Payables35100SGST_REC_STANDARD
W1380:Jejuri - MfgMay-23380-ACCOUNTANT152324'1862MumbaiABCMUMV03626-TDS-CM-126709422-May-23009.000.000.26722.10.000000TDS - 194 Q-390MUMV03626-TDS-CM-1267094MUMV03626-TDS-CM-1267094/TDS/SEC. 194(Q)/TDS_TYPE/230522/.1


Workbook3 Worksheet("Details")
Document NumberDocument DateDocument CCYDocument AmtOther DeductionAmount DeductableNet AmountShipment DateFinancing Tenor Start DateFinancing TenorMaturity DateSupplier IdSupplier NameBuyer NameGoods DescCountry Of OriginShipment FromShipment from CountryShipment ToShipment to Country
MUMV0362622-05-2023INR4,60,200.004,60,200.0022-05-202329-05-20236028-07-2023-Friday1862ABCXXXCHEMICALS, CONTAINER ININDIAININDIAIN
MUMV03626-TDS-CM-126709422-05-2023INR-390.00-390.0022-05-202329-05-20236028-07-2023-Friday1862ABCXXXCHEMICALS, CONTAINER ININDIAININDIAIN


Workbook3 Worksheet("Summary")
Beneficiary (Vendor)ERP IDTenorTotal Invoice Amount (Rs.)Interest (Rs.) @18%Net Amount Payable (Rs.)Due DateBeneficiary Bank Name & AddressAccount NumberIFSC Code
ABC1862604,59,810.0013,605.344,46,204.6628-Jul-23BOBxxxxxxx45xxxxxx12
4,59,810.0034,782.574,46,204.66
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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