Tabellab

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — €9.90
Loading the spreadsheet…

What is one customer really worth to you?

Every business that spends money to win customers eventually faces the same question: how much is a customer worth? The answer decides how much you can pay for an ad click, whether a welcome discount makes sense, how many people you can afford in customer service and whether a loyalty programme is an investment or a giveaway. Without a number, those decisions are made by gut feeling, or worse, by looking only at the first order.

That number is the customer lifetime value (CLV), also called LTV. It is the value an average customer brings over the whole relationship with you, not just today. This free first lesson of Customer Analytics: Lifetime Value, Cohorts & Churn builds the simplest version of it from a list of customers, their orders and their revenue. It is for owners of online shops and subscription businesses, marketers who have to defend an acquisition budget, finance and FP&A people who model customer revenue and analysts who are handed an order export with the question "what is a customer worth?". All you need is Excel. Every function used here works in any version from Excel 2010 onwards.

Our example is Emberly Coffee Roasters, a fictional small roastery that sells coffee beans online. We take a sample of twelve customers and their orders over the last twelve months, the same data you see in the lab above. By the end you will know the average order value, the purchase frequency, the value of a customer per year and a first, simple CLV, and, just as important, you will know why the order of the calculation matters.

The core idea: two numbers and a lifespan

Every CLV model, from the back-of-an-envelope version to a statistical model in a data warehouse, starts with two questions. How much does a customer spend when they order? And how often do they order? The first is the average order value (AOV), the second the purchase frequency. Multiply them and you get the revenue one customer brings in per period, here per year.

The definitions are short, but the details matter. AOV = total revenue ÷ total orders. Purchase frequency = total orders ÷ number of customers, counted over the same period. Their product is customer value per year = AOV × frequency, and if you look closely, the orders cancel out: it is simply total revenue ÷ number of customers. That identity is a useful check. If your value per year does not equal revenue per customer, one of the two inputs was calculated over a different set of customers or a different period.

The last ingredient is the average customer lifespan: how many years a customer typically keeps buying. In this lesson it is an assumption of 2.5 years, typed into the sheet. Later in the course you will estimate it from churn instead of assuming it. Simple CLV = customer value per year × lifespan.

The simple CLV in three multiplications (Emberly sample)Average order value$34.30revenue ÷ ordersPurchase frequency3.92orders ÷ customersValue per year$134.33AOV × frequencySimple CLV$335.81value × 2.5 years×=×47 orders · $1,611.90 revenue · 12 customers · lifespan 2.5 years (assumed)A revenue figure: no costs, no churn curve, no discounting yet
The simple CLV is three multiplications: AOV × frequency gives the value per year, and the value per year × the lifespan gives the CLV. Numbers from the Emberly sample in the lab.

Write each building block in its own cell and multiply the cells, rather than typing one long formula. When a manager asks "what if customers stay three years?", you change one input and every number updates, and anyone can follow the logic.

Worked example: twelve Emberly customers

Here is the sample from the lab. Each row is one customer with the number of orders they placed in the last twelve months and the revenue they brought in. The last column is each customer's own AOV, revenue divided by their orders, which is the first task in the lab:

CustomerOrdersRevenueOwn AOV (revenue ÷ orders)
C-1011$32.00$32.00
C-1026$214.50$35.75
C-1032$61.00$30.50
C-10412$418.80$34.90
C-1051$27.50$27.50
C-1063$104.70$34.90
C-1074$129.60$32.40
C-1081$45.00$45.00
C-1099$301.50$33.50
C-1102$58.40$29.20
C-1111$36.90$36.90
C-1125$182.00$36.40
Total47$1,611.90$34.30 (sample AOV)

The sample has 12 customers, 47 orders and $1,611.90 of revenue. The orders are very unevenly spread. Four customers ordered only once, while C-104 ordered twelve times and C-109 nine times. That is typical for repeat-purchase businesses such as coffee, pet food or cosmetics: a small group of loyal customers buys most of the volume, and a long tail tries the product once.

Emberly Coffee Roasters: revenue per customer, last 12 monthsabove the average of $134.33below the averageC-104$418.80 · 12 ordersC-109$301.50 · 9 ordersC-102$214.50 · 6 ordersC-112$182.00 · 5 ordersC-107$129.60 · 4 ordersC-106$104.70 · 3 ordersC-103$61.00 · 2 ordersC-110$58.40 · 2 ordersC-108$45.00 · 1 orderC-111$36.90 · 1 orderC-101$32.00 · 1 orderC-105$27.50 · 1 order
Revenue per customer in the sample, sorted. Peach bars are above the average customer value of $134.33 per year, sky-blue bars below. Illustrative data.

