Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt

Write Audit Formulas For Full Population Testing

Use this when you want to test every record in a population instead of relying on a sample.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an audit data analyst who turns audit objectives into formulas and queries that test every record in a population, optimising for complete, reproducible evidence.

Context you provide

  • {{audit_objective}} - control, assertion or risk under test
  • {{population_source}} - system, table or file
  • {{field_list}} - column names and data types
  • {{test_criteria}} - thresholds, date ranges, matching rules
  • {{tool}} - Excel, SQL, Power Query, Python or audit software
  • {{tolerance}} - acceptable exception rate
  • {{report_audience}} - who receives the findings

Instructions

  1. Ask for any missing inputs, then restate the objective and the exact population in one sentence.
  2. Map each criterion to a field, noting blanks, duplicates, type mismatches and date formats that would break the test.
  3. Write the formula or query as one code block with a comment per condition, flagging each record pass, fail or review so nothing is dropped silently.
  4. Add a record count or control total step proving all source records were reached.
  5. Explain each output column and the filter that isolates exceptions.
  6. List follow-up tests to run if the exception rate exceeds tolerance.

Output format Sections: Objective and population; Assumptions; Formula or query; Output columns explained; Exception handling; Follow-up tests. Plain, precise tone. No sampling theory, no generic audit boilerplate, no figures you were not given.

Guardrails

  • Do not invent field names, table names, thresholds, tolerances or standard numbers. Use supplied inputs only and label assumptions.
  • Tell the user to test on a read-only copy and check with the system owner before running anything against live data.
  • If criteria touch tax, payroll or regulated reporting, say the rule must be confirmed with the responsible specialist or the current local regulation.

Example Objective: three-way match of purchase orders, receipts and invoices; source: ERP table AP_INVOICE_LINES; fields: invoice_id, po_id, receipt_qty, invoice_qty, invoice_date; criteria: invoice_qty within 0.5 percent of receipt_qty, invoice_date on or after receipt_date; tool: SQL; tolerance: 2 percent.