Allocate a Shared Cost by Weight

Excel Formulas › Business

All versionsRatio

Split a shared cost — rent, utilities, overhead — across departments by some driver like headcount or square footage. Each share is that department’s weight divided by the total, times the cost.


Quick formula: for a cost in $E$1, this department’s weight B2, total weights $B$2:$B$10:
=$E$1 * B2 / SUM($B$2:$B$10)
Weight over total weight gives the proportion; times the cost gives the allocated share. Shares sum to the full cost.

Functions used (tap for the full reference guide):

The example

$12,000 rent split by headcount.

ABC
1DeptHeadcountShare
2Sales10$6,000
3Ops6$3,600
4Admin4$2,400

The formula

Each department’s share of the cost:

=$E$1 * B2 / SUM($B$2:$B$4) // 10/20 × 12,000 = 6,000

How it works

Allocate in proportion to the chosen driver:

  1. Pick an allocation driver — headcount, floor area, revenue, usage.
  2. Each share = cost × thisWeight / SUM(allWeights). Lock the cost and the total-weight range with $.
  3. The shares always add back to the full cost — a good check.
  4. Swap the weight column to re-allocate by a different driver without touching the formula.

Verify it ties out: =SUM(shares) should equal the original cost exactly. If rounding each share makes it off by a cent, allocate to the largest department last as a balancing figure.

Try it: interactive demo

Live demo

Cost + weights (one per line).

Variations

By percentage weights

If weights already sum to 100%:

=$E$1 * weight%

Equal split

Same share each:

=$E$1 / COUNT(depts)

Check it ties out

Should equal the cost:

=SUM(shares)

Pitfalls & errors

Lock the total. Use SUM($B$2:$B$10) absolute, or each row divides by a shifting range and shares won’t add up.

Rounding drift. Rounded shares may not sum exactly to the cost; balance the remainder on one line.

Zero total weight. If all weights are blank/zero, the formula divides by zero — ensure at least one positive weight.

Practice workbook

📊
Download the free Allocate a Shared Cost by Weight practice workbook
A cost-allocation sheet with percentage, equal-split, and tie-out variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I allocate a shared cost in Excel?
Allocate by a driver: =cost * thisWeight / SUM(allWeights). Lock the cost and total-weight range so each share is proportional and the shares sum to the full cost.
How do I make sure the allocated shares add up?
Check =SUM(shares) equals the original cost. If rounding leaves it a cent off, make the largest department a balancing figure.
Can I allocate by something other than headcount?
Yes — use any driver (square footage, revenue, usage) as the weight column; the formula doesn't change.

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: Cost per unit · Percent change & % of total · SUMPRODUCT formula

Function references: SUM