Tutorials

How to Make a Chart from Spreadsheet Data with AI

We gave an AI a raw traffic export and asked for a chart. It reshaped the data, built the summary with live formulas and drew the chart in 42 seconds. Then we asked a real question, and got a report-ready answer. Here's the whole session.

The SheetAI Team5 min read
Charts from your data: a line rising across a grid of cells while a second line drops sharply. Cover image from the SheetAI blog.

Key takeaways

  • You don't have to reshape an export before charting it. The AI builds the summary table, with live formulas, and charts that.
  • Ask the question you want the chart to answer, not just for "a chart". You get a better chart and a written answer to go with it.
  • A follow-up question is cheap. "What happened from July to September?" turned a one-month comparison into the full story.
  • Say where things should go. "Put the charts side by side to the right of the data" gets you a layout you can screenshot straight into a report.
  • The whole session, four prompts and two finished charts, took 16 credits.

Making a chart in a spreadsheet isn't hard. Making the data chartable is. Most exports, whether from Google Analytics, an ad platform, a CRM or a payment system, come out in a shape no chart can use, and the fix is a pivot table, a few SUMIFS, or ten minutes of copying cells around.

So we tested the whole job, not just the drawing part. We took nine months of website traffic, exported the way these tools usually export it (one row per month per channel, with sessions, signups and spend), opened it in SheetAI, and asked for charts. Everything below is from that session.

The data, and the reshaping nobody wants to do

Here's the problem in one picture. A line chart wants one column per line. The export has one row per month per channel: 36 rows, with the channel name repeated down column B. You can't select a range and press Insert Chart. There's nothing sensible to select.

Two tables side by side. On the left, what the export gives you: a long table of Month, Channel and Sessions, with 2026-01 repeated for Organic search, Paid search, Email and Social. An arrow points right to what the chart needs: a wide table with one row per month and one column each for Organic, Paid, Email and Social. A note says the AI builds the wide table with SUMIFS formulas that point back at the export, so the chart updates when the data does.
Long to wide. This is the step that used to be a pivot table.

Step 1: Ask for the chart in plain English

We started with the simplest prompt we could think of, the one most people actually type:

Make a chart of sessions by channel over time.

The traffic export in columns A to E, a new summary table in G1:K10 with months down the side and Organic search, Paid search, Email and Social across the top, and below it a line chart titled Sessions by Channel Over Time. Organic search climbs from about 8,300 to 12,900; Paid search runs flat around 6,000 to 6,700, then drops to about 2,600 in June and stays there; Email and Social stay flat near 2,500 to 3,400.
42 seconds, 2 credits. It built the summary table in G1:K10 first, then charted that.

It did the boring part properly. The summary table is 36 SUMIFS formulas pointing back at the export, not pasted numbers, so if a figure in the export changes, the chart changes with it. And the chart tells a story immediately: organic search climbing all year, and paid search falling sharply in June, from 6,465 sessions in May to 2,594.

Step 2: Ask the question, not for the chart

"Sessions by channel" is a description, not a question. What you actually want to know when paid search drops by 60% is whether it mattered. So the second prompt asked that:

Paid search was cut back in June. Did total signups drop with it, or did other channels make up the difference? Answer with a chart I could paste into a monthly report, plus two sentences.

Four cards matching questions to chart types. How did it change over time: line chart, up to five or six lines. Which is biggest: bar chart, sorted, horizontal when labels are long, avoid a y-axis that doesn't start at zero. What share of the whole: pie chart, only with a handful of slices. Do these two move together: scatter plot, one dot per row, avoid reading cause into a pattern. A footnote lists the chart types SheetAI draws: line, bar, horizontal bar, pie, scatter and area.
Say the question and the AI can pick the chart. Say "chart" and it has to guess.

It came back with a second line chart, "Monthly Signups by Channel", that included something we hadn't asked for but needed: a Total signups line across the top. That's the line that answers the question.

The second chart, Monthly Signups by Channel, with five lines: Total signups between about 557 and 668, Organic search rising from about 260 to 400, Email steady around 120 to 150, Paid search falling from about 150 to about 60 in June, and Social near 30. The chat says paid search signups fell from 147 to 67 while total signups fell from 668 to 557 in June. 4 credits, 1 minute 25 seconds.
The total line is the answer. The written answer covers the change you asked about: May to June.

