Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi, Can someone help with the below formula? Thanks

If less than 42 carton = 1 and divide greater than 42 carton, divide by 42 to get number of pallets required.
Cartons Per Pallet
42
Less than 42
1
Customer
No. Ctn
No. Pallets
Answer
Customer 1
8
1
Customer 2
48
1.14
Customer 3
16
1
Customer 4
13
1

<tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

Format result cells to number of decimal places as desired:


Book1
ABCDEF
1CustomerNo. CtnNo. PalletsCartons Per Pallet42
2Customer 1811
3Customer 2481.1428571431.14285714
4Customer 31611
5Customer 41311
6Customer 51543.6666666673.66666667
7
8Cell ReferenceHard-coded
Sheet370
Cell Formulas
RangeFormula
C2=MAX(1,B2/F$1)
D2=MAX(1,B2/42)
 
Upvote 0
Hi,

Format result cells to number of decimal places as desired:

ABCDEF
1CustomerNo. CtnNo. PalletsCartons Per Pallet42
2Customer 1811
3Customer 2481.1428571431.14285714
4Customer 31611
5Customer 41311
6Customer 51543.6666666673.66666667
7
8Cell ReferenceHard-coded

<colgroup><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet370

Worksheet Formulas
CellFormula
C2=MAX(1,B2/F$1)
D2=MAX(1,B2/42)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Thank for your reply.
would it be possible to come up with a formula on below - base on 42 Cartons per pallet?

Answer
CustomerNo. CtnNo. Full PalletsNo. PartsNo. Full PalletsNo. Parts
Customer 18
00.190
Customer 248 10.143
Customer 386 20.048
Customer 413 00.310
<colgroup><col width="129" style="width: 97pt; mso-width-source: userset; mso-width-alt: 4717;"> <col width="64" style="width: 48pt;"> <col width="112" style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="64" style="width: 48pt;"> <col width="104" style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <tbody> </tbody>
 
Upvote 0
Sure, your requirements have changed:


Book1
ABCDEFG
1CustomerNo. CtnNo. Full PalletsNo. PartsCartons Per Pallet42
2Customer 1800.190476
3Customer 24810.142857
4Customer 38620.047619
5Customer 41300.309524
6Customer 515430.666667
Sheet370
Cell Formulas
RangeFormula
C2=INT(B2/G$1)
D2=MOD(B2/G$1,1)
 
Upvote 0
Sure, your requirements have changed:

ABCDEFG
1CustomerNo. CtnNo. Full PalletsNo. PartsCartons Per Pallet42
2Customer 1800.190476
3Customer 24810.142857
4Customer 38620.047619
5Customer 41300.309524
6Customer 515430.666667

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet370

Worksheet Formulas
CellFormula
C2=INT(B2/G$1)
D2=MOD(B2/G$1,1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thank you so much. That works great.
 
Upvote 0

Forum statistics

Threads
1,214,409
Messages
6,119,339
Members
448,888
Latest member
Arle8907

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