AI Learn
OpenAI · ChatGPT Tutorial

ChatGPT: Analyze spreadsheets with ChatGPT

Inspect the data first, define the metric, run the analysis, then verify the calculations and assumptions.

Reviewed September 20, 2026Independent tutorialFeatures may vary
Not official support. AI Learn is an independent education site and is not affiliated with OpenAI. Check the provider’s current documentation for plan-specific limits, pricing and feature availability.
Before you start

Data analysis is most reliable when the table is structured and the question is measurable. Treat generated conclusions as analysis to review, not an automatic source of truth.

1. Prepare the table

Use clear column headers, one record per row, consistent units and dates, and remove decorative empty rows or merged cells when possible.

2. Ask for a schema check first

Before conclusions, ask ChatGPT to list columns, types, missing values, date coverage, suspicious duplicates and unit ambiguities.

3. Define the metric in plain language

Write exactly how the KPI should be calculated and which rows or periods should be excluded. Do not assume the model shares your business definition.

4. Request the analysis and the method

Ask for the table/chart plus the calculation logic, assumptions and any code-backed steps that matter to the result.

5. Spot-check the result

Recalculate a few important numbers manually or in the source spreadsheet, and investigate any result that conflicts with the raw data.

Try this prompt

First inspect this dataset. Report columns, data types, date range, missing values, duplicates, unit issues and anything that could invalidate analysis. Do not draw business conclusions yet. Then wait for my metric definition.

Common mistakes

Jumping directly to “what insights do you see?”; mixing percentages and raw counts; ignoring missing rows; interpreting correlation as causation; trusting a chart without checking its aggregation.

Finish check

The final output should include the metric definition, the result, the method used, limitations, and a small set of numbers you independently verified.

开始之前

当表格结构清晰、问题可量化时,数据分析更可靠。模型给出的结论应该被当作“待复核分析”,而不是自动正确的事实。

1. 先把表格整理干净

第一行使用明确字段名,每一行代表一条记录,单位和日期格式保持一致;尽量去掉装饰性空行与合并单元格。

2. 先让它检查数据结构

先不要急着要结论。要求列出字段、类型、缺失值、日期范围、疑似重复项和单位不明确的问题。

3. 用自然语言写清指标公式

明确 KPI 到底怎么算、排除哪些行或时间段。不要假设模型知道你公司的内部口径。

4. 要结果,也要方法

要求同时给出表格/图表、计算逻辑、关键假设,以及影响结论的代码或处理步骤。

5. 人工抽查关键数字

在原表中手动重算几项关键数值。任何与原始数据直觉冲突的结果,都要继续追查。

可以直接套用的提示词

先检查这份数据:列出字段、数据类型、日期范围、缺失值、重复项、单位问题,以及任何可能让分析失真的因素。现在先不要给业务结论,等我确认指标口径后再继续。

常见错误

一上来就问“有什么洞察”;混用百分比和绝对数量;忽略缺失数据;把相关性当成因果;图表做出来后不检查聚合逻辑。

完成检查

最终输出应包含:指标定义、结果、使用的方法、局限,以及你自己已经核验过的一小组关键数字。

開始之前

當試算表結構清晰、問題可量化時,資料分析更可靠。模型給出的結論應該被當作“待復核分析”,而不是自動正確的事實。

1. 先把試算表整理乾淨

第一行使用明確字段名,每一行代表一條記錄,單位和日期格式保持一致;盡量去掉裝飾性空行與合併單元格。

2. 先讓它檢查資料結構

先不要急著要結論。要求列出字段、類型、缺失值、日期範圍、疑似重復項和單位不明確的問題。

3. 用自然語言寫清指標公式

明確 KPI 到底怎麼算、排除哪些行或時間段。不要假設模型知道你公司的內部口徑。

4. 要結果,也要方法

要求同時給出試算表/圖表、計算邏輯、關鍵假設,以及影響結論的程式碼或處理步驟。

5. 人工抽查關鍵數字

在原表中手動重算幾項關鍵數值。任何與原始資料直覺衝突的結果,都要繼續追查。

可以直接套用的提示詞

先檢查這份資料:列出字段、資料類型、日期範圍、缺失值、重復項、單位問題,以及任何可能讓分析失真的因素。現在先不要給業務結論,等我確認指標口徑後再繼續。

常見錯誤

一上來就問“有什麼洞察”;混用百分比和絕對數量;忽略缺失資料;把相關性當成因果;圖表做出來後不檢查聚合邏輯。

完成檢查

最終輸出應包含:指標定義、結果、使用的方法、局限,以及你自己已經核對過的一小組關鍵數字。

Official references

Check current product details at the source

Related practical tutorials

Continue with another single-task workflow.

All tutorials →