Now the KPI block. The sample AOV is total revenue divided by total orders: $1,611.90 ÷ 47 = $34.30. The purchase frequency is 47 orders ÷ 12 customers = 3.92 orders per customer per year. Their product is $134.33, exactly the revenue per customer ($1,611.90 ÷ 12), which confirms that both inputs cover the same customers and the same period. With an assumed lifespan of 2.5 years the simple CLV is $134.33 × 2.5 = $335.81.

These are the formulas behind each KPI, exactly as they go into the lab:

CellKPIExcel formulaResult
D4:D15Each customer's own AOV=C4/B4 (fill down)$27.50 to $45.00
B18Average order value=SUM(C4:C15)/SUM(B4:B15)$34.30
B19Purchase frequency=SUM(B4:B15)/COUNTA(A4:A15)3.92 orders
B20Customer value per year=B18*B19$134.33
B21Average lifespan (input)typed value2.5 years
B22Simple CLV=B20*B21$335.81

Why you must not average the customers' AOVs

There is a tempting shortcut: column D already holds each customer's own AOV, so why not take =AVERAGE(D4:D15)? In this sample it gives $34.08, close to the correct $34.30, so the error looks harmless. It is not. The plain average gives every customer the same weight, so C-105 with a single order of $27.50 counts as much as C-104 with twelve orders. The AOV is a property of orders, so it must be weighted by orders.

The gap is small here only because the customers' own AOVs happen to be similar, between $27.50 and $45.00. In a shop where one-time buyers place large trial orders and loyal customers place small top-up orders, or the reverse, the two numbers can be far apart. And if you then multiply the wrong AOV by the frequency, value per year no longer equals revenue per customer, so the identity check fails. Make it a habit: ratios of totals, not averages of ratios. The same rule comes back in this course for retention rates and in many other KPIs.

If you ever need the order-weighted AOV from column D, use =SUMPRODUCT(B4:B15,D4:D15)/SUM(B4:B15). It returns the same value as total revenue ÷ total orders, because each customer's AOV is weighted by their number of orders.

