Skip to content
1 min read

Data Analysis, Excel & SQL prompt templates

Prompt templates

Get step-by-step formulas or SQL with data checks, validation and a plain-English interpretation.

Answer real questions with your own data, and understand every step. Students get Excel formulas or SQL queries explained line by line, data-cleaning checks, sample output and practice tasks, with academic honesty built in. Analysts get production-quality, commented queries or workbook logic with metric definitions, quality checks, reconciliation and a stakeholder-ready output spec. Nothing is invented: results that depend on your data are marked to run and check.

โš™๏ธ ChatRuns as a normal ChatterMate.Ai chat.๐Ÿงพ 4 samples with real outputsโœจ ChatterMate.Ai All-in-one AI workspace: chat, Canvas, Writer, slides and images.โœจ TutorMigo.ai AI tutor for students: learn, practise and prepare for exams.๐Ÿ’ฐ Finance & Fintech๐ŸŽ“ Education & EdTech๐Ÿ›’ Retail & E-commerce๐Ÿ’ป Tech, SaaS & Software
  1. Learn the template. Hover each coloured slot and ? to see what goes where and why.
  2. Study a sample. Compare the filled prompt with its real output preview.
  3. Make it yours. Fill in the blanks, then ๐Ÿš€ Try it in ChatterMate.Ai.

Switch level: the template, slots and samples change together.

Prompt template ๐ŸŽ“ Student

Students learning Excel, Google Sheets or SQL for a course, project or homework.

Hover or tap a coloured slot to see what to write. Every block has a ? that explains why it is there. Fill the blanks, then Try it in ChatterMate.Ai.

Role01Why Role?Sets the expertise and voice. A specific expert role pulls in the right vocabulary, standards and judgement.

You are a patient data analysis tutor who teaches ToolExcel, Google Sheets, SQL dialectโ€ฆe.g. Excel (Microsoft 365) by solving real tasks step by step.

Goal02Why Goal?One clear outcome and why it matters. The model optimises for what you name here.

Help me answer QuestionWhat you want to find oute.g. whether more sleep goes with higher midterm scores with ToolExcel, Google Sheets, SQL dialectโ€ฆe.g. Excel (Microsoft 365) and understand every step so I can do it myself.

Context03Why Context?Facts the model cannot guess: your situation, background and known limits.

Course or project: CourseClass, assignment or projecte.g. first-year Psychology research methods. My level: Skill levelWhat you already know and what confuses youe.g. I know SUM and AVERAGE, never used pivot tables.

Audience04Why Audience?Who reads the result decides depth, tone and jargon.

Me, a learner: explain each formula or query in one plain sentence.

Inputs05Why Inputs?The material to use, and an explicit rule not to invent anything outside it.

My data: DataColumns or tables with names and what they hold (no personal data)e.g. A StudentID, B SleepHours, C StudyHours, D MidtermScore. Use only these columns; never invent values or results; write [run to check] where results depend on my data.

Steps06Why Steps?An ordered procedure makes the model plan before it writes, which improves structure and accuracy.

1. Restate the question as a measurable analysis. 2. Check and clean the data (blanks, duplicates, types). 3. Formulas or queries in order, each with a one-line explanation. 4. Expected output shape with a tiny example. 5. What the result would mean, and its limits. 6. Two practice variations.

Constraints07Why Constraints?Length, must-include, must-avoid and honesty rules. Constraints turn a generic answer into a usable one.

Only built-in features of ToolExcel, Google Sheets, SQL dialectโ€ฆe.g. Excel (Microsoft 365); no add-ins; correlation is not causation; explain so I learn, not just copy.

Tone & style08Why Tone & style?Voice, formality and style words keep the output on-brand and appropriate.

Encouraging, precise; define any jargon.

Output format09Why Output format?The exact structure you want back: headings, tables, code, sections. Saves a rewrite.

Document: question, data checks table, numbered steps with code or formula blocks, sample output table, interpretation, common errors, practice tasks.

Example10Why Example?A short good example anchors the pattern (few-shot prompting).

=AVERAGEIFS(D:D, B:B, ">=8") averages midterm scores for 8+ hours of sleep.

Self-check11Why Self-check?Acceptance criteria the model verifies before answering. Catches gaps and invented facts.

Check: my real column names used; syntax valid for ToolExcel, Google Sheets, SQL dialectโ€ฆe.g. Excel (Microsoft 365); no invented results; limits stated.

Follow-up12Why Follow-up?Tells the model what to ask or offer next, so the conversation keeps improving the result.

Offer to check my results when I paste them and ask which step was hardest.

โœจ Sample prompts built from this template

2 examples ยท each with a real output you can preview, copy and download

๐ŸŽ“ Student๐Ÿ“„ Document๐ŸŽ“ Education & EdTech

Excel: sleep vs midterm scores

Psychology student analysing a class survey to see whether sleep relates to exam results.

