bebo021999
Well-known Member
- Joined
- Jul 14, 2011
- Messages
- 2,532
- Office Version
- 2016
I have a list of products and their prices in the range "A:D". I have a total amount, for example: 5,000,000.
The total amount is exact, with no allowance for even a 1 cent difference. I need to create an invoice with a maximum of 10 products randomly (with its quantity and unit price, picked from the product list)
and Total amount matching the specified number.
This invoice can have 1, 2, 3, or up to 10 products. Please provide a VBA code snippet to list all possible invoices that can be created.
In the file, the range H3:L14 is an example of an invoice that can be generated.
Thanks in advance!
link of sharing file
crossed-post here
The total amount is exact, with no allowance for even a 1 cent difference. I need to create an invoice with a maximum of 10 products randomly (with its quantity and unit price, picked from the product list)
and Total amount matching the specified number.
This invoice can have 1, 2, 3, or up to 10 products. Please provide a VBA code snippet to list all possible invoices that can be created.
In the file, the range H3:L14 is an example of an invoice that can be generated.
Thanks in advance!
link of sharing file
Invoice.xlsm
drive.google.com
crossed-post here
Combinations of multiple products & quantities such total amount matchs given number
I have a list of products and their prices in the range "A:D". I have a total amount, for example: 5,000,000. The total amount is exact, with no allowance for even a 1 cent difference. I need to create an invoice with a maximum of 10 products randomly (with its quantity and unit price, picked...
www.excelforum.com