Level Marketing / Articles / Running a business

RFM analysis in Google Sheets: scoring customers 1–5

December 1, 2026 · 8 min read

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.

ColumnWhat it isNote
Customer IDPhone number or CRM IDOne customer, one ID: merge duplicates first
DateOrder dateOne consistent format
AmountOrder value, soumsRemove 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.

  1. Column A, unique customers: =UNIQUE(Sales!A2:A).
  2. Column B, last purchase date: =MAXIFS(Sales!B:B,Sales!A:A,A2).
  3. Column C, days since last purchase: =$H$1-B2.
  4. 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.
  5. Column E, total spend: =SUMIFS(Sales!C:C,Sales!A:A,A2).
  6. Columns F, G and H: the R, F and M scores (below).
  7. 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.

ScoreRecency (days)Frequency (orders)Monetary (thousand soums)
50–308+over 3,000
431–605–71,500–3,000
361–1203–4700–1,500
2121–2402300–700
1over 2401under 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.

SegmentRule (R, F)MeaningWhat to send
ChampionsR 4–5, F 4–5Bought recently and oftenEarly access, ask for referrals, no discounts
LoyalR 3–5, F 3–5 (the rest)Come back regularlyRelated products, loyalty bonus
PromisingR 4–5, F 2Made a second purchaseA reason for the third, bundles
NewR 5, F 1First purchase was recentUsage tips, second-purchase offer
Need attentionR 3, F 1–2Cooling offReminder, new arrival
At riskR 1–2, F 3–5Good customers who disappearedPersonal message or call, ask why
Can't loseR 1–2, F 5, M 5Most valuable, but leavingCall from a manager, special offer
SleepingR 1–2, F 1–2Came once or twice and forgotRare 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:

CustomerDays since purchaseOrdersSpend (thousand soums)R-F-MSegment
A1294,2005-5-5Champion
B4521,1004-2-3Promising
C15062,4002-4-4At risk
D2012505-1-1New
E30011801-1-1Sleeping
F9526003-2-2Need attention
G210105,1002-5-5Can't lose
H3539004-3-3Loyal

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.

More on this topic

Read next