Formula for rounding up to the MOQ then

sjuhl99

New Member
Joined
Jul 28, 2017
Messages
29
I am trying to write a formula where the PO Quantity will look at the MOQ first the round up by the pallet quantity to get my desired order quantity. As of now it is rounding higher by the MOQ, so in the example below it is suggesting 6,000 however I only need the MOQ of 3,000 + an extra pallet of 750. My current formula is '=IF(N8="N",0,CEILING(BM8-Z8,J8)), If PO required =Y then calculate the difference between Available Inventory vs our Target stock settings then using the multiple of the MOQ's. So trying to get incremental increases based on the pallet quantity rather than lopping on a whole MOQ. Please help.


Pallet Quantity (I8)MOQ (J8)VendorVendor Item #VLT (Weeks)PO Required (N8)PO Qty
750​
3,000​
PREMMFG437104Y
6,000​

 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
It works but appears not be taking into account the correct amount to start with, meaning my (Target Stock setting - Current Inventory) so the BM8-Z8. This is calculated first to ensure the PO requirement is rounding up to meet the Target stock but rounding up currently in full MOQ quantities.
 
Upvote 0
You are correct, sorry about that, so its taking where the quantity available + on order (Z8) < the MRP Min (BM8) and puts a Y in N8 where that is true. Then it takes the difference between BM8-Z8 and round that to the nearest MOQ (J8) to get back to the MRP Min but will keep using the MOQ value rather than individual pallet quantities to get back to the MRP min, if that makes sense.

Pallet Quantity (I8)MOQ (J8)PO Required (N8)PO Qty (08)Qty_Available + OO (Z8)MRP Min (BM8)
750​
3,000​
Y
6,000​
5,337​
9,900​
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,477
Latest member
panjongshing

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