Formula to add total qty in multiples of minimum pack sizes

RJSIGKITS

Board Regular
Joined
Apr 15, 2013
Messages
109
Okay, So I'm trying to set a supplier order form to specify the minimum order quantity of items specified by minimum pack sizes based on quantity of items ordered on a separate quote sheet...
so Far, I have this:
<d18,d18,(vlookup(a18,quotetable,5,0)))
Code:
=IF(VLOOKUP(A18,QUOTETABLE,5,0) < D18,D18,(VLOOKUP(A18,QUOTETABLE,5,0)))
** Remove the spaces before and after < due to forum issues **
QuoteTable is where the salesperson adds the product code and quantity the client wants to the order, and this code is going on the supplier order sheet where I need the total of items i need to order dependant on the minimum pack sizes. I need it to calculate the supplier order based on total quoted, and total of items by minimum pack size order quantity.
EG, if the minimum pack size is 2, and the client wants 3, I have to order 4, and so the cell on the order form needs to automatically work out that I need to order 4...

Hoping someone can help!

**Please note** I have posted this previously, but was having difficulty with the forum cropping my code, so the post is confusing. I decided it best to start from scratch.</d18,d18,(vlookup(a18,quotetable,5,0)))
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi - is cell D18 the product pack size?

If so maybe:

=CEILING(VLOOKUP(A18,quotetable,5,0),D18)
 
Upvote 0
Hi - is cell D18 the product pack size?

If so maybe:

=CEILING(VLOOKUP(A18,quotetable,5,0),D18)

Hey! Thanks, that's a great start as it does do what I asked. It does, however, give me '#N/A' on the items that have not been quoted - so I need to add an IF Statement that tells it to display nothing if nothing is found.. I'm trying this, but still getting the #N/A:
Code:
=IF(VLOOKUP(A18,QUOTETABLE,5,0)="",0,CEILING(VLOOKUP(A18,QUOTETABLE,5,0),D18))
 
Upvote 0
You could try:

=IFERROR(CEILING(VLOOKUP(A18,quotetable,5,0),D18),0)
 
Upvote 0
Hey! Thanks, that's a great start as it does do what I asked. It does, however, give me '#N/A' on the items that have not been quoted - so I need to add an IF Statement that tells it to display nothing if nothing is found.. I'm trying this, but still getting the #N/A:
Code:
=IF(VLOOKUP(A18,QUOTETABLE,5,0)="",0,CEILING(VLOOKUP(A18,QUOTETABLE,5,0),D18))

got it!

Code:
=IFERROR(CEILING(VLOOKUP(A18,QUOTETABLE,5,0),D18),0)

Thanks for your help!
 
Upvote 0

Forum statistics

Threads
1,216,149
Messages
6,129,149
Members
449,488
Latest member
qh017

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