Rounding Question

AFGM

New Member
Joined
Aug 22, 2023
Messages
2
Office Version
  1. 365
I need a formula that will adjust two numbers for shipping quantities.

Cell 1: The first formula needs to make sure the number is divisible by the quantity allowed to be shipped per palled (i.e 10 so the number would need to be divisible by 10, if the number we need to order is 29, it rounds up to 30) - Have this formula

Cell 2: The second formula is the number of pallets that can be shipped per container (i.e 8 pallets fit in one container, so if the first formula returns a number of 9, it would need to be round down to 8 or if the number is 15 it needs to be round up to 16), need this formula to adjust the formula in cell 1

Any idea how to structure this?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

CELL 1:
If you have 29 in A1, enter in cell B1
=CEILING(A1,10)
this will give your 30

CELL 2:
I understand that you want to bring it to multiples of 8 pallets
in you example it is not clear what you want if number is 14
at what number do you round down vs round up ?


Regards
Eric
 
Upvote 0
Hi,

CELL 1:
If you have 29 in A1, enter in cell B1
=CEILING(A1,10)
this will give your 30

CELL 2:
I understand that you want to bring it to multiples of 8 pallets
in you example it is not clear what you want if number is 14
at what number do you round down vs round up ?


Regards
Eric
can you set a range? If its within 4 (i.e 12) round down, if its over 4 round up?
 
Upvote 0
Your rounding formula will be based upon the trigger point of how many pallets over 8 will cause another container to be loaded?
Once that number is known the rounding formula is easy to figure out.
1 - pallet (Yes/No) - container
2 - pallets
3 - pallets
...
8 - pallets?
 
Upvote 0
Try this:

Book1
ABC
1quantitypalletcontainer
2108
32930
49091
5130132
Sheet1
Cell Formulas
RangeFormula
B3:B5B3=ROUNDUP(A3/$B$2,0)
C3:C5C3=INT(B3/$C$2)+(MOD(B3,$C$2)>4)
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,267
Members
449,093
Latest member
Vincent Khandagale

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