AI for data analysis: cleaning, summarising and charting spreadsheets with ChatGPT, Copilot, Gemini or Claude

AI assistants such as ChatGPT, Microsoft Copilot, Google Gemini and Claude can clean, summarise and chart spreadsheet data in minutes, but they can miscount, invent figures and mishandle personal data. Use an approved tool, share only the data the task needs, ask the AI to show its method, and check its numbers against the source before anyone relies on them.

Last reviewed 30 October 2026 · General information, not legal advice

What AI can and cannot do with your data

Most workplace AI assistants can now read an uploaded spreadsheet or CSV and work on it: Microsoft Copilot inside Excel, Gemini inside Google Sheets, and ChatGPT and Claude when you attach a file. Many run code behind the scenes to do the counting, which is more reliable than a model guessing numbers from text.

Good uses:

  • Profiling a file: how many rows, which columns, what is missing, what looks odd.
  • Cleaning: standardising dates, names and categories, and flagging duplicates.
  • Writing formulas, pivot tables, SQL or Python you can reuse.
  • Summarising results in plain language for a manager.
  • Suggesting the right chart for a question, and drafting it.

Weak spots:

  • Silent errors: dropping rows on import, misreading a date format, or treating a number stored as text as zero.
  • Invented detail: a confident figure, column or trend that is not in the data.
  • No business context: it does not know that March had a stock-take, or that one branch changed its system.
  • Correlation read as cause: "sales rose after the campaign" is not proof the campaign caused it.

Treat AI as a fast junior analyst whose work you review, not as the final answer. The Data Basics Before You Ask AI lesson shows how to prepare a tidy, minimal extract first.

Before you upload: PDPA and company rules

Pasting a staff list or customer export into an AI tool is processing personal data, and Malaysia's Personal Data Protection Act 2010 applies to personal data processed in commercial transactions. The practical rules:

  1. Approved tool, work account. Use only the AI tools and accounts your company has approved for that class of data. Personal or free accounts may keep or use your inputs in ways your company has not agreed to.
  2. Minimum data. Share only the columns the question needs. Totals by branch rarely need names, IC numbers, phone numbers or addresses.
  3. De-identify where you can. Replace names and IDs with codes, group ages into bands, and hide small counts that could point to one person.
  4. Same purpose. Use the data only for a purpose consistent with what people were told when it was collected.
  5. Sensitive data. Health, biometric and other sensitive personal data need extra care and usually should not go into a general assistant at all.
  6. Transfers abroad. Many AI services process data outside Malaysia. Under section 129 of the PDPA, the controller must have a lawful basis for the transfer; your company's data protection officer should already have assessed the approved tools.

Confidential business data, such as unreleased results, pricing, contracts or customer lists, needs the same care even when it holds no personal data. If your company has an AI usage policy, follow it; if it does not, see our AI usage policy template. The Data Protection for AI lesson covers prompts, files, memory, logs and outputs.

Analysing a spreadsheet with AI, safely: Approved tool, work account; Share the minimum columns, remove IDs; Profile, then clean with a change log; Ask specific questions, get the formula or code; Check totals, row count and sample rows; Record the prompt and the checks.

Cleaning data with AI

Messy exports are where AI saves the most time, and where it can do the most quiet damage. A safe routine:

  1. Keep the original untouched and work on a copy.
  2. Ask for a profile first: row count, columns and types, blanks, duplicates, and values that look wrong.
  3. Agree the rules before any changes: which date format, how to spell branch names, what counts as a true duplicate.
  4. Ask for a change log: every rule applied and how many rows it touched.
  5. Mark gaps rather than letting the AI fill them with guesses.
  6. Check the row count before and after. If 4,812 rows went in and 4,790 came out, find out why.

Practise this in Cleaning Data with AI, a short 3D scene with a fictional sales export, and plan a real job with the free Data Cleaning Plan Workbook.

Summarising, analysing and charting

Once the data is clean, ask specific questions with the audience in mind. "Analyse this" gives generic output; "Which five products lost the most margin between Q2 and Q3, and by how much?" gives something you can check.

Prompts that work:

  • "Using only the attached file, give total sales and gross margin by branch for July to September. Show the formula or code you used and the row count included."
  • "Build a pivot table of overtime hours by department and month. List any department above 15% of total hours."
  • "Suggest the best chart to compare monthly sales for five branches, and explain why. Start the y-axis at zero."
  • "Write a three-sentence summary for the operations manager. State what the data cannot tell us."

