Cumulative quantity - Daily

nikita75b

New Member
Joined
Feb 4, 2013
Messages
1
Hello,

I have an access table downloaded from an ERP system that has production data as follows:

Production Order
Date Produced
Part Number
Cumulative Qty Produced

My issue is that each day the ERP overwrites the days previous qty if the production order has additional production. I need to be able to come up with the production for the DAY, not the cumulative order production quantity.

What kind of query can I write that will back out the previous quantity produced on an order.

Raw Data:

Order Date Part Cum Qty
123 1/1/13 ABC 2
123 1/2/13 ABC 4
123 1/4/13 ABC 8

I need:

Order Date Part Daily Qty
123 1/1/13 ABC 2
123 1/2/13 ABC 2 (4 - 2)
123 1/4/13 ABC 4 (8 - 4)

Thanks for your help!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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