Tabellab

Tenure and the Churn Flag: Censoring at a Cut-Off Date

Lesson 1 of 20Lab

All lessons
  1. Tenure and the Churn Flag: Censoring at a Cut-Off DateLabFree
  2. The Monthly Hazard Rate by Tenure MonthLab Locked
  3. The Survival Curve S(t) = Π(1 − h) and the Median LifetimeLab Locked
  4. Kaplan-Meier with Censored Customers: Step Table and CurveLab Locked
  5. Comparing Segments: Basic vs Plus Curves and a Simple Log-Rank TestLab Locked
  6. Expected Lifetime and LTV from the Survival CurveLab Locked
  7. Churn Drivers: Churn Rate by Attribute and LiftLab Locked
  8. Retention Intervention ROI: Who Should Get the Save Offer?Lab Locked
  9. Before the Curve: Duplicates, Impossible Dates and Status ConflictsLab Locked
  10. The Actuarial Life Table: Withdrawals Count as Half a MonthLab Locked
  11. Pooling a Cohort Triangle: One Hazard Curve from Cohorts of Different AgesLab Locked
  12. Late Entry: Migrated Customers Who Join the Data Mid-LifeLab Locked
  13. Two Ways to Leave: Cancellations vs Failed Payments as Competing RisksLab Locked
  14. Annual Plans: Renewal Spikes, Equivalent Monthly Churn and Revenue per Sign-UpLab Locked
  15. A Constant-Hazard Model: λ from Customer-Months, e^(−λt) and Where It FailsLab Locked
  16. Weibull Fit: Is the Hazard Falling with Tenure? Shape k and a 24-Month ForecastLab Locked
  17. Is Plus Really Stickier? Churn Rate Ratios Adjusted for Acquisition ChannelLab Locked
  18. Forecasting Next Quarter's Churners from the Tenure Mix of Today's BaseLab Locked
  19. Is the Churn Score Honest? Calibration by Band and Capture of the Top BandsLab Locked
  20. Final Project: Retention Dashboard for Basic vs Plus with Curves and Margin per Sign-UpLab Locked

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 — CHF 9.90
Loading the spreadsheet…

Why “what is our churn rate?” is a harder question than it looks

If you run a subscription business, work in customer success, or build reports for a finance or marketing team, you have been asked this question more than once: what is our churn? It sounds like a single number. In practice, two analysts with the same customer list can give two very different answers, and both can defend their spreadsheet. One divides the customers who left by all customers ever acquired. Another divides last month’s cancellations by the customers at the start of the month. A third quietly drops everyone who joined recently because “they have not had time to churn yet.” Each choice changes the answer, and some of them change it a lot.

Survival analysis is the toolkit that settles this. It was built for questions of the form “how long until something happens?”, such as how long until a machine fails or how long until a patient relapses, and it fits customer churn perfectly: how long until a subscriber cancels? Its key idea is that you must account for time. A customer who has been with you for two years and a customer who signed up three weeks ago are not equal evidence, and a customer who is still active today has not told you yet when they will leave.

This free first lesson covers the step that every later analysis depends on: turning start and cancellation dates into a churn flag, an observed-until date and a tenure in whole months, handling customers who are still active (the censored ones) correctly, and computing an honest average monthly churn rate per customer-month. We use the same fictional business as the lab above, Fernleaf Box, a plant-care subscription box with a Basic and a Plus plan. All names and numbers are illustrative and made up for learning.

Retention curve and customer list for a subscription business, the theme of the churn and survival analysis course
Survival analysis turns a plain customer list into retention curves, lifetimes and customer values.

The core idea: tenure, event and censoring

Every survival dataset reduces to two numbers per customer. The first is how long we watched them, the tenure. The second is whether the event happened during that time, here a cancellation. Together they answer: “this customer lasted at least t months, and then either cancelled or we stopped watching.”

  • Churned customer: there is a cancellation date. The event flag is 1 and the tenure runs from the start date to the cancellation date.
  • Censored customer: the customer is still active on the analysis date. The event flag is 0 and the tenure runs from the start date to the cut-off date. We know they lasted at least that long, not how long they will last in total.
  • Cut-off date: the single date at which you freeze the data, for example the last day of the quarter. It belongs in one cell so the whole analysis can be rerun and reproduced.

