Level Marketing / Articles / Running a business

Cohort analysis: a customer retention table in Google Sheets

November 30, 2026 · 8 min read

Cohort analysis: a customer retention table in Google Sheets

Cohort analysis is a way of splitting customers into groups (cohorts) that share one trait and watching how each group behaves over time. The most common trait is the month of first purchase: everyone who first bought in January is one cohort, February is another. Instead of one average answer to "do customers come back?", you get a separate answer for every month.

Why overall numbers mislead

A typical report says: "1,200 orders this month, 40% of them repeat." The problem is that this number mixes customers who arrived at different times. If you ran a big promotion in spring and won many new customers, the repeat share drops for a while, even if old customers keep returning as before. Or the opposite: ads get worse, fewer new customers arrive, the repeat share rises and everything looks fine.

Cohort analysis separates that mix. Each row is the customers who arrived in one month. Each column is how many months have passed since their first purchase. You then see two things separately: how a customer's "life" fades, and whether new customers are getting better or worse.

How a retention table works

ElementWhat it isExample
CohortMonth of first purchaseJanuary 2026
Cohort sizeCustomers who bought for the first time that month400 people
Month indexMonths since first purchase0, 1, 2, 3…
Retention in month NCustomers who bought at least once in month N ÷ cohort size112 ÷ 400 = 28%

Month 0 is always 100%, because everyone in the cohort bought that month. The interesting part starts at month 1.

You can build the same table on revenue or order count instead of customers. Customer retention answers "how many people came back"; revenue retention answers "how much money did the cohort bring". You need both, but customers are enough to start.

Google Sheets in 6 steps

You need one export from your CRM or till: one row per order, with customer ID (a phone number works), order date and amount. How to choose a CRM and keep data clean: What a CRM is and which one suits a small business.

  1. Paste the export into a new sheet: A — customer ID, B — date, C — amount.
  2. Column D — first day of the order month: =EOMONTH(B2,-1)+1.
  3. Column E — the customer's first purchase date: =MINIFS(B:B,A:A,A2), then column F — the first day of that month: =EOMONTH(E2,-1)+1. That is the cohort.
  4. Column G — month index: =DATEDIF(F2,D2,"M").
  5. Insert → Pivot table: Rows = F (cohort), Columns = G (month index), Values = A summarised by COUNTUNIQUE. Each cell now shows the number of unique customers who bought in that month.
  6. Next to it, a percentage table: divide each cell by its row's month-0 value and colour it with conditional formatting.

In a sheet with a Russian or other European locale, use semicolons: =MINIFS(B:B;A:A;A2). Phone numbers must share one format: "+998 90…" and "90…" count as two customers and retention drops artificially.

If you sell online, GA4 has a ready Cohort exploration report with daily, weekly or monthly cohorts and inclusion and return criteria. But many Tashkent businesses close sales by phone, in Telegram or in store, so the CRM stays the main source.

Worked example

Illustrative example: an online cosmetics shop, average order 250,000 soums, gross margin 40%. Customer retention table:

CohortSizeM0M1M2M3M4M5
January400100%28%22%19%18%17%
February380100%27%21%18%17%
March520100%18%13%11%
April450100%26%20%
May410100%25%
June390100%

What we see:

  • The curve flattens. The January cohort settles at 17–19% after month 3. That is the core: customers who genuinely like the product. If the curve never flattens and slides to zero, the problem is in the product or service.
  • The March cohort is bigger but weaker. March had a Navruz promotion: 520 new customers, but only 18% came back in month 1. People who came for the discount did not buy at full price.
  • Turn it into money. A January customer made on average 1 + 0.28 + 0.22 + 0.19 + 0.18 + 0.17 = 2.04 orders in 5 months: 510,000 soums of revenue and 204,000 soums of gross margin. The March cohort reached 1.42 orders by month 3; January had 1.69 over the same period.

