Calculate number of MOQ and SPQ to cover demand ?

klong

New Member
Joined
Oct 23, 2005
Messages
44
Hi,

Trying to come up with a single formula [not VBA] to calculate how many MOQ (Minimum Order Quantity) and SPQ (Standard Pack Quantity) I need to order to satisfy demand on a row. The MOQ is usually a multiple of th SPQ i.e. 4 x 500 piece SPQs = 1 x MOQ = 2,000 pieces.

Example ("/" used to seperate column data for below example)
Demand / MOQs / SPQs / Total Order
<=2,000 / 1 / 0 / 2,000
2,001 / 1 / 1 / 2,500
2,501 / 1 / 2 / 3,000

I am trying to figure out how to do it in a single column but I'm struggling with a really long winded formula at the moment and thought I'd put it out there !

Column A = MOQ
Column B = SPQ
Column C = Demand
Column D = Order Quantity ([a x MOQ] + [b x SPQ])

I can do it but need additional colums to calculate a & b used in Columd D first !

It needs to be a formula so I can easily recalculate once I change Demand in column C.

Any pearls of wisdom would be greatly appreciated.

Regards,
Ken
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi Ken,
Pls find the below Formula to order by calculating SPQ & MOQ's ,I will take one day to find the solution of this SPQ & MOQ.
Hope i will be help ful both of us.

IF(To be ordered Qty<=MOQ,ROUNDUP(To be ordered Qty/MOQ,0)*MOQ,ROUNDUP(To be ordered Qty/SPQ,0)*SPQ

<tbody>
</tbody>

Examples by used this formula :
SPQMOQTo be Ordered To Be ordered with MOQ
1000200048005000
1000200036004000
100500600600
750 600750
10000300003420040000
1000020000360020000
5000 6005000

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

Tks & regards
Venkateesa KumarM
Vortex
 
Last edited:
Upvote 0
Hi Ken,
Pls find the below Formula to order by calculating SPQ & MOQ's ,I will take one day to find the solution of this SPQ & MOQ.
Hope i will be help ful both of us.
& A good news by using this formula #Div/0 Error won't come.

=IFERROR(IF(To be ordered Qty<=MOQ,ROUNDUP(To be ordered Qty/MOQ,0)*MOQ,ROUNDUP(To be ordered Qty/SPQ,0)*SPQ),"0")

<tbody>
</tbody>

Examples by used this formula :
SPQMOQTo be OrderedTo Be ordered with MOQ
1000200048005000
1000200036004000
100500600600
750600750
10000300003420040000
1000020000360020000
50006005000

<tbody>
</tbody>

Tks & regards
Venkateesa KumarM
Vortex
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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