All Guides

ChatGPT Data Analysis for Sales Spreadsheets

The complete ChatGPT data analysis guide for small business owners. File preparation, sales calculations, checks, and reporting covered step by step.

Thomas EchezabalUpdated September 7, 202613 min read
An illustrated sales ledger, chart, and magnifying glass beside the title ChatGPT data analysis

Use ChatGPT data analysis to inspect a sales file, calculate a summary, and check the numbers before you use them. Start with a copy of your CSV or Excel file, open a regular chat at ChatGPT, and attach the file. You will leave with a checked sales table and a short reporting note.

You need file uploads and data analysis available in your account, plus permission to share the data. You work in a regular chat by attaching a file and giving written instructions. If you want to practice without customer information, use the downloadable file below before uploading your own export.

Key takeaways

A useful sales analysis combines a prepared file, explicit calculation rules, and numbers you can check against the source.

  • Start with one approved CSV or Excel export, not your entire business history.
  • Inspect duplicate rows and cancelled orders before requesting totals.
  • Define refunds and product costs before asking for net sales or margin.
  • Compare the practice result with the independently calculated answer key.
  • Keep accounting decisions with your source system and accountant.

What can ChatGPT data analysis do with a sales spreadsheet?

ChatGPT data analysis can summarize uploaded rows, calculate totals, compare groups, and create charts. You give it the business question and the calculation rules; ChatGPT uses the file to work through the answer.

Suppose you sell products both online and in a shop. Your export contains order amounts, refunds, and sales channels, but you want one table showing net sales by channel. ChatGPT can help assemble that table and explain the result in ordinary language.

OpenAI's data analysis documentation lists spreadsheets such as CSV and Excel files among supported inputs. ChatGPT can run calculations on the file and explain which method it used.

A convincing explanation does not prove that ChatGPT counted the right rows. It can choose the wrong method, miss part of a complex file, or infer a definition you never supplied. Keep a copy of the original export and a few known totals for comparison.

Your taskBest starting pointReason to keep a human check
Explore an unfamiliar export and draft a summaryChatGPT with a copy of the fileIt can misunderstand columns and exclusions
Repeat the same settled calculation every weekYour spreadsheet's saved formulas or reportSomeone must maintain the rules when the export changes
Establish official revenue, tax, or accounting figuresYour accounting system and accountantA chat analysis is not the accounting record
Keep the same reporting instructions across conversationsA ChatGPT ProjectInstructions still need review when your business rules change

Prepare a file that ChatGPT can read

A well-prepared sales file has descriptive headers, one record per row, and consistent dates and currency. Clear structure reduces the number of assumptions ChatGPT must make before calculating anything.

If you run a service business, your export might include booked jobs, deposits, completed work, and cancellations. Those are different events. Decide whether you are reviewing bookings, payments received, or completed sales before you ask for a total.

  1. Save a separate working copy. Keep your original export unchanged. Start with one month and one relevant table rather than uploading your entire business history.
  2. Remove unnecessary private information. Delete customer names, email addresses, street addresses, payment details, and free-text notes when the analysis does not need them. Keep anonymous order IDs if you need to identify repeated rows.
  3. Check the headings. Use labels such as order_id, status, and refunds_usd. State whether each row represents an order or one item within an order.
  4. Write the definitions beside your task. Explain how to treat refunds, discounts, cancelled orders, tax, shipping, and currency. A column called amount does not explain which of those it includes.

OpenAI recommends descriptive first-row headers and avoiding unrelated tables or empty rows that split the data. For your first attempt, use a CSV when you only need one plain table; keep Excel format when separate sheets contain information the analysis needs.

Do not delete repeated order IDs automatically in your real file. An order with several products can appear on several legitimate rows. The practice exercise below uses one row per order and includes an exact duplicate on purpose.

Try a practice file with known answers