If acquiring a customer (CAC) costs 120,000 soums, a January customer brings 100,000 soums of margin on the first order and covers the rest with month-1 returns. For a March customer the CAC may have looked low thanks to the promotion, but the margin went into the discount and few returned, so real payback comes much later. How to calculate CAC: Customer acquisition cost (CAC): how to calculate and lower it.

Read the table three ways

  • Along a row. The life of one cohort: in which month you lose the most customers. Usually the biggest drop is from month 0 to month 1. That point is the cheapest to influence: a message after the first purchase, a how-to guide, a reason for a second order.
  • Down a column. Comparing cohorts of the same age: is April's month 1 better than January's? If month-1 retention falls in newer cohorts, the ad audience, the offer or the first-purchase experience got worse.
  • Along a diagonal. Cells from the same calendar month sit on a diagonal. If one diagonal lights up across all cohorts, that is a season or a promotion (for example, before Ramadan or 8 March). Do not read it as a product improvement.

Decision rules

What you seeLikely causeWhat to do
Month-1 retention falls in new cohortsAds moved to a colder audience or the offer changedBuild cohorts by channel and find the source of weak customers
The curve slides to zeroOne-off product or poor experienceCall customers, find the reasons, check service quality
Promo cohort is big but weakDiscount huntersJudge the promotion by month-3 retention and margin, not new customer count
Retention rises in later monthsReactivation is working, or seasonalityCheck the diagonal, keep the reactivation going
Flat core of 25%+Strong repeat demandInvest in repeat sales and subscriptions; you can raise your CAC ceiling

How to grow repeat revenue: Repeat sales and LTV: more revenue from existing customers. The other side of retention is churn; its early warning signs are covered in Customer churn rate: formula, early warning signs and win-back.

Common mistakes

  • Mixing cohort traits. "Sign-up month" and "first purchase month" answer different questions. Use one per table.
  • Drawing conclusions from young cohorts. The June cohort has no month 1 yet. Counting an empty cell as 0% drags average retention down.
  • Small cohorts. In a cohort of 20–30 people, one or two customers move the percentage by 5–10 points. Small businesses get more reliable results by grouping per quarter.
  • Businesses with rare purchases. For furniture or renovation, monthly retention means little; use yearly cohorts and referrals instead.
  • Duplicates. A customer recorded under two numbers counts as "new" twice. Clean the CRM first.
  • Looking only at percentages. 30% of a 50-person cohort and of a 500-person cohort look the same, but the money differs tenfold. Keep the size column next to it.

Cohorts by channel

The most useful next step is to cut cohorts by channel. Store each customer's first source in the CRM: Instagram ad, Google search, Telegram post, referral. For that, tag every link: UTM tags: how to know where every customer came from. Then add a filter to the pivot table and get a separate retention curve per channel.

Often it turns out that the channel with cheap leads brings customers who buy once and leave, while a pricier channel brings customers who return. For splitting the ad budget, that is a more reliable signal than CPL.

Questions and answers

How much data does cohort analysis need?

At least 6 months of order history and a few dozen new customers a month. With less, switch to quarterly cohorts.

What retention is good?

There is no universal norm: high retention is natural for water delivery or a coffee shop, low for home appliances. The best benchmark is your own past cohorts. New cohorts should not be worse than older ones.

How is cohort analysis different from churn?

Churn is the share of customers lost in a period, one number. A cohort table shows the same process for each group and each month, so it helps you find the cause.

Can I do this in Excel?

Yes. MINIFS, EOMONTH and DATEDIF exist in Excel too; for a distinct count in a pivot table you add the data to the Data Model. Google Sheets is simply easier to share with your team.

Conclusion

Cohort analysis turns "are customers coming back?" from an average into a precise answer: which month's customers are good, which promotion brought weak ones, and when a customer pays back what it cost to acquire them. A CRM export and one pivot table are enough to start. If you want to see which ad channel brings customers who return, we can look at your numbers together in Level Marketing's free audit.

More on this topic

Read next