Formula assistance - identifying full or part counts

CaptainGravyBum

Board Regular
Joined
Dec 1, 2023
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Sorry, this title doesn't really explain anything, I'll try to explain my problem here.

I've had quite a lot of help from this forum to find full pallets on unique orders for an order information spreadsheet I have, which I'm grateful for. The last problem that was solved has ended up creating a new challenge.

From the sheet below, I now have unique order numbers calculating how many full pallets were dispatched based on the order count total (column N). This example is returning 3.64 full pallets were sent out, I need to get this so if there are part pallets, column G holds the full pallet qty and the remainder is used to identify how many cartons or pieces were sent in addition. In this example, it should be 3 full pallets and 14 cartons.

Book1
ABCDEFGHIJKLMNOP
1Part numberOrder numberOrder IDCarton QtyPallet QtyCountPalletsCartonsPiecesFull unitsOrder Count TotalPieces
2PBB12T20559510963425550350     0 
3PBB12T20559510963425550550     0 
4PBB12T20559510963425550550     0 
5PBB12T205595109634255505503.64   20000 
Sheet1
Cell Formulas
RangeFormula
G2:G5G2=IF(N2="","",IFERROR(IF(AND(N2>=E2,N2/E2>0),N2/E2,""),""))
H2:H5H2=IFERROR(IF(INT(M2)=0,"",INT(M2)),"")
I2:I5I2=IF(O2=0,"",O2)
M2:M5M2=IFERROR(IF(N2<F2,F2/E2,""),"")
N2N2=IF(COUNTIFS($A:$A,A2,$B:$B,B2)=COUNTIFS($A2:$A$2,A2,$B2:$B$2,B2), SUMIFS(F:F,A:A,A2,B:B,B2),"")
O2:O5O2=IF(C2<>"",IFERROR(IF(N2<D2,N2,IF(OR(H2="",N2-P2=0),0,(N2-P2))),0),"")
P2:P5P2=IFERROR((H2*D2),"")
N3:N5N3=IF(COUNTIFS($A:$A,A3,$B:$B,B3)=COUNTIFS($A$2:$A3,A3,$B$2:$B3,B3), SUMIFS(F:F,A:A,A3,B:B,B3),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I5Expression=I2<>""textNO
I2:I5Expression=$A2<>""textNO
H2:H5Expression=H2<>""textNO
H2:H5Expression=$A2<>""textNO
G2:G5Expression=G2<>""textNO
G2:G5Expression=$A2<>""textNO
J6:J8,L6:M6,M2:P5Expression=J2<>""textNO
J6:J8,L6:M6,M2:P5Expression=$A2<>""textNO
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,

in column H5, try this formula :

Excel Formula:
=mod(N5,f5)/d5
Rgds
Rob
 
Upvote 0
(and you can correct your formula in col G by adding INT() to it like thus to give you only the number of pallets) :

Excel Formula:
=IF(N3="","",IFERROR(IF(AND(N3>=E3,N3/E3>0),INT(N3/E3),""),""))
 
Upvote 0
Hi, forgive me, I missed off the last number of pieces, so heres the complete list :

Book1
CDEFGHIJKLMNO
1PalletCartonPcs
22555031412001
32555022 1150
4
Sheet1
Cell Formulas
RangeFormula
G2:G3G2=IF(N2="","",IFERROR(IF(AND(N2>=E2,N2/E2>0),INT(N2/E2),""),""))
H2:H3H2=IF(INT(MOD(N2,E2)/D2)>0,INT(MOD(N2,E2)/D2),"")
I2:I3I2=IF(MOD(N2,D2) >0,MOD(N2,D2),"")
 
Upvote 0
Solution
you're welcome, glad to have been able to help.

Rob
 
Upvote 0

Forum statistics

Threads
1,224,875
Messages
6,181,513
Members
453,050
Latest member
Obil

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