Level Marketing / Articles / Running a business
RFM analysis in Google Sheets: scoring customers 1–5
RFM analysis sorts your customer base by three simple questions: when did the customer last buy (Recency), how often do they buy (Frequency) and how much have they spent in total (Monetary). Each question gets a score from 1 to 5, and a single "same message for everyone" list turns into clear groups. Below we build RFM in Google Sheets from scratch, name the segments and decide what to send each one.
Why these three numbers
Each letter tells you something different about a customer, and none of them replaces the others.
- Recency is the best single predictor of the next purchase. Someone who bought yesterday remembers you and is far more likely to come back than someone who bought a year ago.
- Frequency is habit. For a customer who has come five times, you are a choice, not an accident.
- Monetary is value. It shows who deserves more attention and spend.
Look only at money and the "best" customer is the one who made one big purchase and vanished. Look only at the last purchase and you can't tell yesterday's first-timer from a customer of ten years. Together the three give an honest picture. To see how returns develop month by month, pair RFM with cohort analysis.
What data you need
You don't need a complex system. One export from your till or CRM is enough, with one row per order.
| Column | What it is | Note |
|---|---|---|
| Customer ID | Phone number or CRM ID | One customer, one ID: merge duplicates first |
| Date | Order date | One consistent format |
| Amount | Order value, soums | Remove refunded orders |
The most common problem is one customer stored under two versions of the same number (with and without +998). Normalise numbers before you start or Frequency will come out too low. If your data is still messy, start with the basics in What a CRM is and which one suits a small business.
Seven steps in Google Sheets
Paste the export into a sheet called "Sales": A is customer ID, B is date, C is amount. Create a new sheet called "RFM" and put the analysis date in cell H1.
- Column A, unique customers:
=UNIQUE(Sales!A2:A). - Column B, last purchase date:
=MAXIFS(Sales!B:B,Sales!A:A,A2). - Column C, days since last purchase:
=$H$1-B2. - Column D, number of orders:
=COUNTIFS(Sales!A:A,A2). If your export has one row per item rather than per receipt, group by receipt number first. - Column E, total spend:
=SUMIFS(Sales!C:C,Sales!A:A,A2). - Columns F, G and H: the R, F and M scores (below).
- Column I, the RFM code:
=F2&G2&H2, for example "545".
How to assign scores
There are two ways. The first is quintiles: customers are split into five equal groups and the top 20% get a 5. In Google Sheets you can do this with PERCENTRANK.INC: =MIN(5,1+INT(PERCENTRANK.INC($E$2:$E$2401,E2)*5)). The second is fixed thresholds: you decide that "up to 30 days = 5".
A practical rule: use fixed thresholds for Recency and tie them to the natural purchase cycle of your product. Cosmetics are bought every month or two, furniture every few years, so "60 days" means something completely different for each. Fixed thresholds also work better for Frequency, because in most bases more than half of customers bought only once and quintiles break down. Quintiles are fine for Monetary.
| Score | Recency (days) | Frequency (orders) | Monetary (thousand soums) |
|---|---|---|---|
| 5 | 0–30 | 8+ | over 3,000 |
| 4 | 31–60 | 5–7 | 1,500–3,000 |
| 3 | 61–120 | 3–4 | 700–1,500 |
| 2 | 121–240 | 2 | 300–700 |
| 1 | over 240 | 1 | under 300 |
This table is an illustrative example for a cosmetics shop. Set your own thresholds from your own data.
Segments: from 125 combinations to 8 groups
Three scores from 1 to 5 give 125 combinations, which nobody can work with. In practice they are rolled up into eight readable segments. R and F are the main axes; M sets priority.
| Segment | Rule (R, F) | Meaning | What to send |
|---|---|---|---|
| Champions | R 4–5, F 4–5 | Bought recently and often | Early access, ask for referrals, no discounts |
| Loyal | R 3–5, F 3–5 (the rest) | Come back regularly | Related products, loyalty bonus |
| Promising | R 4–5, F 2 | Made a second purchase | A reason for the third, bundles |
| New | R 5, F 1 | First purchase was recent | Usage tips, second-purchase offer |
| Need attention | R 3, F 1–2 | Cooling off | Reminder, new arrival |
| At risk | R 1–2, F 3–5 | Good customers who disappeared | Personal message or call, ask why |
| Can't lose | R 1–2, F 5, M 5 | Most valuable, but leaving | Call from a manager, special offer |
| Sleeping | R 1–2, F 1–2 | Came once or twice and forgot | Rare win-back campaign, or leave alone |
These names are not a fixed standard; rename them in your team's language. What matters is that each segment has one clear goal.
What to send each segment, and how
The biggest mistake is sending the same discount to everyone. Champions will buy anyway, so a discount for them is margin thrown away. They need attention instead: first look at a new collection, an invitation to a private event, a way to bring a friend. For your very largest customers, see Managing VIP customers: selection, personal manager and perks.
"At risk" and "Can't lose" are where money comes back fastest. These people know and trust you; something made them stop, whether price, service, a competitor or simply forgetting. Ask first, offer second. A full plan is in Customer reactivation: winning back old leads and lapsed buyers.
For "New" and "Promising", the job is the second and third purchase. Moving from the first purchase to the second is usually the hardest step, so the message here should be usefulness, not a discount: how to use the product, when it's time to replace it.
"Sleeping" is often the largest part of the base. Messaging it often is what causes blocks and complaints. Send this segment one message a month at most, and move anyone who ignores two campaigns off the active list. Rules for bot messaging are in Telegram bot broadcasts: 7 rules so customers don't block you.
Worked example
Illustrative example: a cosmetics shop with 2,400 customers, analysis date 1 December. Using the thresholds above, eight customers score like this:
| Customer | Days since purchase | Orders | Spend (thousand soums) | R-F-M | Segment |
|---|---|---|---|---|---|
| A | 12 | 9 | 4,200 | 5-5-5 | Champion |
| B | 45 | 2 | 1,100 | 4-2-3 | Promising |
| C | 150 | 6 | 2,400 | 2-4-4 | At risk |
| D | 20 | 1 | 250 | 5-1-1 | New |
| E | 300 | 1 | 180 | 1-1-1 | Sleeping |
| F | 95 | 2 | 600 | 3-2-2 | Need attention |
| G | 210 | 10 | 5,100 | 2-5-5 | Can't lose |
| H | 35 | 3 | 900 | 4-3-3 | Loyal |
Across the whole base the split came out as (illustrative example): champions 6%, loyal 14%, promising 12%, new 10%, need attention 15%, at risk 11%, can't lose 2%, sleeping 30%.
Now the maths. "At risk" holds 264 people (2,400 × 11%). They received a personal message, "We haven't seen you for a while, what changed?", plus a small gift on their next purchase. If 15% come back, that is 40 purchases. At an average order of 450,000 soums, 40 × 450,000 = 18 million soums in revenue without spending anything on ads. Had the same message gone to the whole base, the response rate would have been far lower and some of the 720 sleeping customers would have blocked the bot.
"Can't lose" has only 48 people. They need a personal call from a manager, not a broadcast: 48 calls is one day's work, and each returning customer is worth millions of soums a year.
Common mistakes
- Doing it once and forgetting. RFM is a snapshot, not a film. Refresh it monthly, or a "new" customer will still be "new" three months later.
- The same thresholds for every niche. Recency thresholds must follow the purchase cycle.
- Looking at segments and doing nothing. Every segment needs an owner, a message and a metric, otherwise the table is just a pretty report.
- Not measuring results. Keep a control group in every campaign: send nothing to 10% of the segment and compare return rates. That tells you whether the message worked or people would have come back anyway.
- Looking only at spend. One large one-off B2B order can make a customer look like a champion. Flag such cases separately.
Questions and answers
How many customers do I need for RFM?
There is no hard minimum, but with fewer than a few hundred customers the segments are tiny and it's easier to review each person by hand. From a few hundred upward RFM starts saving time, and with thousands it's hard to work without it.
Does it work for services such as clinics and salons?
Yes, use visits or payments instead of orders. Just adjust the Recency thresholds to the service cycle: 30–45 days for a haircut, six months for a dental check-up.
How is RFM different from cohort analysis?
Cohort analysis shows how a group of customers returns over time, which is a business-level question. RFM groups each customer by their current state, which answers "who do I message today, and with what".
Which channel should I use?
The one the customer agreed to and actually responds on. For many businesses that's a Telegram bot and phone calls. Use personal contact for valuable segments and automated messages for large, low-value ones.
Conclusion
RFM analysis turns one customer list into a few clear groups and lets you give each its own message. You can build it in Google Sheets in an evening and then refresh it monthly. The fastest wins usually come from the "At risk" and "Can't lose" segments. If you want to see how much money is sitting in your base, book a free audit with Level Marketing and we'll go through your numbers together.