For charts, ask for the plain choices: bars for comparing categories, lines for trends over time, and no 3D effects or truncated axes that exaggerate a change. The Analysing a Spreadsheet with AI lesson takes a fictional sales file through margins, pivots, honest charts and the limits of the data. The free Spreadsheet Analysis Workbook helps you plan a real one.

Checking AI outputs before anyone uses them

The single most important habit. Before a number goes into a report or a decision:

  • Tie totals back to the source: the grand total in the AI's summary should match a SUM in the original file.
  • Check the row count the AI says it used.
  • Spot-check three to five rows by hand, including an extreme value.
  • Rerun the formula or code yourself, in the spreadsheet or notebook, rather than trusting the chat text.
  • Ask what it assumed: date ranges, filters, how blanks were treated.
  • Sense-check against what you know: a 300% jump in a stable product line is more likely an error than news.

Keep a short record of the prompt, the file version and the checks done, so a reviewer can follow the work later. Prompting Patterns for Data Work covers prompts that give checkable answers, and Example Prompts for Every Step gives a worked prompt and the matching check for each stage of an analysis.

When to call a data scientist

AI in a spreadsheet covers a lot of everyday reporting. Bring in a data scientist or analytics team when the work involves:

  • Prediction: forecasting demand, scoring churn or estimating risk, where the model must be tested on data it has not seen.
  • Cause and effect: deciding whether a campaign, price change or training programme actually caused a result.
  • Large or linked data: millions of rows, several systems joined together, or data that refreshes every day.
  • Decisions about people: hiring, promotion, credit, pricing for individuals or anything that could be unfair to a group.
  • Anything that will run repeatedly in production, where errors compound and someone must monitor it.

A data scientist will frame the question, check bias and leakage, measure the model honestly and document its limits. AI tools help them too, but the judgement is the job.

Build the skill across your team

The quickest gains come from a few shared habits: a tidy extract, an approved tool, specific prompts, and a check before anything is used. Save prompts that work as team templates with the date, the tool and an example of good output; see ChatGPT prompts for work for the general pattern.

For deeper practice, the AI for Data Science topic on WorkQuest2U takes staff from framing a question through exploring, preparing and modelling data to communicating results, with lessons where you practise each step in a 3D scene and a completion certificate at the end. It is available in English and Bahasa Malaysia, and the free Data Science Prompt Pack (also in Bahasa Malaysia) gives prompts for every step. For broader AI skills across the workforce, see AI training for employees.

Free download

Free Spreadsheet Analysis Workbook

A printable worksheet to plan an AI-assisted analysis: the question, data source and row count, formulas, pivot layout, chart choice, insights with exact figures and what the data cannot answer. Practise with fictional information.

Open the template ▸

Practise it in WorkQuest2U

Short 3D lessons where staff walk the scene, spot the issues and make the calls. Free to try, with certificates and progress records for companies.

🔬AI for Data ScienceSee where data science pays off, frame a question, explore and prepare data, build and evaluate models, prompt AI and check its code, run data pipelines, and deploy, explain and communicate results responsibly.Explore the topic ▸✨AI for EveryoneUnderstand what AI is and how it works, stay safe from AI scams, use AI in daily life and at work, work with data, build agents, and see how data centres, chips and sovereignty shape AI.Explore the topic ▸

Frequently asked questions

Can ChatGPT analyse Excel files?
Yes. ChatGPT, Claude and other assistants can read an uploaded spreadsheet or CSV and run code to summarise, pivot and chart it. Copilot works inside Excel and Gemini inside Google Sheets. Use an approved work account and check the results against the source file.
Is it safe to upload company data to an AI tool?
Only to a tool and account your company has approved for that kind of data. Remove personal identifiers and confidential details the task does not need, and follow your AI usage policy. Personal data remains covered by the PDPA when it goes into an AI tool.
How accurate is AI for data analysis?
Often accurate when it runs code on a clean file, but it can drop rows, misread formats or invent figures. Tie totals back to the source, check the row count, spot-check rows and rerun the formula or code yourself.
Can AI clean messy data?
Yes, and it is one of the most useful tasks: standardising dates and names, flagging duplicates and marking gaps. Keep the original file, agree the rules first, ask for a change log and compare row counts before and after.
Will AI replace data analysts?
It speeds up routine work such as cleaning, formulas and first summaries. Framing the right question, judging data quality, testing models, explaining limits and taking responsibility for the result still need people with analytical skills.

Sources

This guide is general information for workplaces in Malaysia, checked against the sources above on 30 October 2026. It is not legal advice; laws and guidelines change, so confirm the current text before you act.