Formula is not calculating inventory balance correctly

bradyman97

Board Regular
Joined
Feb 22, 2008
Messages
60
Office Version
  1. 2019
Below I entered my formula and a small part of my table/spreadsheet. My formula is subtracting everything for the day and putting that total in each day. I need it to subtract and change the balance after each entry.


=SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"101")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"351")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"102")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"701")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"702")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"961")+SUMIFS([Quantity],[Expected Date],"<="&[@[Expected Date]],[Product Name],[@[Product Name]],[Movement],"352")


D13 E13 F13 G13 K13
Expected Date Movement Product Name Qty Balance

8/30/2016 101 141699 109 109
9/1/2016 351 141699 -2 105
9/1/2016 351 141699 -2 105
9/7/2016 351 141699 -1 104
9/12/2016 351 141699 -1 83
9/12/2016 351 141699 -20 83
9/14/2016 351 141699 -2 78
9/14/2016 351 141699 -2 78
9/14/2016 351 141699 -1 78
9/26/2016 351 141699 -1 77
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Cross-posted here: Formula is not calculating inventory balance correctly

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule #13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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