How to do it in Excel, step by step

  1. Lay out the data as one row per customer: customer ID in column A, orders in column B, revenue in column C, all for the same twelve-month window. If you start from an order export, a PivotTable (Insert › PivotTable, customer in Rows, Order ID as Count and Amount as Sum in Values) gives you exactly this table.
  2. In D4, type =C4/B4 and press Enter. Select D4:D15 and press Ctrl+D to fill the formula down. Format the column as currency with Ctrl+Shift+$.
  3. Build a small KPI block below the data with labels in column A and values in column B, as in rows 17 to 22 of the lab.
  4. In B18, enter =SUM(C4:C15)/SUM(B4:B15) for the AOV.
  5. In B19, enter =SUM(B4:B15)/COUNTA(A4:A15) for the purchase frequency. COUNTA counts non-empty cells, so it counts customers even though the IDs are text. Format it with two decimals via Home › Number › Decrease Decimal.
  6. In B20, enter =B18*B19 for the customer value per year. As a check, type =SUM(C4:C15)/COUNTA(A4:A15) in a spare cell: both must match.
  7. Type the lifespan assumption, 2.5, in B21 and give it a different fill colour (Home › Fill Color) so everyone sees it is an input, not a result.
  8. In B22, enter =B20*B21 for the simple CLV.
  9. Press Ctrl+` to show all formulas at once, check that every KPI points to the right range, and press it again to return to the values.

How sensitive is the simple CLV?

The simple CLV is only as good as its assumptions, and the lifespan is the weakest of them. The table below keeps the sample AOV and varies the frequency and the lifespan. Each cell is AOV × frequency × lifespan, and in Excel you could build it with a Data › What-If Analysis › Data Table or with a formula: put the frequencies in C30:E30, the lifespans in B31:B34 and fill =$B$18*C$30*$B31 across the grid:

LifespanFrequency 3.0Frequency 3.92 (sample)Frequency 5.0
1.5 years$154.33$201.49$257.22
2.0 years$205.77$268.65$342.96
2.5 years$257.22$335.81$428.70
3.0 years$308.66$402.98$514.44

The spread is wide: from $154.33 to $514.44 for the same coffee and the same order value. That is why the simple CLV should be read as an order of magnitude, not as a precise target. It still answers useful questions. If a paid campaign wins customers at, for example, $150 each, the sample shows that a customer must stay well over a year before even the revenue covers the cost, before any coffee, packaging or shipping is paid for.

Cumulative revenue per customer over a 2.5-year lifespan ($)0100200300400$134.33After year 1$268.65After year 2$335.81After 2.5 years
With a constant value per year, revenue per customer builds up in a straight line over the assumed lifespan. Real customers churn along the way, which the later labs model with retention and survival.

What the simple CLV leaves out

Be clear about what this number is: a revenue figure. It ignores the cost of the goods you sold, so it overstates what a customer is worth to the business. It assumes every customer stays exactly 2.5 years, while in reality many leave after the first order and a few stay for many years. And it treats a dollar in year three as worth the same as a dollar today, which it is not.

Each of these gaps is closed later in the course. Margin turns revenue into profit: with a gross margin of, for example, 40 %, the value per year would fall to about $53.73 of gross profit. A retention rate replaces the fixed lifespan with the share of customers that stay each year. A discount rate turns future margin into today's money. The next lab combines all three into a year-by-year CLV table.

Course cover: customer analytics with lifetime value, cohorts and churn in Excel
Customer Analytics: Lifetime Value, Cohorts & Churn. 20 labs from a first simple CLV to cohort tables, survival curves and CAC ceilings.

Common mistakes and how to spot them

  • Averaging the customers' own AOVs. =AVERAGE(D4:D15) weights a one-order customer like a twelve-order customer. Spot it: AOV × frequency no longer equals total revenue ÷ customers.
  • Dividing the wrong way round. =B4/C4 gives orders per dollar, a tiny number such as 0.03. An AOV for coffee beans should look like a basket, not a fraction.
  • Counting customers with COUNT instead of COUNTA. COUNT only counts numbers, so text IDs like C-101 return 0 and the frequency shows a #DIV/0! error.
  • Mixing periods. Orders from twelve months and customers from six months, or a lifespan in months combined with a value per year. Spot it: a frequency that looks implausible for your product, and a lifespan unit that does not match the value unit.
  • Including customers acquired last week. A customer who joined two weeks ago has had no time to reorder, which pushes the frequency down. Use customers who were active for the whole window, or follow cohorts as later lessons do.
  • Presenting revenue CLV as profit. Comparing a revenue CLV with the acquisition cost makes every channel look better than it is. Label it clearly as "simple CLV (revenue)" until margin is added.

Quick reference: Excel functions and shortcuts in this lesson

Function or shortcutWhat it does hereExample
SUMAdds total orders and total revenue=SUM(C4:C15)
COUNTACounts the customers (non-empty IDs)=COUNTA(A4:A15)
AVERAGEPlain mean, here only as a cross-check of the customers' own AOVs=AVERAGE(D4:D15)
SUMPRODUCTWeighted totals without helper columns=SUMPRODUCT(B4:B15,D4:D15) returns total revenue
COUNTIFCounts one-time buyers=COUNTIF(B4:B15,1)
Ctrl+DFills the formula from the top cell down a selectionSelect D4:D15, press Ctrl+D
F4Toggles absolute references while editing$B$21
Ctrl+Shift+$Currency formatFormat B18, B20, B22
Ctrl+`Shows formulas instead of resultsAudit the KPI block

Real-world uses

  • Setting a ceiling for acquisition cost. If a customer brings $134 of revenue a year, you know immediately that paying $200 for a one-time buyer does not work, however good the click-through rate looks.
  • Judging a welcome discount. A 20 % first-order discount costs a fraction of one AOV. Compared with a multi-year CLV, it can be cheap, if it really wins customers who stay.
  • Choosing between growth levers. Raising the AOV with bundles, raising the frequency with a subscription or reminder e-mails, and extending the lifespan with better service each move a different block of the formula. The CLV shows which lever moves the result most.
  • Comparing customer groups. The same three numbers per segment, for example subscription versus one-off buyers, show where the value really sits. The segment lab in this course does exactly that.
  • Business plans and investor questions. A transparent CLV with stated assumptions is a standard part of a plan for a direct-to-consumer brand, and the step-by-step build makes it easy to defend.

What you will build in the rest of this course

This first lesson is free. The labs that follow are part of the full course, a one-time purchase of $9.90. They take the same Emberly Coffee Roasters data from this simple revenue CLV to cohort tables, churn curves and a CAC ceiling per segment.

CLV with Margin, Retention and Discounting. You replace the fixed lifespan with a retention rate, add the gross margin and a discount rate, build a year-by-year CLV table with survival and discount factors and check it against the one-line geometric formula.

