Build a cohort retention table in Excel with Copilot Agent Mode
- Posted
- by Josef Waples (DataCamp)
- Last checked
- Method:
- How we verify
Evidence: Article or interviewA newsletter, journalist or interview account of what happened.
Outcome
Given a long table of customers by period, Excel's Copilot Agent Mode built a color-coded cohort retention table that DataCamp's reviewer found accurate to the data; it also added a useless chart he had to delete.
Agent
Microsoft Copilot Agent Mode (Excel)
Prompt Recreated prompt
The source didn't share its exact prompt, so we wrote this from what it describes.
Before you start, ask me 1–3 short questions about the details below and wait for my answers. Once I've answered, confirm the plan in one line and run the whole task start to finish. Goal: Turn my customer activity table into a cohort retention table. Quick-check questions: Which columns are customer ID, signup date and activity date, and monthly or weekly cohorts? What I'll give you: - The table in Excel - Cohort period (month or week) - Which sheet holds the data Rules: - Group users by signup period, count active users in each later period and divide by period 0. - Put the result on a new sheet; don't overwrite my data. - Show the formulas so I can check them. - Skip charts unless I ask. - If a customer appears in more than one cohort, use their first signup date. Output: A triangular retention table with percentages and a short note on the method. If my answers leave a gap, make a sensible choice, say what you assumed, and keep going. You'll know it worked when: each row starts at 100% and the counts match the raw data.
Try this in:
Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini opens empty, so we copy the prompt for you to paste. Every button also copies it.
The source used Microsoft Copilot Agent Mode (Excel), which can take actions in a browser or app. These are general chat tools, so results may differ, and a normal chat may only give you a plan.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Before you start, ask me 1–3 short questions about the details below and wait for my answers. Once I've answered, confirm the plan in one line and run the whole task start to finish. Goal: Turn my customer activity table into an accurate cohort retention table. Questions to ask me first: - Which columns hold customer ID, signup date and activity date? - Monthly or weekly cohorts? - Active users or revenue? Inputs (fill in or confirm): - The Excel table and sheet name - Columns for customer ID, signup date, activity date - Cohort period (month or week) - Whether to count revenue or active users Rules: - Group customers by signup period; count distinct active customers in each later period; divide by period-0 size. - Put results on a new sheet; never overwrite the source data. - Show the formulas or pivot used so I can audit them. - Format as a triangle with percentages and conditional colouring. - Skip charts unless I ask. If you get stuck: If dates are stored as text, convert in a helper column and tell me. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: Check every cohort's period 0 is 100% and that counts in period 0 equal distinct signups. Output: Retention sheet, method note and a short read of the main trend. Done when: the table reconciles with the raw data and each row starts at 100%.
Source
https://www.datacamp.com/blog/agent-mode-in-excel
Related cases
- Build a credit risk scorecard in Excel with Claude in ExcelImproved promptEvidence: Shown on videoPartial
Given a credit risk dataset and a brief for an Excel-native scorecard, Claude in Excel built a polished 28-sheet workbook but skipped the variable clustering, ran the model in JavaScript and reported 0.706 AUC on training data with no split; ChatGPT followed the method and got 0.627 on test data.
Claude (Excel) · Data · Source date:
- Fill missing industry details in a customer sheet with Zapier AgentsRecreated promptEvidence: Company case study
UK energy company egg set up a Zapier Agent that finds customers with missing industry details in a HubSpot-fed Google Sheet, searches for the information and updates the sheet; Zapier says it now takes about five minutes and egg no longer pays a contractor for it.
Poster says:About 5 minutes; contractor no longer needed
Zapier Agents · Data · Source date:
- Merge provider price CSVs into one comparison table with Claude CodeRecreated promptEvidence: Described by poster
Claude Code read several local CSVs of model prices from different providers and produced one organized comparison table grouped by provider.
Claude Code · Data · Source date: