Analyze a spreadsheet with ChatGPT

Upload an Excel workbook, ask questions about its data and check the resulting analysis.

Updated

What you will create

Produce a monthly sales summary with calculations you can check. The aim is more than an attractive chart: you should know which rows were included, how amounts were added and which anomalies still need attention.

Before you start

Work on a copy of your file. Remove names, email addresses and other personal information unnecessary for the analysis. Prepare one row per sale and clearly named columns, such as Date, Product, Quantity and Amount. Record the currency and what each amount means: before or after tax, before or after refunds. Do not mix these definitions.

Step-by-step

  1. Upload the Excel or CSV file. Specify which sheet to analyse. First request an inventory of columns, row count and date range rather than an immediate business conclusion.
  2. Check anomalies. Ask for missing dates, non-numeric amounts and possible duplicate rows to be identified. An apparent duplicate may be a genuine second order: do not remove it without a business rule.
  3. Define the calculation. For monthly totals, specify the date and amount columns, how to handle refunds and which rows to exclude. Ask for exclusions to be listed.
  4. Create the summary. Request the total and number of sales per month, followed by a suitable chart. A time series should keep months in chronological order, including periods with no sales.
  5. Validate before using it. Recalculate one month in the original spreadsheet and compare the results. If they differ, investigate filters, dates and exclusions before interpreting a trend.

Example to adapt

Analyse the Sales sheet in the attached file. First list the columns and anomalies without changing the data. Then calculate the sum of Amount by month using Date, and the number of included rows. Amounts are in euros including tax; keep negative refunds. Do not invent missing values. Show excluded rows separately and explain why they were excluded. Provide a monthly table and explain how to reproduce the calculation.

The column names are examples: replace them with those in your file. If your table does not include refunds, do not request revenue net of refunds.

Check your result

  • Do the period and sheet match your request?
  • Do the monthly totals add up to the overall total for included rows?
  • Are exclusions explained and units specified?
  • Does an independently checked calculation produce the same result?

Common problems

Dates are misinterpreted: specify day/month/year and check several examples. The total looks too high: check for subtotal rows treated as sales or duplicate entries. Amounts disappear: inspect decimal separators and numbers stored as text. The chart suggests a cause: distinguish an observed change from an explanation that would require additional data.

Next steps

Explore the ChatGPT profile and refine your requests with the guide to writing a good prompt.