Cellwise Start free

Excel guide · 5 min read

How to calculate customer lifetime value in Excel

Quick answerCustomer lifetime value (CLV) = revenue per customer per year x expected years as a customer x your gross margin. From an order list that's =SUM(D2:D15)/COUNTA(UNIQUE(B2:B15))*12/L4*L3*L2: here $156.67 a year x 3 years x 55% margin, a CLV of $258.50.

Sample data

Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.

ABCDEFGHIJKL
1Order dateCustomerChannelOrder totalCustomerChannelRevenueOrdersSettingValue
2Nov 8, 2025AvaInstagram42AvaInstagram1464Gross margin (yours)0.55
3Dec 14, 2025BenSearch35BenSearch1133Expected lifespan in years (your estimate)3
4Jan 3, 2026AvaInstagram28CaraInstagram992Months of data12
5Feb 11, 2026CaraInstagram55DevReferral4201Monthly price (subscription)29
6Mar 2, 2026DevReferral420EliSearch622Monthly churn0.04
7Mar 19, 2026BenSearch40FayReferral1002Cost to acquire a customer60
8Apr 25, 2026EliSearch30
9May 9, 2026AvaInstagram36
10Jun 15, 2026FayReferral48
11Jul 21, 2026CaraInstagram44
12Aug 30, 2026BenSearch38
13Sep 12, 2026FayReferral52
14Oct 5, 2026AvaInstagram40
15Oct 27, 2026EliSearch32

Download this sheet as an Excel practice file (.xlsx)

The classic formula: order value x frequency x lifespan

The textbook version multiplies three things: average order value (AOV), how many orders a customer places per year, and how many years they stay. With 14 orders worth $940 from 6 customers over 12 months, AOV is $67.14 and each customer orders 2.33 times a year.

AOV x frequency simplifies to revenue / customers, so you don't need both steps: $940 / 6 = $156.67 per customer per year. The 12/L4 part scales your data to a year, so it still works if your export covers 6 or 18 months.

The lifespan in L3 is an estimate, and it's the number that moves CLV the most. Put it in an input cell, write down where it came from (how long your repeat customers have actually stayed, or 1 / annual churn), and never bury it inside the formula.

=SUM(D2:D15)/COUNTA(UNIQUE(B2:B15))*12/L4*L3

Result: 470

470: $156.67 per customer per year for 3 years. That's revenue, before costs.

Use margin, not revenue

A customer who spends $470 doesn't leave you $470. Multiply by your gross margin (revenue minus the direct cost of what you sold, as a share of revenue) to get the value you can actually spend on winning customers. Put your own margin in L2; 55% here is only an example.

This margin-based number is the one to compare with acquisition cost. Comparing revenue CLV with CAC makes every channel look better than it is.

=SUM(D2:D15)/COUNTA(UNIQUE(B2:B15))*12/L4*L3*L2

Result: 258.5 shows as $258.50 with Currency format

258.5: the CLV in gross profit, 470 x 55%.

Check the median: one big customer skews the mean

Build a small table with one row per customer: =SUMIFS($D$2:$D$15,$B$2:$B$15,F2) for revenue and =COUNTIFS($B$2:$B$15,F2) for orders, copied down. Now look at it. Dev placed one $420 corporate gift order, more than Ava's four orders together ($146).

The average revenue per customer is $156.67, but the median is $106.50. Take Dev out and the average drops to $104. So the "typical" customer is worth much less than the average says. Report the CLV on the median next to the mean, and plan budgets on the lower one until you have more customers.

In Excel 365 you can skip the helper table: =MEDIAN(SUMIFS(D2:D15,B2:B15,UNIQUE(B2:B15))) totals each customer and takes the middle in one cell.

=MEDIAN(H2:H7)*L3*L2

Result: 175.725

About 175.73: CLV based on the median customer ($106.50 x 3 years x 55%), against 258.50 on the mean.

CLV by acquisition channel with AVERAGEIFS

Column G records where each customer came from. AVERAGEIFS averages the revenue column for one channel: Instagram customers average $122.50, search customers $87.50 and referrals $260.

Before you pour money into referrals, look at who's in that group. Two customers, and one of them is Dev. =AVERAGEIFS(H2:H7,G2:G7,"Referral",F2:F7,"<>Dev") gives $100. With this little data, channel CLV is a hint, not a verdict. Add a count next to each channel (=COUNTIFS(G2:G7,"Referral")) so nobody reads too much into two rows.

Also watch the start dates. Fay first ordered in June and Eli in April, so they've had less time to buy than Ava. With more data, compare customers who started in the same quarter (a cohort) instead of everyone at once.

=AVERAGEIFS(H2:H7,G2:G7,"Instagram")*L3*L2

Result: 202.125

About 202.13: CLV for Instagram customers ($122.50 a year x 3 x 55%).

Subscription shortcut: ARPU x margin / churn

For a subscription, CLV = monthly revenue per customer (ARPU) x margin / monthly churn rate. The churn part works as the lifespan: if 4% of customers cancel each month, the average customer stays 1 / 4% = 25 months.

With a $29 plan, a 55% margin and 4% monthly churn, that's $398.75. Without the margin it's $725, which is revenue, not value. This shortcut assumes churn stays steady, so recheck it when churn changes. The churn guide shows how to measure the rate from your customer list.

=L5*L2/L6

Result: 398.75

398.75: $29 x 55% / 4%.

The CLV:CAC ratio

Divide CLV by what it costs to win a customer (CAC). With a margin CLV of $258.50 and a $60 acquisition cost, each customer returns about 4.3 times what you spent getting them.

People often quote 3:1 as a healthy target, but it's a rule of thumb, not a law. A ratio under 1 means you lose money on every new customer. A very high ratio can mean you're spending too little on growth. Both numbers go in cells you can change, so you can test "what if CAC rises to $90?" in seconds.

=AVERAGE(H2:H7)*12/L4*L3*L2/L7

Result: 4.3083333333

About 4.31: CLV of 258.50 / CAC of 60.

Common mistakes

Using revenue CLV against CAC

Multiply by your gross margin first. Revenue CLV makes every channel look profitable.

Hard-coding the lifespan

Keep years (or monthly churn) in an input cell with a note on where it came from. It's an estimate, and it moves CLV more than anything else.

Counting rows instead of customers

Divide by COUNTA(UNIQUE(customer column)), not by the number of orders, or you get AOV instead of revenue per customer.

Trusting a channel with two customers

Show the count next to each channel's CLV and check the median. One big buyer can make a channel look like a winner.

FAQ

What is the simplest formula for customer lifetime value?

Average revenue per customer per year x expected years as a customer x gross margin. In Excel: =SUM(revenue)/COUNTA(UNIQUE(customers)) x years x margin, with years and margin in their own cells.

How do I estimate customer lifespan?

For subscriptions use 1 / monthly churn rate, which gives months. For repeat purchases, look at how long your repeat customers have kept buying, or use 1 / the share of customers who stop each year. Write the source next to the cell.

Is CLV the same as LTV?

Yes. CLV, CLTV and LTV are names for the same idea. Check whether a quoted figure is revenue or margin based, because people use both.

Can I calculate CLV in a pivot table?

Partly. Put Customer in Rows and Sum of order total in Values to get revenue per customer, then average that column. The lifespan and margin multiplication is easier in normal cells next to the pivot.

Functions used

Related guides

Updated