Profit per Client

Excel Formulas › Freelance & Agency

All versionsSUMIF

Revenue alone hides which clients are worth keeping. Profit per client subtracts the cost to serve from their revenue — SUMIF totals each side by client for a true ranking.


Quick formula: a client's profit:
=SUMIF(client, name, revenue) - SUMIF(client, name, cost)
Total revenue from a client minus total cost to serve them gives profit; rank to find your best.

Functions used (tap for the full reference guide):

The example

$18k revenue, $11k cost.

AB
1ItemValue
2Revenue18000
3Cost11000 → $7,000

The formula

The formula:

=SUMIF(client, name, revenue) - SUMIF(client, name, cost) // revenue − cost to serve

How it works

How it works:

  1. SUMIF(client, name, revenue) totals what a client paid; the second SUMIF totals what they cost (hours × rate, plus expenses).
  2. Subtract for profit per client — the number that reveals hidden losers.
  3. Divide by revenue for a margin: profit / revenue.
  4. Rank clients by profit to focus retention, raise prices, or fire the unprofitable ones.

The biggest client isn’t always the best. A high-revenue client who demands endless revisions can earn less profit than a smaller, low-maintenance one. Computing profit (not revenue) per client — and the margin — routinely reorders the “top clients” list and changes who you cultivate.

Try it: interactive demo

Live demo

Client revenue and cost to serve.

Profit · Margin

Variations

Profit margin

As a percent:

=profit / SUMIF(client, name, revenue)

Cost to serve

Hours + expenses:

=SUMIF(client, name, hours) * rate + expenses

Rank clients

Best first:

=RANK(client_profit, all_profits, 0)

Pitfalls & errors

Count all costs. Include unbilled hours and overhead, not just direct expenses.

Revenue ≠ profit. The biggest client can be a low-margin one.

Consistent names. SUMIF needs client names spelled identically.

Practice workbook

📊
Download the free Profit per Client practice workbook
A profit-per-client sheet with the margin, cost-to-serve, and ranking variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate profit per client in Excel?
Subtract cost to serve from revenue with SUMIF: =SUMIF(client, name, revenue) - SUMIF(client, name, cost).
Why is profit per client better than revenue?
A high-revenue, high-maintenance client can earn less profit than a smaller one. Profit (and margin) reorder your real top clients.
How do I rank clients by profit?
Use =RANK(client_profit, all_profits, 0) to sort best first.

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: Profit per product · SUMIF if contains · Profit margin & markup

Function references: SUMIF