The practice file is a small, invented sales dataset with a duplicate and cancelled orders. Its answer key gives you something concrete to compare with ChatGPT's result before using your own data.

Download the sales practice CSV. The file contains no customer information or real business transactions. The calculations below come from a separate verification script, checked with both decimal and integer arithmetic. They are reference answers, not a claim about a tested ChatGPT response.

For this exercise, use these rules:

  • Treat each unique order ID as one order. Remove only the exact repeated copy of order S004.
  • Include orders whose status is Completed. Exclude the cancelled orders.
  • Calculate net sales as gross sales minus refunds. All monetary columns use US dollars.
  • Calculate illustrative gross profit as net sales minus the listed product cost. For this exercise only, keep the listed product cost unchanged after refunds.
CheckReference answer
Raw data rows, excluding the header11 rows
Unique order IDs10 orders
Completed orders after duplicate removal8 orders
Gross sales for included orders$1,100
Refunds for included orders$80
Net sales$1,020
Online net sales$650
Store net sales$370
Listed product cost for included orders$632
Illustrative gross profit$388
Illustrative gross margin38.04%

The unfiltered sum of the gross-sales column is $1,700. That number includes cancelled orders and a duplicate, and it ignores refunds. A polished report could repeat it without an obvious arithmetic error, even though it answers the wrong question.

The channel totals provide another check: online net sales plus store net sales must equal the overall net-sales result. The machine-readable answer key records the calculation rules and file checksum for anyone who wants to verify the fixture.

Run the ChatGPT data analysis in three passes

A three-pass analysis separates file inspection, calculation, and interpretation. This sequence lets you correct the inputs before ChatGPT writes a narrative around them.

If you manage a café, you might want a weekly sales note rather than a product-by-product investigation. Start with the practice CSV to learn the checks, then use the same sequence with your own approved export and definitions.

1. Ask ChatGPT to inspect the file

Open a new regular chat and attach the practice CSV to your message. Confirm that the attachment shows the intended filename before sending the instructions below. If your account cannot upload files, stop here and check the account's capabilities or remaining upload allowance.

Read the attached sales CSV before calculating any totals. List the filename, number of data rows, column names, date range, and status values. Identify missing values and exact duplicate rows. Each row should represent one order. Do not remove anything yet, and do not invent values or explain why sales changed. Show me what needs a decision first.

Compare the reply with the file. ChatGPT should identify the repeated S004 row and the cancelled orders. If it cannot account for the rows or columns, fix that before asking for a chart.

2. Supply the rules and request a checked table

After you review the inspection, give ChatGPT explicit calculation instructions. The following text applies to the practice file, not to every business export.

Use these rules for the attached practice file: remove the exact duplicate copy of S004, keep only Completed orders, and calculate net sales as gross_sales_usd minus refunds_usd. Calculate illustrative gross profit as net sales minus product_cost_usd, keeping the listed product costs unchanged after refunds for this exercise. Show the included order count, gross sales, refunds, net sales, product cost, gross profit, and gross margin. Show net sales by channel and confirm that the channel totals equal overall net sales. List the excluded rows and the reason for each exclusion. Use calculations, not estimates.

Check the answer against the reference table. Ask ChatGPT to show which included rows contribute to any total that disagrees. Do not accept a second explanation of the same wrong number as a correction.

3. Ask for the reporting note

Once the totals agree, ask ChatGPT to translate the checked table into a short note. Keep the interpretation within what the file can support.

Write a short owner-facing sales note using only the checked table. Include net sales, the channel split, and the refund total. Separate observed facts from possible explanations. Do not claim a cause, a growth trend, or an improvement without the required comparison data. End with one useful question the file cannot answer and name the additional data needed.

You should receive a summary you can review alongside the numbers. This sample covers only one period, so ChatGPT cannot establish month-over-month growth from it. For a real report, supply a comparable earlier period before asking what changed.

Here is a walkthrough of inspecting a messy workbook and checking basic totals before trusting a deeper analysis.