The written answer was precise: paid search signups fell from 147 to 67 and total signups from 668 to 557 between May and June. Every number matched the export. But look at the total line after June. It climbs back. That's worth a follow-up question.

Step 3: Follow up, and tidy the layout

Two short follow-ups turned this into something you could send. The first asked what happened to total signups from July to September. The second asked for a report layout: the raw data left alone in columns A to E, and both summary tables and charts side by side to the right, with no chart covering any data.

The answer: 617 signups in July, 563 in August and 642 in September, back within 4% of May. That changes the story completely. And the layout came back the way a report needs it, with two summary tables, two charts beneath them, and the raw data untouched.

The finished sheet at 70% zoom: the sessions summary in G1:K10 with the Sessions by Channel Over Time chart beneath it, and the signups summary in N1:S10, with a Total signups column, above the Monthly Signups by Channel chart. The two charts sit side by side.
The end state: two summary tables with live formulas, two charts side by side, ready to screenshot into a report.

What the data actually said

Since the point of a chart is the conclusion: cutting paid search in June cost about 80 paid signups a month. Total signups dropped 17% in June, then recovered to 642 by September as organic search kept growing, roughly 4% below May. Paid search spend fell from around 6,000 a month to 2,434. Whether trading 4% of signups for 60% of the paid budget is a good deal is a business decision, but the chart makes it an easy one to have.

Four ways to make an AI chart report-ready

Four tips. One, ask the question, not for a chart: a question gets a chart built to answer it plus a written answer. Two, ask for the whole period: month by month answers cover every month. Three, make the title the finding, for example Signups dipped in June and recovered by September. Four, keep the formulas live: ask for the summary as formulas pointing at the export so the chart updates when a number changes.
All four are a sentence in the prompt.

Prompts you can paste

WhenPrompt
First lookMake a line chart of [metric] by [category] over time. Build the summary table with formulas so it updates.
For a report[Your question]? Answer with a chart I could paste into a monthly report, plus two sentences.
Whole periodDescribe the whole period month by month, in one sentence each.
ComparisonBar chart of [metric] by [category] for [period], sorted biggest first.
TitleRetitle the chart so it states the finding, not the data.
LayoutPut the summary tables and charts side by side to the right of the data, with no chart covering any cells.

Would we do it this way again?

Yes. The reshaping and the first chart took forty seconds, something that used to mean building a pivot table, and with live formulas, which a pasted pivot doesn't give you. Asking a real question got us a better chart than we'd have made ourselves: we wouldn't have thought to add the total line. And a one-line follow-up turned a June comparison into the whole summer's story.

Chart your own export

Open the file and ask the question you actually want answered.

Open SheetAI

Frequently asked questions

Can AI make a chart from my spreadsheet data?

›
Yes. In SheetAI you describe the chart, or better, the question you want it to answer, and it builds a summary table with formulas and inserts a line, bar, horizontal bar, pie, scatter or area chart next to your data. You can then export the workbook as .xlsx.

Do I need to make a pivot table before charting an export?

›
No. If your export has one row per month per category, ask for the chart and the AI builds the summary table first, using SUMIFS formulas that point back at the raw data, so the chart stays in step with it.

Which chart should I use?

›
Line charts for change over time, bar charts for comparing categories, pie charts only for a few parts of one whole, and scatter plots for whether two measures move together. Describe the question in your prompt and the AI can choose.

Can I control where the chart goes?

›
Yes. Say it in the prompt: "to the right of the data", "side by side", or "on a new tab called Report". The AI places the summary table and chart there.

How many credits does making a chart use?

›
Our first chart from a 36-row export took 2 credits. A report chart with a written answer took 4, and the whole session of four prompts came to 16 credits.

Written by The SheetAI Team

We build SheetAI, an AI spreadsheet assistant that reads your data, writes the formulas, and shows its work. We write about the spreadsheet problems we keep running into.

Keep reading

Get started

Put this to work on your own spreadsheet

Upload a file, ask in plain English, and watch SheetAI write the formulas into the sheet, with every step visible so you can check the work.

All articles

Works in your browser and Google Sheets · Setup in 30 seconds