The term “censored” sounds technical, but the idea is everyday. If you ask how long people stay in a gym membership and survey members today, the people still on the books are not “non-churners.” They are people whose story is unfinished. Treating them as if they will never leave makes churn look too low. Dropping them from the data makes churn look too high, because you keep only the people whose stories ended, which are mostly the short stories. Survival analysis keeps them in and uses exactly what we know about them: they survived every month up to the cut-off.

Censoring is only harmless if the reason you stopped watching is unrelated to the risk of churning. A fixed cut-off date for everyone satisfies this. Removing customers because a sales rep marked them “at risk” would not.

Why churners ÷ customers misleads

The quickest churn number is churners divided by all customers. For Fernleaf Box that is 7 ÷ 14 = 50%. But 50% of what, over what period? Customer FB-1001 had 7 months in which to cancel. Customer FB-1014 joined on 1 July 2026 and had only about 2 months. Lumping them together mixes very different exposures, and the number drifts up or down just because the business acquired more or fewer customers recently, even if nobody’s behaviour changed.

The fix is to count customer-months at risk: the sum of all tenures, 120 months in our example. Each month a customer spends with you is one month in which they could have cancelled. Dividing the 7 cancellations by those 120 customer-months gives 5.83% per customer-month, the average monthly hazard. This is a rate, comparable across periods, cohorts and plans, because it is already adjusted for how long each group was watched. Later lessons refine it into a hazard per tenure month, because churn is rarely constant, but the principle of dividing events by time at risk stays the same.

Worked example: Fernleaf Box’s 14 customers

The table below is the result of the lab: the original start and cancellation dates, plus the three columns you calculate. The cut-off date is 30 September 2026 and sits in cell C19. Seven customers have cancelled, seven are still active and therefore censored.

CustomerPlanStartCancelled onChurnedObserved untilTenure (months)
FB-1001Basic2024-11-042025-06-1812025-06-187
FB-1002Plus2024-11-19(active)02026-09-3022
FB-1003Basic2024-12-022025-01-2012025-01-201
FB-1004Basic2025-01-15(active)02026-09-3020
FB-1005Plus2025-02-032026-03-0912026-03-0913
FB-1006Basic2025-03-212025-05-0212025-05-021
FB-1007Plus2025-05-12(active)02026-09-3016
FB-1008Basic2025-06-302025-10-1412025-10-143
FB-1009Basic2025-08-08(active)02026-09-3013
FB-1010Plus2025-10-272026-07-3012026-07-309
FB-1011Basic2026-01-052026-02-1112026-02-111
FB-1012Plus2026-02-14(active)02026-09-307
FB-1013Basic2026-04-22(active)02026-09-305
FB-1014Plus2026-07-01(active)02026-09-302
Total7120

The three calculated columns use one formula each, entered in row 4 and filled down to row 17:

  • Churned (E4): =IF(D4="",0,1). An empty cancellation cell means active, anything else means churned.
  • Observed until (F4): =IF(D4="",$C$19,D4). The dollar signs keep the reference on the cut-off date while you copy the formula down.
  • Tenure in whole months (G4): =DATEDIF(C4,F4,"m"). DATEDIF counts completed months: from 3 January to 2 February is 0 months, to 3 February is 1 month.
  • Totals: =SUM(E4:E17) or =COUNT(D4:D17) gives 7 churners, =SUM(G4:G17) gives 120 customer-months, and =G21/G22 gives the average monthly hazard of 5.83%.

Look at a few rows to see the logic. FB-1003 joined on 2 December 2024 and cancelled on 20 January 2025: one completed month, so a tenure of 1 with an event. FB-1002 joined on 19 November 2024 and is still active: observed until 30 September 2026, 22 completed months, no event. FB-1008 joined on 30 June 2025 and left on 14 October 2025: DATEDIF counts 30 June to 30 September as 3 months and stops there, because 14 October is before the next monthly anniversary.

