Skip to content
AI PromptsOnline

2026-10-21 · 2 min read · AI Prompts Online Team

ChatGPT Prompts for Data Analysis: From Messy CSV to Clear Findings

ChatGPT prompts for data analysis: cleaning data, exploratory analysis, Excel and SQL formulas, charts, and checks that catch made-up numbers.

ChatGPT Prompts for Data Analysis: From Messy CSV to Clear Findings

ChatGPT prompts for data analysis are most reliable when you make the model show its work. With code execution turned on, ChatGPT can load your file and run real Python; without it, it can still write the formulas and queries. Either way, every number should trace back to code you can see.

First Look at a File

I've uploaded [file]. Before any analysis: show row and column counts, column types,
missing values per column, and 5 sample rows. Flag columns that look like dates or IDs
stored as text.

Cleaning

Clean the data: trim whitespace, standardize [column] to [format], parse dates in [column],
drop exact duplicates. Report how many rows each step changed. Don't drop rows with
missing values without asking me.

Exploratory Analysis

Question: [business question]. Explore the data to answer it. Show the code, a summary
table, and one chart. State any assumption you made. End with 3 findings ranked by confidence.

Excel and Sheets Formulas

Columns: A=date, B=region, C=revenue. Write a formula for monthly revenue by region in a
summary table, using SUMIFS. Explain each argument.

SQL

Tables: [schema]. Write a query for [question]. Use CTEs, comment each step, and note
any index that would speed it up.

Sanity Checks

CheckPrompt
Totals"Recompute total revenue a second way and compare."
Outliers"List the 10 most extreme values and whether they look like errors."
Joins"Row count before and after the join?"
Causation"Which conclusions are correlation only?"

Browse ChatGPT data analysis prompts and pair this with Gemini prompts for research and analysis.

FAQ

Can ChatGPT analyze a spreadsheet?

With file upload and code execution it can load a CSV or Excel file, run Python on it, and produce tables and charts. Without that, paste a sample and ask for formulas or code to run yourself.

How do I know ChatGPT's numbers are right?

Ask it to show the code it ran, check row counts before and after each step, and recompute one or two key figures yourself in Excel.

Is it safe to upload business data?

Check your company's policy. Remove names, emails, and other personal data, and prefer aggregated or sampled data.

Frequently asked questions

Can ChatGPT analyze a spreadsheet?
With file upload and code execution it can load a CSV or Excel file, run Python on it, and produce tables and charts. Without that, paste a sample and ask for formulas or code to run yourself.
How do I know ChatGPT's numbers are right?
Ask it to show the code it ran, check row counts before and after each step, and recompute one or two key figures yourself in Excel.
Is it safe to upload business data?
Check your company's policy. Remove names, emails, and other personal data, and prefer aggregated or sampled data.

Related articles

Ready to generate a prompt?

Use our free tools to build copy-ready prompts for any model and category.