How to split a bill in Google Sheets or Excel
Put one row per receipt line and one column per person, with a 1 (or a unit count) in each person's cell for the lines they share. A helper column divides each price by the number of shares; SUMPRODUCT then adds up each person's items, tax and tip are shared by ROUND formulas, and the payer's total is the receipt total minus everyone else's, so the cents always add up. The same formulas work in Google Sheets and Excel.
Updated
What does the sheet look like?
Seven receipt lines for three housemates, Sam, Lou and Kai, from a grocery delivery Kai paid for. Column C is 1 for taxed lines and 0 for untaxed. Columns D to F are shares: a 1 means "shared equally", and a bigger number means more units (Lou took two of the three oat milks). Column G is the price of one share.
| A Item | B Price | C Taxed | D Sam | E Lou | F Kai | G Per share | |
|---|---|---|---|---|---|---|---|
| 2 | Paper towels, 8 rolls | 19.99 | 1 | 1 | 1 | 1 | =IF(SUM(D2:F2)=0, 0, B2/SUM(D2:F2))in G2, filled down to G8 |
| 3 | Ground coffee | 14.49 | 0 | 1 | 0 | 0 | |
| 4 | Eggs, 18 ct | 5.29 | 0 | 1 | 1 | 0 | |
| 5 | Dish soap, 2-pack | 7.98 | 1 | 0 | 1 | 1 | |
| 6 | Steak, 2 lb | 23.47 | 0 | 0 | 0 | 1 | |
| 7 | Oat milk, 3-pack | 9.99 | 0 | 0 | 2 | 1 | |
| 8 | Bananas | 1.89 | 0 | 1 | 1 | 1 |
Put the receipt's own figures in three input cells: B15 tax on the receipt (1.75), B16 tip (6.00) and B17 receipt total (90.85).
What are the formulas?
Type these in column D and fill right to column F, except where noted. The $ signs keep the price, taxed and per-share columns fixed while the person column moves.
| Row | Label | Formula in D (fill right to F) |
|---|---|---|
| 10 | Items | =SUMPRODUCT($G$2:$G$8, D$2:D$8) |
| 11 | Taxed items | =SUMPRODUCT($G$2:$G$8, $C$2:$C$8, D$2:D$8) |
| 12 | Tax | =IF(SUM($D$11:$F$11)=0, 0, ROUND($B$15*D11/SUM($D$11:$F$11), 2)) |
| 13 | Tip | =ROUND($B$16*D10/SUM($D$10:$F$10), 2) |
| 14 | Total | =ROUND(D10+D12+D13, 2) in D14 and E14; in F14, for the payer: =$B$17-D14-E14 |
Two check cells catch most mistakes: =ROUND(SUM(B2:B8)-SUM(D10:F10), 2) shows any line nobody was assigned (it should be 0), and =ROUND(SUM(D14:F14)-B17, 2) should also be 0.
Why SUMPRODUCT, and does it work the same in Excel?
SUMPRODUCT multiplies matching entries in two or more ranges and adds the results, which is exactly "price of a share × number of shares, added up over every line". Google's help page describes it as taking equally sized arrays or ranges, and Microsoft's says the arrays must have the same dimensions or Excel returns #VALUE!, so keep every range to the same rows (2 to 8 here). Microsoft also notes that SUMPRODUCT treats non-numeric entries as zeros, so in Excel a blank share cell counts as "not this person"; typing 0 makes the sheet easier to read in either program.
Row 11 multiplies three ranges: per-share price, the taxed flag and the person's shares. Untaxed lines have a 0 in column C, so they drop out, and the tax is shared only over taxed lines. That is the method in splitting tax on a receipt.
Why does the total come out a cent off without the fix?
Because each person's tax and tip are rounded separately. On this receipt Lou's and Kai's tax shares are each $0.6666..., and ROUND sends both up to $0.67 (Google's help page says the digit after the rounding position decides it, 5 or more rounding up; Microsoft's page shows ROUND(A1, 2) turning 23.7825 into 23.78). With Sam's $0.42 that is $1.76 of tax against $1.75 on the receipt. If every total used the ROUND formula, the three would be $26.61, $22.75 and $41.50, adding up to $90.86, one cent over.
The fix in F14 makes the payer's total the receipt total minus the others, so Kai's comes out at $41.49 and the sheet adds up to $90.85 exactly. The payer absorbs the rounding, which is the usual courtesy. The check cell turns this into a rule: if it is not 0, something is wrong.
How do the sheet's answers compare with a calculator?
Within a cent, and the cent moves. The same receipt in our engine, which rounds each line with the largest-remainder method instead of rounding person totals, gives this:
| Line | Price | Taxed | Who |
|---|---|---|---|
| Paper towels, 8 rolls | $19.99 | Yes | Everyone |
| Ground coffee | $14.49 | Sam | |
| Eggs, 18 ct | $5.29 | Sam, Lou | |
| Dish soap, 2-pack | $7.98 | Yes | Lou, Kai |
| Steak, 2 lb | $23.47 | Kai | |
| Oat milk, 3-pack | $9.99 | Lou 2, Kai | |
| Bananas | $1.89 | Everyone | |
| Subtotal | $83.10 | ||
| Tax | $1.75 | ||
| Tip | $6.00 | ||
| Total | $90.85 |
| Person | Items | Tax | Tip | Total |
|---|---|---|---|---|
| Sam | $24.44 | $0.42 | $1.76 | $26.62 |
| Lou | $20.58 | $0.67 | $1.49 | $22.74 |
| Kai (paid) | $38.08 | $0.66 | $2.75 | $41.49 |
| Check | $83.10 | $1.75 | $6.00 | $90.85 |
Kai paid, so Sam owes $26.62, Lou owes $22.74.
How do you test the sheet before trusting it?
- One person, one line. Give a $10.00 untaxed line only to Sam: Sam's items should rise by exactly 10.00, nobody else's should move.
- Everything shared. Put a 1 in every share cell: the three item totals should be equal (or a fraction of a cent apart).
- No tax. Set C2:C8 to 0 and B15 to 0: row 12 should show 0, not an error.
- Unassigned line. Clear a row's shares: the first check cell should show that line's price.
- Totals. The second check cell should be 0 every time.
To add a person, insert their column before the payer's column F, so every range that ends at F grows with it, and subtract the new person in the payer's F14 formula. To add lines, insert rows between rows 2 and 8 so the ranges grow with them.
When is a spreadsheet the wrong tool?
When you split the same kind of receipt every week, or the group is bigger than four. A sheet is great for a one-off or for checking the maths. For a regular split, the receipt split calculator does the same thing in a browser with no formulas to break, and BulkBuddy scans the receipt and texts everyone their share.
Frequently asked questions
What formula splits a bill by item in Google Sheets?
Divide each price by its number of shares in a helper column, then use =SUMPRODUCT(per_share_range, person_range) for each person. The same formula works in Excel.
How do I split tax only on taxed items in a spreadsheet?
Add a 1/0 taxed column and include it in a second SUMPRODUCT, then share the receipt's tax with =ROUND(tax*person_taxed/total_taxed, 2).
Why is my spreadsheet split a cent off?
Rounding each person separately can leave a cent over or under. Make the payer's total the receipt total minus everyone else's, and add a check cell that should always be 0.
Does SUMPRODUCT work in both Google Sheets and Excel?
Yes. Both programs document it as multiplying matching entries of equally sized ranges and summing the products.
Sources
- SUMPRODUCT, Google Docs Editors Help (no date shown; read 19 Nov 2026)
- ROUND function, Google Docs Editors Help (no date shown; read 19 Nov 2026)
- SUMPRODUCT function, Microsoft Support (no date shown; read 19 Nov 2026)
- ROUND function, Microsoft Support (no date shown; read 19 Nov 2026)
Related
Tick who had each item; tax, tip, fees and discounts shared to the cent.
Bill split calculatorOne total split evenly, by percentage or by exact amounts, with tax and tip.
Split a bill with odd centsWhy $100 / 3 is 33.34 + 33.33 + 33.33, and who gets the extra cent.
Split tax on a receiptOnly the people who bought taxed items should pay the tax.
Split a receipt by itemOne person's, everyone's or by units, then tax and tip: the full method.
BulkBuddy vs SplitwiseSplit groceries with a partner50/50, by income, or by item, with a worked 60/40 weekly shop.
Split groceries in a shared houseA staples kitty plus itemized big shops, for five or more housemates.
Scan the receipt, tap who had what, and send everyone their exact share. Free on iPhone and Android, no account needed to try it.
Download on the App StoreGet it on Google Play