PDA

View Full Version : Module to Calculate from Two Tables



shah0101
01-29-2022, 10:18 PM
Dear Experts,

I have a workbook with two sheet with two different tables.

Table 1 has Invoice Numbers, Invoice Values and LC Numbers (Table Name is "Inv_21")
Table 2 has the LC Numbers and LC Values (Table Name is "LC_21"


Can I request for a script / module to bring up all the Invoice Numbers and Invoice Values from Table "Inv_21" with an automatic populated Drop Down List of any particular LC Number from Table: "LC_21" which matches the LC Number in both Tables. Then total invoice values of collected invoices and deduct those values from the LC Value?

I have deleted / sanitized as much data as I can. Sample workbook can be downloaded from below link:
https://we.tl/t-yJqNUDGdgC



Much Appreciated.

Thanks.

p45cal
01-30-2022, 01:39 PM
VBA to calculate from two tables | Chandoo.org Excel Forums - Become Awesome in Excel
https://chandoo.org/forum/threads/vba-to-calculate-from-two-tables.47498/
VBA module to Calculate from two tables
https://www.msofficeforums.com/excel-programming/48408-vba-module-calculate-two-tables.html
VBA Script To Calculate the Balance | MrExcel Message Board
https://www.mrexcel.com/board/threads/vba-script-to-calculate-the-balance.1194222/

macropod
01-30-2022, 03:10 PM
shah0101: Please read VBA Express' policy on Cross-Posting in Rule 3: http://www.vbaexpress.com/forum/faq.php?faq=new_faq_item#faq_new_faq_item3