Excel Guides

How to Audit Freight Allocation by Weight in Excel

The $1,000 freight charge ties to the receipt, but the report puts $500 on each item. One line weighs 10 kg and the other weighs 90 kg. If the approved policy is to allocate by total line weight, the shares should be $100 and $900. The same receipt total can make a loss-making item look profitable.

Check the receipt total and the allocation separately

Start with the freight invoice or receipt charge, the receipt lines and the current cost report. Match the charge by receipt ID and the current allocation by receipt line ID. Group multiple charge rows to one receipt total only after checking the charge type, currency and policy. Keep every eligible receipt line in the weight denominator, including any line whose contribution you are not reporting.

Some landed-cost systems support a weight basis. If yours has one, compare the posted allocations with the approved setup and the underlying item weights before changing how the report calculates them. Use the basis your team actually approved. Microsoft Dynamics 365 documents cost apportionment methods.

Recalculate one receipt in Excel

The following rows are synthetic and represent receipt RC-101. Paste them at A1 and enter the freight charge of 1000 in L2. The weight is the total for the line in kilograms. Use a single currency and cost basis. The example assumes that all units on both lines were sold and uses contribution before other expenses.

Line IDSKULine weight (kg)Purchase costNet salesReported freight
LN-1-001VAL-10102001000500
LN-1-002BRK-9090200800500

Use G1:J1 for Weight-based freight, Freight change, Reported contribution, and Weight-based contribution. Enter the four formulas in order in G2:J2 and fill through row 3. The first formula holds the allocation for review if the invoice total is missing or nonnumeric, or if any weight is missing, nonnumeric or nonpositive.

=IF(OR(NOT(ISNUMBER($L$2)),COUNT($C$2:$C$3)<>ROWS($C$2:$C$3),MIN($C$2:$C$3)<=0),"Review",$L$2*C2/SUM($C$2:$C$3))
=IF(ISNUMBER(G2),G2-F2,"Review")
=E2-D2-F2
=IF(ISNUMBER(G2),E2-D2-G2,"Review")

In L3 and L4, check the sum of the two allocations against the receipt. Both gaps should be zero. Retain full precision during the calculation. If you post rounded line amounts, use your team’s rounding rule and reconcile those posted amounts back to the charge.

=L2-SUM(F2:F3)
=IF(COUNT(G2:G3)<>ROWS(G2:G3),"Review",L2-SUM(G2:G3))
SKUReported freightFreight by weightReported contributionContribution by weight
VAL-10$500$100$300$700
BRK-90$500$900$100−$300
Total$1,000$1,000$400$400

For BRK-90, use C3 for the 90 kg line weight and C2:C3 for the 100 kg denominator. The resulting $900 freight in G3 takes contribution from $100 in I3 to −$300 in J3. The receipt still has $400 combined contribution, so a check at receipt level alone misses the change.

Repeat the check across receipts

In Power Query, group receipt lines by receipt ID to get total weight, then merge that total and the checked freight charge back into the line table. Validate one row per receipt and line key on the relevant sides of each join. Keep missing weights, conflicting cost policies and unmatched IDs in an exception view. If only part of a lot sold, use the partial-lot profit and inventory check before applying a contribution formula.

In Jolene.pro, ask which receipts tie in total, then ask which lines disagree with the approved policy and request the original weight, freight and current allocation cells. In a live check on the larger synthetic workbook, all six receipt totals matched, covering $5,200 of freight. An independent review of 30 report rows confirmed that result. The weight allocation and contribution formulas above were checked separately in the spreadsheet. Save the comparison for the next receipt export after validating the source rows.

Find more worked examples in Workbook Studies.

1 comment

Leave a comment