How to Audit Combined Shipping Charges in Excel
Two shipping charges on one order can be correct. Two separate groups may each have an approved fee. To find what the customer is still owed, compare the actual checkout charges with the approved fees for that order, then subtract the shipping portion of refunds that have posted.
Start with the platform’s order, shipping and refund records. Shopify’s shipping-profile documentation shows when rates from different profiles can be combined at checkout. Use the rule that applied when the customer checked out. A warehouse packing decision alone does not establish the fee the customer agreed to.
Build a four-order practice audit
The following records are synthetic and use USD. Create sheets named Checkout, Fees and Refunds and paste each block into A1. If everything lands in column A, use Data > Text to Columns with comma as the delimiter. Checkout contains incremental shipping charges, with one row per charge line. Fees contains one approved charge per order and shipping group. Refunds contains only shipping portions. Check those assumptions for your export. An order shipping total repeated on product rows needs to be reduced to one order total before summing.
Checkout
Order,Line,Group,Charged USD
S101,L1,A,6
S101,L2,A,11
S102,L3,A,11
S102,L4,B,9
S103,L5,A,4
S103,L6,A,12
S104,L7,,7
S104,L8,,10
Fees
Order,Group,Approved USD
S101,A,11
S102,A,11
S102,B,9
S103,A,12
Refunds
Order,Refund ID,Status,Shipping USD
S101,R1,Posted,2.50
S103,R2,Posted,4.00
S101,R3,Pending,3.50
Match group records before calculating a difference
In Checkout, add Check as the E1 header. Enter this in E2 and fill through E9. Every charge line needs exactly one approved fee for its order and group.
=IF(AND(C2<>"",COUNTIFS(Fees!$A$2:$A$5,A2,Fees!$B$2:$B$5,C2)=1),"Matched","Review")
In Fees, add Check as the D1 header. Enter this in D2 and fill through D5. It catches approved groups with no checkout line for the same order.
=IF(AND(B2<>"",COUNTIFS(Checkout!$A$2:$A$9,A2,Checkout!$C$2:$C$9,B2)>0),"Matched","Review")
On a fourth sheet named Audit, use the headers Order, Charged, Status, Approved, Posted refund and Remaining difference in A1:F1. Put S101 through S104 in A2:A5. Paste the five formulas below into B2:F2, one per cell, and fill through row 5. Count the approved fee once by summing it from Fees. Copying it onto every matching checkout line would count the same fee twice on S101 and S103.
=SUMIF(Checkout!$A$2:$A$9,A2,Checkout!$D$2:$D$9)
=IF(COUNTIF(Checkout!$A$2:$A$9,A2)=0,"Review",IF(COUNTIFS(Checkout!$A$2:$A$9,A2,Checkout!$E$2:$E$9,"Review")+COUNTIFS(Fees!$A$2:$A$5,A2,Fees!$D$2:$D$5,"Review")>0,"Review","Ready"))
=IF(C2="Ready",SUMIF(Fees!$A$2:$A$5,A2,Fees!$C$2:$C$5),"")
=SUMIFS(Refunds!$D$2:$D$4,Refunds!$A$2:$A$4,A2,Refunds!$C$2:$C$4,"Posted")
=IF(C2="Ready",ROUND(B2-D2-E2,2),"")
| Order | Charged | Status | Approved | Posted refund | Remaining difference |
|---|---|---|---|---|---|
| S101 | $17.00 | Ready | $11.00 | $2.50 | $3.50 |
| S102 | $20.00 | Ready | $20.00 | $0.00 | $0.00 |
| S103 | $16.00 | Ready | $12.00 | $4.00 | $0.00 |
| S104 | $17.00 | Review | Blank | $0.00 | Blank |
On S101, Checkout rows 2 and 3 charged $17.00 against $11.00 in Fees row 2. Refunds row 2 reduces the $6.00 difference to $3.50. The pending refund in Refunds row 4 does not reduce it yet. S102 has two approved groups. S103 already received its $4.00 shipping refund. S104 needs a group assignment and an approved fee before its $17.00 can be assessed.
Before applying the check to a real export, confirm that the same cutoff applies to all three tables. Reconcile duplicate checkout and refund IDs, missing or unrecognized refund statuses, and missing amount fields. Review negative differences separately. In Power Query, group actual charges and approved fees separately before joining by order, and route missing or multiple group matches to an exception table.
In Jolene.pro, ask which orders still have a positive shipping difference after posted refunds, which orders lack a confirmed fee, and which source cells explain each result. The synthetic formulas were checked independently. A live Jolene.pro result was not verified.
1 comment