Building a Cohort Table from Raw Orders. You take a raw order list, tag every order with the customer's first-order month and month number, and build the whole cohort table with a single COUNTIFS formula.

Retention Rates and the Retention Curve. You turn six cohorts into retention rates, combine them into one weighted retention curve, measure month-to-month retention and chart the curve, the picture every subscription business watches.

Cohort CLV: Cumulative Margin per Customer and CAC Payback. You turn a cohort revenue table into cumulative margin per customer and find the month in which the January cohort paid back its acquisition cost, plus its LTV:CAC ratio so far.

Churn, Survival and Expected Customer Lifetime. You measure the monthly churn of Emberly's subscription, project how many subscribers survive from month 1 to month 24 and estimate the expected lifetime from churn instead of guessing it.

Segment CLV and the CAC Ceiling. You compare the CLV of four customer segments and work out how much you can afford to pay to acquire each one, a number your marketing team can use the next day.

Predicting Repeat Purchases with a Recency/Frequency Scorecard. You score twelve customers on recency and frequency, look up their repeat-purchase probability in a calibrated grid and forecast repeat customers and revenue for the next 90 days.

Summary

The simple CLV rests on two numbers and one assumption. The AOV is total revenue ÷ total orders, =SUM(C4:C15)/SUM(B4:B15), never the average of the customers' own AOVs. The purchase frequency is total orders ÷ customers, =SUM(B4:B15)/COUNTA(A4:A15). Their product is the customer value per year, which must equal revenue per customer, and times the lifespan it gives the simple CLV. For the Emberly sample that is $34.30 × 3.92 = $134.33 a year and $335.81 over 2.5 years, a revenue figure without margin, churn or discounting.

Now scroll up to the lab and build it yourself: each customer's AOV, the sample AOV, the frequency and the simple CLV. The coach checks every key cell and explains the typical slips, including the averaged AOV.

Frequently asked questions

How do you calculate customer lifetime value in Excel?

The simplest version is average order value × purchase frequency × average customer lifespan. In Excel put each in its own cell, for example =SUM(C4:C15)/SUM(B4:B15) for the AOV and =SUM(B4:B15)/COUNTA(A4:A15) for the frequency, and multiply the cells.

What is the formula for average order value?

Average order value = total revenue ÷ total number of orders in the same period. Do not average the customers' own AOVs, because that gives a one-order customer the same weight as a frequent buyer.

How do you calculate purchase frequency?

Purchase frequency = total orders ÷ number of unique customers over the same period, for example orders per customer per year. In Excel count text customer IDs with COUNTA, not COUNT.

What is the difference between CLV and LTV?

They are two names for the same idea: the value a customer brings over the whole relationship. Some teams use LTV for a margin-based figure and CLV for revenue, so always state which one you mean.

Is the simple CLV formula accurate?

It is a useful first estimate, but it is a revenue number without costs, churn or discounting, and it depends heavily on the assumed lifespan. More accurate models add gross margin, a retention rate and a discount rate.

How do I estimate the average customer lifespan?

A common approach is 1 ÷ churn rate, for example a yearly churn of 40 % gives an expected lifespan of 2.5 years. Better still, follow cohorts of customers over time and measure how many are still buying.

Keep going: Customer Analytics: Lifetime Value, Cohorts & Churn

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.

  1. CLV with Margin, Retention and Discounting
  2. Building a Cohort Table from Raw Orders
  3. Retention Rates and the Retention Curve
  4. Cohort CLV: Cumulative Margin per Customer and CAC Payback
  5. Churn, Survival and Expected Customer Lifetime
  6. Segment CLV and the CAC Ceiling
  7. Predicting Repeat Purchases with a Recency/Frequency Scorecard
  8. Monthly Subscription CLV: Converting Annual Rates and Capping the Horizon
  9. CLV with Year-Specific Retention and Spend Growth
  10. Hidden Segments: Why Blended Retention Understates CLV
  11. Historical Customer Value After Returns, Shipping and Service
  12. Discount-Acquired vs Full-Price Customers: CLV Net of the Welcome Offer
  13. CLV Sensitivity Grid: Retention × Discount Rate
  14. Which Lever Moves CLV Most? AOV, Frequency, Margin and Retention
  15. Channel CLV and the Blended-CAC Trap
  16. Referral Value: Adding Word-of-Mouth to CLV
  17. Customer Equity: Today's Base Plus Future Cohorts
  18. Plausibility Checks Before You Trust a CLV Number
  19. Final Project: Customer Value Dashboard for a Tea Club

Buy course — €9.90 See the full course