Automatic invoice generation

senthilrajagopi

New Member
Joined
Oct 9, 2015
Messages
1
Hi Excel Guru's,

Model PO No Line Item Qty Del Date
A 124 1 200 15-08-2015
B 123 1 300 16-09-2015
A 123 2 250 15-09-2015
B 124 2 500 16-08-2015
A 124 3 600 15-10-2015
B 123 3 200 16-10-2015
A 124 4 300 15-11-2015
B 123 4 400 16-11-2015
A 124 5 500 15-12-2015
B 123 5 600 16-12-2015


If i invoice enter Model & Qty, then it should first consider oldest delivery date, then take PO no,
Line item and qty. After invoice qty should be detected from PO and balance to be shown as pending PO..

For Example, if i dispatch Model "A" - 600 Nos, it should take

Model Del Date PO No Line Item Total Balance
A 15-08-2015 124 1 200 0
A 15-09-2015 123 2 250 0
A 15-10-2015 124 3 150 450

Give me the Formula to come out of this issue.

Thanks & Regards,

Senthilrajagopi.
 

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.
MODELCODEQUANSTOCKRECEIVEDALL A'SSUM OF A'SIS SUM LESS OR MORE THAN REQUIRED TOTALIF MORE HOW MANY MOREA600150
A12420015-Aug200200LESS20015-Aug
A12325015-Sep250450LESS25015-Sep450
A12460015-Oct6001050MORE45015015-Oct600
A12430015-Nov3001350MORE750FALSE15-Nov150
A12450015-Dec5001850MORE1250FALSE15-Dec
B12450016-Aug
B12330016-Sep
B12320016-Oct
B12340016-Nov
B12360016-Dec
THE TABLE HAS BEEN SORTED
BY MODEL ASCENDING THEN
RECEIVED ASCENDING
ALL NUMBERS IN THE ABOVE TABLE
ARE DERIVED FROM FORMULAS
YOUR REQUIREMENT
COLUMN M (200,250,150)
600ASHOWS YOU WHAT TO TAKE
SHOULD BE MADE UP OFIN COLUMN P 450 IS THE LAST "LESS" TOTAL
AND 600 IS THE FIRST MORE TOTAL
200A15-AugAND 150 IS THUS REQUIRED TOTAL TO TAKE
250A15-Sep
150A15-OctTHE 150 IS TAKEN TO CELL S1 FOR CONVENIENCE
THE DATES IN COLUMN N ARE PULLED ACROSS FOR CONVENIENCE
THE "YOUR REQIREMENT" SUMMARY TABLE
IS 5 ROWS DEEP BUT SHOWS BLANKS
AS THE ORDER IS COMPLETED IN THREE ROWS

<colgroup><col span="2"><col span="2"><col><col span="2"><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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