Fernleaf Box: tenure of each customer at the 30 Sep 2026 cut-offchurned (event)still active (censored)FB-1001 B7FB-1002 P22FB-1003 B1FB-1004 B20FB-1005 P13FB-1006 B1FB-1007 P16FB-1008 B3FB-1009 B13FB-1010 P9FB-1011 B1FB-1012 P7FB-1013 B5FB-1014 P206121824Tenure in whole months (DATEDIF "m"), B = Basic, P = Plus
Each bar is one customer’s observed tenure. A dot marks a cancellation, an arrow marks a customer who was still active at the cut-off, so their true lifetime is longer than the bar. The arrows are the censored observations.

The chart makes the trap visible. Several of the longest bars end in arrows: these are good customers whose final tenure we do not know yet. Several of the shortest bars are recent customers (FB-1013, FB-1014) who simply had little time. A method that ignores the arrows, or ignores how short some bars are, will misread the business.

Splitting the hazard by plan

Once tenure and the event flag exist, comparing groups takes two more formulas. For Basic, the churners are =SUMIFS(E4:E17,B4:B17,"Basic") and the customer-months are =SUMIFS(G4:G17,B4:B17,"Basic"). Divide one by the other and repeat for Plus.

GroupCustomersChurnedCustomer-monthsChurned ÷ customersMonthly hazard (churned ÷ months)
Basic855162.5%9.8%
Plus626933.3%2.9%
All14712050.0%5.83%

Basic customers cancel at roughly 9.8% per month, Plus customers at roughly 2.9%. Note that the naive “churned ÷ customers” column also ranks them correctly here, but it overstates the gap’s certainty and would shift if the plans had been sold at different times. With only 14 customers, these figures are very noisy: two more Plus cancellations would change the picture a lot. That is why lesson 5 adds a simple log-rank test before anyone redesigns the pricing page on this evidence.

To get a feel for what the rates mean, you can turn a constant monthly hazard h into the share still subscribed after t months with =(1-h)^t, and into a median lifetime with =LN(0.5)/LN(1-h). For the whole base that is about 11.5 months, for Basic about 6.7 months, for Plus about 23.6 months. These are rough figures based on the assumption that each plan’s churn stays the same every month, an assumption the next lessons drop.

Share still subscribed if each plan’s average hazard stayed constant0%25%50%75%100%06121824Months since startmedian line (50%)Plus, h = 2.9%All, h = 5.8%Basic, h = 9.8%6.7 mo11.5 mo
Illustrative survival curves S(t) = (1 − h)t, using each plan’s average hazard from the table above. Real curves are rarely this smooth: churn is usually highest in the first months, which is why lesson 2 measures the hazard per tenure month.

How to do it in Excel, step by step

Here is the full workflow on your own customer export. It works in Excel 365, Excel 2021 and older desktop versions, and the same formulas work in Google Sheets.

  1. Export one row per customer with at least an ID, a start date and a cancellation date (empty if active). Put the headers in row 3 and the data from row 4, as in the lab.
  2. Make sure the date columns are real dates, not text. Select the column and check Home › Number Format: it should say Date or Short Date. If the dates are text, use Data › Text to Columns › Finish or =DATEVALUE(C4).
  3. Type the cut-off date into one cell, here C19. Use a fixed date (press Ctrl+; to insert today as a value) rather than TODAY(), which changes every day and makes results impossible to reproduce.
  4. In E4 type =IF(D4="",0,1), select E4:E17 and press Ctrl+D to fill down.
  5. In F4 type =IF(D4="",$C$19,D4). Press F4 while the cursor is on C19 in the formula bar to add the dollar signs. Fill down and format as a date (Ctrl+1 › Number › Date).
  6. In G4 type =DATEDIF(C4,F4,"m") and fill down. Excel does not offer DATEDIF in its function wizard, so type it in full. It still works.
  7. Below the table, total the churners with =SUM(E4:E17) and the customer-months with =SUM(G4:G17), then divide: =G21/G22. Format the result with Ctrl+Shift+% and add one or two decimals with Home › Increase Decimal.
  8. Sanity-check: no tenure should be negative, no observed-until date should be later than the cut-off, and the number of 1s should equal the number of filled cancellation dates. A quick =COUNTIF(G4:G17,"<0") should return 0.
  9. Optional: turn the range into a table with Ctrl+T so formulas fill automatically when new customers are added, and build a PivotTable (Insert › PivotTable) with Plan in Rows and the sum of Churned and Tenure in Values for segment hazards.
