I want to Enter the total available qty in Stock for 4/23 and 4/24 in Cell D2 and it automatically distribute the qty over accounts equally and rounded. Let say the total qty I have to ship for 4/23 and 4/24 is 500 and I have 400 available I still want it to distribute as ordered and keep difference on last account if the order met as ordered say YES in column E if not (as in last acct) say NO in Column E. I will only have to enter value in D2 for 4/23 and 4/24 and in D13 for 4/25 and 4/26. please help with formula. Thanks
It would help enormously if you could manually calculate the expected results for this example. I made a few assumptions. I had to add a column for the end date, because otherwise I didn't know where to end the range where the quantity would be spread. I had a version where the amount and date were in the same cell, but it really looked bad. So, starting with this layout,
Thanks Eric, I really appreciate your help.
This is exactly what and how I wanted it. But I don't why its giving not the right numbers on last cells of every end date for example you can see on Cell B25 my required Qty is 1403.75 and it rounded up maybe a little more so I put the QTY in stock as a little over but it still give wrong number on C25. The only time it gives the right number is when I put a very large number in QTY in stock, But practically we dont usually have everything as ordered.
Thanks again Eric.
I think that's not what I meant.
Please review the RED COLORED CELLS in Below Sheet.
I am trying to distribute a QTY of "1420" over date range of 04/25 and 04/26 and you will notice that its distributing only 1270.
I noticed the formulas worked fine until 2nd last Row (24) and not giving accurate number on last row (25). its giving only 61 against 200 QTY.
Notice that on the 4/23 - 4/24 range, the amounts are higher than the ordered quantity, while the 4/25 - 2/26 range, they're pretty close.
If this is not what you're looking for, please manually calculate the values you want, and explain how you got them. The saying "A picture is worth a thousand words" definitely applies here.
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.