Dry Cleaner: Ticket Total From Piece Counts And A Price List

Excel Formulas › Dry Cleaner

All versions

A dry-cleaning ticket is a list of garments with a count next to each: three shirts, two pairs of pants, one suit. The total is every count times its price, added up. You can write that as a line-total column and a SUM, or you can let SUMPRODUCT do the multiply-and-add in one cell.


Quick formula: Price column times quantity column, summed in one function:
=SUMPRODUCT(B2:B5,C2:C5)

Three shirts at $3.25, two pants at $6.50 and one suit at $16.00 is $9.75 + $13.00 + $16.00 = $38.75. The blouse row has a price but a quantity of 0, so it adds nothing.

Functions used (tap for the full reference guide):

The example

One ticket, four price-list rows. The line-total column is shown for checking, but SUMPRODUCT does not need it.

ABCD
1ItemPriceQtyLine total
2Shirt (laundered)$3.253$9.75
3Pants$6.502$13.00
4Suit (2-piece)$16.001$16.00
5Blouse$6.950$0.00
6Ticket total$38.75

The formula

The whole ticket in one cell:

=SUMPRODUCT(B2:B5,C2:C5) // each price times its quantity, then added

How it works

SUMPRODUCT pairs the two ranges row by row:

  1. It multiplies B2*C2, B3*C3, B4*C4 and B5*C5 — $9.75, $13.00, $16.00 and $0.00.
  2. Then it adds the four products: $38.75.
  3. The two ranges must be the same size. Add a garment to the price list and extend both ranges together, or use a whole-column Table reference.
  4. Rows with a 0 quantity contribute nothing, so a full price list can sit on every ticket with only the counted items mattering.

If you prefer the visible line-total column, keep it: =B2*C2 filled down and =SUM(D2:D5) gives the same $38.75 and is easier for a new counter clerk to audit.

Try it: interactive demo

Interactive

Enter the piece counts for a ticket; the prices are the example list.

Variations

Add a per-piece surcharge

Starch, rush or fragile handling that applies per piece: add the surcharge to every price inside the SUMPRODUCT.

=SUMPRODUCT(B2:B5+Surcharge,C2:C5)

Price list on another sheet

Look each item's price up from a master list, then multiply by the count. XLOOKUP spills the prices, SUMPRODUCT does the rest.

=SUMPRODUCT(XLOOKUP(A2:A5,Prices!A:A,Prices!B:B),C2:C5)

Pitfalls & errors

A text price ("$3.25" typed with the dollar sign as text) makes SUMPRODUCT treat that row as zero with no error. Keep prices numeric and use currency formatting for the dollar sign.

Put the full price list on every ticket template with quantities defaulting to 0. The clerk only types counts, and the total is right every time.

Mismatched range sizes — B2:B5 against C2:C6 — return #VALUE!. When you add a garment, extend both ranges.

Practice workbook

📊
Download the free Dry Cleaner: Ticket Total From Piece Counts And A Price List practice workbook
Edit the yellow price and quantity cells; line totals and the ticket total recalculate.

Frequently asked questions

Why SUMPRODUCT instead of a line-total column and SUM?
Both are correct. SUMPRODUCT saves a column and is handy on a compact ticket or a summary cell. The line-total column is easier to audit at the counter. Many shops use both: the column for the printed ticket, SUMPRODUCT for the daily summary.
Can SUMPRODUCT handle three columns, like price, quantity and a discount factor?
Yes. Add a third range of the same size: =SUMPRODUCT(B2:B5,C2:C5,D2:D5) multiplies all three row by row and sums the result.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Dry Cleaner: Machine Loads And Hours · Invoice With Tax Total · Laundromat: Wash-Dry-Fold Price

Function references: SUMPRODUCTSUM