Video: I Gave ChatGPT a Messy Excel File. Here's What Happened, from Leila Gharani. The workbook differs from this guide's practice file.

Check the result before you act on it

A control total is a number you already know from the source and use to check another calculation. Matching control totals gives you a reason to continue reviewing; it does not prove that every explanation or recommendation is correct.

For an online store, you might compare the order count, refunds, and net sales against the same filtered period in your sales system. If the systems disagree, check definitions and exclusions before deciding that one calculation is wrong.

SymptomCheck next
The total is too highDuplicate rows, cancelled orders, tax, shipping, or ignored refunds
The total is too lowMissing sheets, date filters, excluded statuses, or incomplete file processing
The margin looks implausibleThe cost column, refund treatment, and whether margin uses net sales as its denominator
The summary explains a sales changeWhether the file contains evidence for the cause or only a difference
The chart looks right but the table disagreesThe chart's source rows, groupings, and units

Ask for a chart only after the table passes your checks. OpenAI notes that ChatGPT may select a method or chart type that does not match your intent, so specify the grouping and units rather than asking it to make the report look impressive.

Treat the practice margin as a teaching calculation. Real costs, returns, tax, and revenue recognition can require different treatment; talk to your accountant before using this workflow for accounting decisions.

Keep the reporting routine small

A reusable reporting routine consists of a defined export, written calculation rules, and a short checklist. You can reuse those instructions without turning a one-file analysis into an automated business system.

Keep the reporting rules in a document you control. Record the reporting period, included statuses, refund treatment, and the totals you compare against. If your export changes, inspect the new columns before reusing last month's instructions.

For continuing work, ChatGPT Projects can keep related files and instructions together. If your next task is editing the report's prose, the ChatGPT Canvas guide covers that separate writing surface. Neither feature is required to complete this exercise.

Frequently asked questions

These answers cover the file, privacy, and calculation limits that matter before you use ChatGPT for recurring sales reports.

Do I need a paid ChatGPT plan?

You need file upload and data analysis available in your account, with enough remaining allowance for the task. Availability and limits can vary by plan, model, and workspace settings. Check the current File Uploads FAQ rather than buying a plan based on a fixed limit in an older tutorial.

Can I use CSV instead of Excel?

ChatGPT supports both CSV and Excel files for data analysis. CSV suits a single plain table; Excel preserves multiple sheets when your task depends on them. Describe the relevant sheets if the workbook contains several tables.

Is uploading customer sales data safe?

Your permission to share the data and your account's policies determine what you should upload. Remove unnecessary identifiers, use a working copy, and review OpenAI's Data Controls FAQ. A privacy setting does not replace your obligations to customers or your organization.

Can ChatGPT calculate profit from sales alone?

ChatGPT needs cost information and your definition of profit. Revenue alone cannot establish profit, and the practice file's illustrative gross profit excludes overhead and other business costs. Ask your accountant which calculation belongs in your real report.

What if ChatGPT returns different numbers each time?

Check the source rows, exclusion rules, and calculation definitions before changing models. Ask it to show the included rows and reconcile the subtotals. If you cannot resolve the discrepancy, keep the authoritative calculation in your source system and do not use the chat's result.

Keep learning the repeatable skills

Preparing data, defining the question, and checking an answer are skills you can reuse across business tasks. I teach those habits because a report is useful only when you understand what went into it. Use the newsletter form below for future practical lessons, and browse the guide library when you have a specific task to learn.

One free AI workflow, every Tuesday

Each week I break down what changed in AI and walk you through setting up one workflow, step by step. Subscribers also get first notice when my academy opens.

Built for non-technical business owners. Free to join, unsubscribe anytime.

Thomas Echezabal

About the Author

Thomas Echezabal helps small business owners automate their busywork with AI and get real hours back each week. He has worked with small businesses his entire career, including 200+ clients on Fiverr.

Related Guides