Please help me get the output for the given file

Copper Contributor

Hi guys

I've given layout of an excel file below which has three sheets out of which "invoice" and "packaging" sheets are inputs whilst the "output" sheet contains the desired output I want.

 

I'm finding it difficult to frame an query for the same - It'll be great if someone can help me on that.

Thanks in Advance. 

 

PACKING SHEET-

Packing List NoUnique IDPacking DateCustomer NameItem NameQTYRateValueSO No
11x01-04-19Ax10033001
21y01-04-19Ay200612001
32z01-06-19Bz300515002
42z01-08-19Bz10055002
51x01-08-19Ax10033001
61y01-08-19Ay300618001
73z15-09-19Bz20048003
83z30-09-19Bz500420003
94a17-09-19Ca300721004
104a29-09-19Ca300721004

 

INVOICE SHEET-

Invoice NoUnique IDInvoice DateCustomer NameItem NameQTYRateValueSO No
11x01-05-19Ax8032401
11y01-05-19Ay15069001
22z01-07-19Bz200510002
31x01-09-19Ax10033001
41y01-09-19Ay350621001
52z01-09-19Bz15057502
63z15-09-19Bz18047203
73z01-10-19Bz495419803
84a30-09-19Ca600742004

 

DESIRED OUTPUT-

SO NoInvoice NoPacking List NoItem NameInvoice DatePacking DateInvoiced Quantity
111x01-05-1901-04-1980
111x01-09-1901-08-1920
111x01-09-1901-08-1980
112y01-05-1901-04-19150
142y01-09-1901-08-1950
146y01-09-1901-08-19300
223z01-07-1901-06-19200
253z01-09-1901-06-19100
254z01-09-1901-08-1950
367z15-09-1915-09-19180
377z01-10-1915-09-1920
378Z01-10-1930-09-19475
489a30-09-1917-09-19300
4810a30-09-1929-09-19300

 

METADATA- SO is Sales Order | The output is based on FIFO Logic | Packaging stage is primary whilst Invoice stage is secondary

0 Replies