How to Add Cement Deliveries in Excel When Units Differ
One cement delivery arrives as 40 bags, another as 1.5 tonnes and a third as 600 kg. Adding 40 + 1.5 + 600 gives a number with no unit. For the East site, those three deliveries total 4,100 kg of CEM-A once you apply the documented bag size. Four other East receipts for the same material still need review.
This is a receipt check for a construction materials register. A typical cement stock register records deliveries by lot and tracks issues separately. Use the check below before rolling receipts into a stock report. A closing stock balance also needs opening stock, issues and any adjustments.
Keep the delivery quantity and its unit
Synthetic example. Copy the five receipt columns into A1 on a sheet named Receipts. Use one row per accepted delivery line and keep its receipt reference. Leave the quantity for R106 (D7) empty. The dash in the table marks that empty cell. Here the codes identify material grades. Map supplier-specific packaging to a distinct material or unit code when it changes the factor.
| Receipt | Site | Material | Quantity | Unit |
|---|---|---|---|---|
| R101 | East | CEM-A | 40 | bag |
| R102 | East | CEM-A | 1.5 | t |
| R103 | East | CEM-A | 600 | kg |
| R104 | East | CEM-A | 4 | pallet |
| R105 | East | CEM-A | 3 | drum |
| R106 | East | CEM-A | — | kg |
| R107 | East | CEM-B | 8 | bag |
| R108 | West | CEM-A | 12 | bag |
| R109 | East | CEM-A | 2 | pack |
On a sheet named Rates, paste this table at A1. One metric tonne is 1,000 kg. For bags, drums or pallets, take net material weight from the delivery or item specification. The sample bag sizes are specific to these fictional material codes. The example includes a missing pallet rule, conflicting drum rules and a zero pack factor.
| Material | Unit | kg per unit |
|---|---|---|
| CEM-A | bag | 50 |
| CEM-A | t | 1000 |
| CEM-A | kg | 1 |
| CEM-A | drum | 95 |
| CEM-A | drum | 100 |
| CEM-B | bag | 25 |
| CEM-A | pack | 0 |
Check the match before multiplying
Add four columns to Receipts with these headers in F1:I1: Matches, Kg per unit, Status and Accepted kg. Enter these formulas in F2, G2, H2 and I2 in that order, then fill them through row 10. Store quantities and factors as numbers and use consistent codes without wildcard characters. The sample ranges end at the last data row, so extend them or use Excel Tables as data grows.
=COUNTIFS(Rates!$A$2:$A$8,C2,Rates!$B$2:$B$8,E2)
=IF(F2=1,SUMIFS(Rates!$C$2:$C$8,Rates!$A$2:$A$8,C2,Rates!$B$2:$B$8,E2),"")
=IF(OR(B2="",C2="",E2="",NOT(ISNUMBER(D2)),D2<=0),"Check receipt",IF(F2=0,"Missing factor",IF(F2>1,"Duplicate factor",IF(G2<=0,"Invalid factor","OK"))))
=IF(H2="OK",D2*G2,"")
A lookup alone can pick the first drum rule. COUNTIFS makes that conflict visible, and SUMIFS retrieves the factor only after one rule matches. Use this formula for positive receipt lines. Keep returns and stock adjustments in their own workflow, and review error cells from the source export before using its totals.
Read the subtotal and exception count together
=SUMIFS(I2:I10,B2:B10,"East",C2:C10,"CEM-A",H2:H10,"OK")
=COUNTIFS(B2:B10,"East",C2:C10,"CEM-A",H2:H10,"<>OK")
| Receipt | Status | Accepted kg |
|---|---|---|
| R101 | OK | 2,000 |
| R102 | OK | 1,500 |
| R103 | OK | 600 |
| R104 | Missing factor | — |
| R105 | Duplicate factor | — |
| R106 | Check receipt | — |
| R107 | OK | 200 |
| R108 | OK | 600 |
| R109 | Invalid factor | — |
East CEM-A: 4,100 kg across three checked receipts, with four exceptions. The 2,000 kg in Receipts!I2 comes from 40 bags in Receipts!D2 at 50 kg in Rates!C2. The 1,500 kg in Receipts!I3 comes from 1.5 tonnes at 1,000 kg per tonne. The two drum rules are in Rates!A5:C6. Keep R105 open until the receipt identifies the correct packaging. East CEM-B has 200 kg and West CEM-A has 600 kg. Both belong in separate totals. Also scan the full status column for any receipt with no site or material, because that row has no subtotal to appear under.
Use the same check on the next export
If you already track base quantities in your inventory system, export that field alongside the original quantity and unit. Business Central’s item unit table, for example, defines a factor per item and unit. In Power Query, group the factor table by Material and Unit first and count its rows. Then merge into receipts on both fields and calculate kg only when the factor is unique and positive. This prevents duplicate factors from expanding a receipt into two rows.
To review a register with Jolene.pro, try asking: “Group these receipts by site and material in kg. Use the Rates sheet by material and unit. List every row with a missing quantity or an unusable factor and show the receipt cells and rate cells behind each exception. Keep exceptions outside the subtotal.” Compare the answer with the source and the checked subtotal before reusing the question on the next delivery register. The synthetic figures were verified independently. A live Jolene.pro result was not verified.
If the next step is checking which quantities were billed, see how to compare purchase orders, receipts and invoices in Excel.
1 comment