Skip to content
TriedPrompts

More in Spreadsheets & money data.

Build a cohort retention table in Excel with Copilot Agent Mode

Excel's Copilot Agent Mode built an accurate color-coded cohort retention table, plus a useless chart the reviewer deleted.

Result: WorkedTool: Microsoft Copilot Agent Mode (Excel)Level: AdvancedEvidence: Shown

Copy the prompt

Shown: The article shows screenshots of Copilot at work in Excel and the resulting retention table. Rated , after reopening the source. Rates the evidence, not the result. Failed and partial cases are rated the same way. How we rate evidence

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 they had to delete. The reviewer expected the task to take several steps (grouping customers by signup month, counting active customers each month, pivoting into a matrix and dividing by each cohort's first month) and says Agent Mode did it exactly as expected. The reviewer's conclusion is that you still need to know your data and question the outputs.

WorkedPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

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 and Claude open 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, Anthropic 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 coloring.
- 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%.

AI tool

Microsoft Copilot Agent Mode (Excel)

Source

Posted
by Josef Waples (DataCamp)
Last checked
Method:
How we verify

https://www.datacamp.com/blog/agent-mode-in-excel

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Spreadsheets & money data

More in DataRandom case in Data