If you prefer one formula without helper columns, Excel 365 can compute the customer-months directly: =SUM(DATEDIF(C4:C17,IF(D4:D17="",C19,D4:D17),"m")). The helper columns are still worth keeping, because you can see and audit every single tenure.

Common mistakes and how to spot them

  • Dropping active customers. Filtering the list to cancelled customers only makes average tenure look short and churn look high. Spot it: your “churn rate” is suspiciously close to 100%, or your customer count is much smaller than the CRM total.
  • Treating active customers as having tenure 0. Forgetting the observed-until step leaves DATEDIF with an empty end date and gives wrong results or #NUM! errors. Spot it: active customers show tenure 0 or an error.
  • Using TODAY() as the cut-off. The report changes every time someone opens the file. Spot it: last week’s numbers cannot be reproduced.
  • Text instead of dates. Dates imported as text cause #VALUE! errors in DATEDIF or silently wrong comparisons. Spot it: dates are left-aligned in the cell, or =ISNUMBER(C4) returns FALSE.
  • Dividing by customers instead of customer-months. Gives a number with no time unit that drifts with acquisition volume. Spot it: ask “per what period?” If there is no clear answer, it is not a rate.
  • Forgetting the absolute reference. Without $C$19, the cut-off reference slides down one row with each copy and points at empty cells. Spot it: active customers in lower rows get odd observed-until dates.
  • Mixing up partial months. DATEDIF ignores the incomplete last month. This is consistent and fine, but be aware that a customer who left after 25 days shows a tenure of 0 months and still counts as a churner. Decide whether you want to count days instead, and apply the choice to everyone.

Quick reference: functions and shortcuts used

Function or shortcutWhat it does hereExample
IFTurns an empty cancellation date into 0 and a filled one into 1, or picks the observed-until date=IF(D4="",0,1)
DATEDIF(start, end, "m")Counts completed months between two dates=DATEDIF(C4,F4,"m")
COUNT / COUNTACOUNT counts cells holding numbers or dates, COUNTA counts any non-empty cell=COUNT(D4:D17)
SUMAdds the churn flags or the tenure months=SUM(G4:G17)
SUMIFS / COUNTIFSTotals per plan for a segment hazard=SUMIFS(G4:G17,B4:B17,"Basic")
$ absolute reference (F4 key)Locks the cut-off cell so it does not move when you fill down$C$19
Ctrl+DFills the formula of the top cell down the selected rangeSelect F4:F17, press Ctrl+D
Ctrl+;Types today’s date as a fixed value, a reproducible alternative to TODAY()Type into C19
Ctrl+Shift+%Formats the hazard as a percentageSelect G23

Real-world uses

  • Subscription boxes and SaaS: report churn per customer-month for each plan and acquisition month, so a busy sign-up campaign does not make retention look better or worse than it is.
  • Gyms, clubs and memberships: estimate how long a new member typically stays, which feeds directly into how much you can spend to acquire one.
  • Telecom and utilities contracts: compare customers whose minimum term has ended with those still locked in, keeping the locked-in ones as censored rather than “loyal.”
  • Employee retention in HR: the same method measures how long employees stay, with current employees as censored observations.
  • Insurance and lending: time until a policy lapses or a loan is repaid early follows exactly the same tenure-and-event structure.

What you will build in the rest of this course

This first lesson is free. The lessons below are part of the full course, unlocked with a one-time payment of $9.90. Each has its own interactive lab with instant feedback, using the same Fernleaf Box story.

The Monthly Hazard Rate by Tenure Month. You follow a cohort of 2,400 subscribers through their first year, count who is still at risk each month and see how the hazard changes with tenure. This is where the classic “month one cliff” shows up in numbers.

The Survival Curve S(t) = Π(1 − h) and the Median Lifetime. You chain 24 monthly hazards into a proper survival curve with a running product, read the median lifetime off it and measure how front-loaded the losses are.

Kaplan-Meier with Censored Customers: Step Table and Curve. You build a Kaplan-Meier table straight from a customer list with COUNTIF and COUNTIFS, keep the censored customers in the risk set exactly as this lesson taught, and chart the step-shaped curve.

Comparing Segments: Basic vs Plus Curves and a Simple Log-Rank Test. You draw both plans’ curves side by side and test whether the gap is bigger than chance with a simplified log-rank chi-square, so you know when a difference is worth acting on.

Expected Lifetime and LTV from the Survival Curve. You turn the curve into expected paid months and a discounted 24-month customer lifetime value, and see how much of that value arrives in the first half-year.

Churn Drivers: Churn Rate by Attribute and Lift. You cut customers by plan, acquisition channel and onboarding call, compute churn and lift per segment and find the strongest churn signal.

Retention Intervention ROI: Who Should Get the Save Offer?. You price a save offer for three target groups, work out how many customers it really saves and what they are worth, and calculate the churn reduction the offer needs just to break even.

Summary

Churn is a rate over time, not a share of a list. Give every customer a tenure and an event flag, keep active customers in the data as censored observations up to a fixed cut-off date, and divide churners by customer-months at risk. For Fernleaf Box that turns a misleading 50% into an average hazard of 5.83% per month, about 9.8% for Basic and 2.9% for Plus. Everything else in survival analysis, from Kaplan-Meier curves to lifetime value, is built on these three columns.

Now scroll back up to the lab and build the churn flag, the observed-until date and the tenure yourself. The Coach checks each step and explains what went wrong if a formula is off. It takes about 15 minutes.

Frequently asked questions

What is censoring in survival analysis?

A customer is censored when the event, such as a cancellation, has not happened by the end of the observation period. You know they lasted at least that long, so their months still count as time at risk, but they are not counted as churners.

How do I calculate tenure in months in Excel?

Use =DATEDIF(start_date, end_date, "m"), which counts completed months. For active customers, use the cut-off date as the end date, for example =DATEDIF(C4,IF(D4="",$C$19,D4),"m").

Why not just divide churned customers by total customers?

Because customers were watched for different lengths of time. Dividing churners by customer-months at risk gives a rate per month that does not drift when you acquire many new customers.

Should I use TODAY() as the cut-off date?

It is better to type a fixed cut-off date into one cell. TODAY() changes every day, so the same file gives different results tomorrow and the analysis cannot be reproduced.

What is a monthly hazard rate?

It is the probability that a customer who is still active at the start of a month cancels during that month. The average monthly hazard is churners divided by customer-months observed.

Does DATEDIF work in Google Sheets and Excel 365?

Yes. DATEDIF works in Excel 365, older Excel versions and Google Sheets. Excel does not list it in the function wizard, so you have to type it in full.

Keep going: Customer Churn & Survival Analysis: Hazard Rates, Kaplan-Meier & Retention Curves

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 CHF 9.90.

  1. The Monthly Hazard Rate by Tenure Month
  2. The Survival Curve S(t) = Π(1 − h) and the Median Lifetime
  3. Kaplan-Meier with Censored Customers: Step Table and Curve
  4. Comparing Segments: Basic vs Plus Curves and a Simple Log-Rank Test
  5. Expected Lifetime and LTV from the Survival Curve
  6. Churn Drivers: Churn Rate by Attribute and Lift
  7. Retention Intervention ROI: Who Should Get the Save Offer?
  8. Before the Curve: Duplicates, Impossible Dates and Status Conflicts
  9. The Actuarial Life Table: Withdrawals Count as Half a Month
  10. Pooling a Cohort Triangle: One Hazard Curve from Cohorts of Different Ages
  11. Late Entry: Migrated Customers Who Join the Data Mid-Life
  12. Two Ways to Leave: Cancellations vs Failed Payments as Competing Risks
  13. Annual Plans: Renewal Spikes, Equivalent Monthly Churn and Revenue per Sign-Up
  14. A Constant-Hazard Model: λ from Customer-Months, e^(−λt) and Where It Fails
  15. Weibull Fit: Is the Hazard Falling with Tenure? Shape k and a 24-Month Forecast
  16. Is Plus Really Stickier? Churn Rate Ratios Adjusted for Acquisition Channel
  17. Forecasting Next Quarter's Churners from the Tenure Mix of Today's Base
  18. Is the Churn Score Honest? Calibration by Band and Capture of the Top Bands
  19. Final Project: Retention Dashboard for Basic vs Plus with Curves and Margin per Sign-Up

Buy course — CHF 9.90 See the full course