Excel guide · 5 min read
How to calculate customer lifetime value in Excel
=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.
| A | B | C | D | E | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order date | Customer | Channel | Order total | Customer | Channel | Revenue | Orders | Setting | Value | ||
| 2 | Nov 8, 2025 | Ava | 42 | Ava | 146 | 4 | Gross margin (yours) | 0.55 | ||||
| 3 | Dec 14, 2025 | Ben | Search | 35 | Ben | Search | 113 | 3 | Expected lifespan in years (your estimate) | 3 | ||
| 4 | Jan 3, 2026 | Ava | 28 | Cara | 99 | 2 | Months of data | 12 | ||||
| 5 | Feb 11, 2026 | Cara | 55 | Dev | Referral | 420 | 1 | Monthly price (subscription) | 29 | |||
| 6 | Mar 2, 2026 | Dev | Referral | 420 | Eli | Search | 62 | 2 | Monthly churn | 0.04 | ||
| 7 | Mar 19, 2026 | Ben | Search | 40 | Fay | Referral | 100 | 2 | Cost to acquire a customer | 60 | ||
| 8 | Apr 25, 2026 | Eli | Search | 30 | ||||||||
| 9 | May 9, 2026 | Ava | 36 | |||||||||
| 10 | Jun 15, 2026 | Fay | Referral | 48 | ||||||||
| 11 | Jul 21, 2026 | Cara | 44 | |||||||||
| 12 | Aug 30, 2026 | Ben | Search | 38 | ||||||||
| 13 | Sep 12, 2026 | Fay | Referral | 52 | ||||||||
| 14 | Oct 5, 2026 | Ava | 40 | |||||||||
| 15 | Oct 27, 2026 | Eli | Search | 32 |
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.
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.
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.
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.
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.
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.
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
SUMAdds numbersCOUNTACounts non-empty cellsUNIQUERemoves duplicates, spillsSUMIFSAdds with several conditionsCOUNTIFSCounts with several conditionsMEDIANMiddle valueAVERAGEMean of numbersAVERAGEIFSAverages with several conditions
Related guides
- How to calculate customer acquisition cost in Excel
- How to calculate average order value in Excel
- How to calculate churn rate in Excel
- How to calculate MRR (monthly recurring revenue) in Excel
- Excel formulas cheat sheet: the 25 everyone should know
- How to calculate an average in Excel
Updated