Prompt ยท 1,719 chars
ROLE: You are a patient data analysis tutor who teaches Excel (Microsoft 365) by solving real tasks step by step.
GOAL: Help me answer whether students who sleep more score higher on the statistics midterm with Excel (Microsoft 365) and understand every step so I can do it myself.
CONTEXT: Course or project: first-year Psychology research methods. My level: I know SUM and AVERAGE; never used pivot tables or CORREL.
AUDIENCE: Me, a learner: explain each formula or query in one plain sentence.
INPUTS: My data: class survey, 86 rows, anonymised: A StudentID, B SleepHours (average per night), C StudyHours (per week), D MidtermScore (0-100), E Year (1 or 2). Use only these columns; never invent values or results; write [run to check] where results depend on my data.
STEPS: 1. Restate the question as a measurable analysis. 2. Check and clean the data (blanks, duplicates, types). 3. Formulas or queries in order, each with a one-line explanation. 4. Expected output shape with a tiny example. 5. What the result would mean, and its limits. 6. Two practice variations.
CONSTRAINTS: Only built-in features of Excel (Microsoft 365); no add-ins; correlation is not causation; explain so I learn, not just copy.
TONE: Encouraging, precise; define any jargon.
OUTPUT FORMAT: Document: question, data checks table, numbered steps with code or formula blocks, sample output table, interpretation, common errors, practice tasks.
EXAMPLE: =AVERAGEIFS(D:D, B:B, ">=8") averages midterm scores for 8+ hours of sleep.
SELF-CHECK: Check: my real column names used; syntax valid for Excel (Microsoft 365); no invented results; limits stated.
FOLLOW-UP: Offer to check my results when I paste them and ask which step was hardest.
Make it yours
  • Use your real column letters; the formulas are written for A to E.
  • Say if you use Google Sheets; a few functions and menus differ.
  • Add your assignment rubric so the interpretation matches what is marked.
Follow-up prompts (3)

Paste follow-ups into the same ChatterMate.Ai conversation so the first result stays in context.

Sample output
Step-by-step Excel guide: data checks, AVERAGEIFS bands, CORREL, pivot table, chart, interpretation and practice tasks.
Step-by-step Excel guide: data checks, AVERAGEIFS bands, CORREL, pivot table, chart, interpretation and practice tasks. Example output; yours will differ.
Open .html .md
Page

SQL: library loans homework

Database student practising joins and GROUP BY on a library schema for weekly homework.

Prompt ยท 1,706 chars
ROLE: You are a patient data analysis tutor who teaches SQL (SQLite) by solving real tasks step by step.
GOAL: Help me answer which book genres are borrowed most, and which members currently have overdue books with SQL (SQLite) and understand every step so I can do it myself.
CONTEXT: Course or project: Intro to Databases, week 6 homework. My level: I know SELECT and WHERE; joins and GROUP BY confuse me.
AUDIENCE: Me, a learner: explain each formula or query in one plain sentence.
INPUTS: My data: tables members(member_id, name, joined_on), books(book_id, title, genre), loans(loan_id, book_id, member_id, loaned_on, due_on, returned_on, null if not returned). Use only these columns; never invent values or results; write [run to check] where results depend on my data.
STEPS: 1. Restate the question as a measurable analysis. 2. Check and clean the data (blanks, duplicates, types). 3. Formulas or queries in order, each with a one-line explanation. 4. Expected output shape with a tiny example. 5. What the result would mean, and its limits. 6. Two practice variations.
CONSTRAINTS: Only built-in features of SQL (SQLite); no add-ins; correlation is not causation; explain so I learn, not just copy.
TONE: Encouraging, precise; define any jargon.
OUTPUT FORMAT: Document: question, data checks table, numbered steps with code or formula blocks, sample output table, interpretation, common errors, practice tasks.
EXAMPLE: =AVERAGEIFS(D:D, B:B, ">=8") averages midterm scores for 8+ hours of sleep.
SELF-CHECK: Check: my real column names used; syntax valid for SQL (SQLite); no invented results; limits stated.
FOLLOW-UP: Offer to check my results when I paste them and ask which step was hardest.
Make it yours
  • Paste your exact CREATE TABLE statements if column names differ.
  • Tell it your SQL dialect; date functions differ between SQLite, MySQL and PostgreSQL.
  • Ask for one query at a time if you want to try each step yourself first.
Follow-up prompts (2)

Paste follow-ups into the same ChatterMate.Ai conversation so the first result stays in context.

Sample output
SQL walkthrough: join diagram, GROUP BY by genre, overdue query with dates, sample output, common errors and practice.
SQL walkthrough: join diagram, GROUP BY by genre, overdue query with dates, sample output, common errors and practice. Example output; yours will differ.
Open .html .md
Page

๐Ÿ’ก Pro tips

  • Give exact column and table names; queries and formulas are written against them.
  • Ask for data checks first: most wrong answers come from blanks, duplicates or mixed types.
  • Paste your results back and ask for an interpretation, so conclusions match the real numbers.
  • State your tool version or SQL dialect; functions differ.

โš ๏ธ Common mistakes

  • Accepting numbers the model could not have computed without your data.
  • Reading correlation as cause and effect.
  • Joining tables at the wrong grain, which silently double-counts.
  • Skipping validation against a known total before sharing results.

Build it for real in ChatterMate.Ai

Chat, Canvas apps and dashboards, Writer documents, slides and images in one workspace. Start free; no setup.

Start free

Learn it with TutorMigo.ai

A patient AI tutor for students: practise, get feedback and prepare for exams, the honest way.

Try TutorMigo.ai