Create Google Sheets Charts with AI Add-ons

Tested prompts for ai chart generator google sheets compared across 5 leading AI models.

BEST BY JUDGE SCORE Claude Opus 4.7 8/10

The prompt we tested

You are an expert Google Sheets data visualization assistant. Your job is to recommend and construct the best chart for the user's dataset, then provide exact, copy-paste-ready steps to build it in Google Sheets (including any add-on suggestions, formulas, and chart configuration).

Follow these rules:
Respond in clearly labeled sections with short headers and numbered steps. Keep total length under 250 words, use concrete cell references (e.g., A1:B20), and specify exact Chart Editor settings (chart type, X-axis, Series, aggregation). Do not include generic disclaimers.

User's data and goal:
I have a Google Sheet with monthly sales data: column A is Month (Jan–Dec 2024), column B is Revenue, and column C is Units Sold. I want to visualize revenue trends over time and highlight the top 3 months, and I'd like an AI add-on to auto-refresh insights each month.

Return: (1) recommended chart type with a one-line reason, (2) the exact data range/setup (with any helper formulas), (3) step-by-step Google Sheets build instructions (Insert > Chart, Setup tab, Customize tab), (4) one recommended AI add-on (e.g., GPT for Sheets, Rows AI, Coefficient) with how to use it for this chart, and (5) one optional enhancement (trendline, slicer, or dynamic range).

Model comparison

ModelQualityCostLatencyTokens
Claude Opus 4.7 8 $0.0657 13.3s 468 / 783
Claude Haiku 4.5 6 $0.0024 5.4s 327 / 424
GPT-5.4 8 $0.0082 10.1s 288 / 497
Gemini 2.5 Pro 7 $0.0028 15.1s 310 / 481
Grok 4.1 Fast Reasoning 8 $0.0002 13.5s 436 / 259

Outputs

Claude Opus 4.7 8/10
## 1) Recommended Chart
**Combo Chart (Column + Line)** — columns show monthly revenue with top-3 highlighted; line overlays the revenue trend.

## 2) Data Setup (A1:E13)
Headers in row 1: `Month | Revenue | Units | Top3 Revenue | Other Revenue`

Helper formulas (fill D2:E13):
- **D2:** `=IF(RANK(B2,$B$2:$B$13)<=3, B2, 0)`
- **E2:** `=IF(RANK(B2,$B$2:$B$13)<=3, 0, B2)`

This splits revenue into two series so top-3 months render in a highlight color.

## 3) Build the Chart
1. Select **A1:E13** → **Insert > Chart**.
2. **Setup tab:**
   - Chart type: **Combo chart**
   - X-axis: **Month**
   - Series: remove Units; keep **Top3 Revenue**, **Other Revenue**, **Revenue**
   - Set **Revenue** series to **Line**; Top3/Other as **Columns**
   - Check **Stack > Standard** (so columns align per month)
3. **Customize tab:**
   - **Series → Top3 Revenue:** color **#E8710A** (orange), data labels **On**
   - **Series → Other Revenue:** color **#B7B7B7** (gray)
   - **Series → Revenue (line):** color **#1A73E8**, thickness 3
   - **Chart & axis titles:** "2024 Monthly Revenue — Top 3 Highlighted"
   - **Vertical axis:** format as Currency

## 4) AI Add-on: GPT for Sheets and Docs
Install from Workspace Marketplace. In cell **G2**, write:
`=GPT("Summarize 2024 revenue trend, name top 3 months, and flag anomalies:", A1:C13)`
Set **Extensions > GPT for Sheets > Settings > Auto-refresh: Monthly** so insights update as you add rows.

## 5) Optional Enhancement
Add a **Trendline** on the Revenue line: Customize > Series > Revenue > **Trendline: Linear**, Label: **Equation**, Opacity 0.4 — reveals the growth slope at a glance.
Judge notes: Nearly production-ready with concrete cell references, exact color hex codes, and a real GPT formula, but the "Stack > Standard" instruction is incorrect for a combo chart with split series (it would cause columns to stack rather than occupy the same position per month), which would mislead a user building this live.
Claude Haiku 4.5 6/10
# Revenue Trends Visualization & AI Insights

## 1. Recommended Chart
**Combo Chart (Line + Column)** – Line shows revenue trend clarity; columns highlight monthly volume for comparison.

## 2. Data Setup

**Primary data:** A1:C13 (Month, Revenue, Units Sold)

**Helper column (D) – Top 3 Flag:**
- D1: `Top 3 Month`
- D2: `=IF(COUNTIFS($B$2:$B$13,">="&B2,$B$2:$B$13,">"&B2)<3,"Yes","No")`
- Copy D2 down to D13

## 3. Build Steps in Google Sheets

1. Select A1:B13 (Month + Revenue)
2. **Insert > Chart**
3. **Chart type:** Combo chart
4. **Series tab:**
   - Series 1 (Revenue): Column chart
   - Add Series 2 (Units Sold): Line chart
5. **Customize tab:**
   - Title: "2024 Monthly Revenue & Units Sold"
   - X-axis: Month
   - Enable data labels on Revenue columns
   - Color Revenue bars by Top 3 (use conditional formatting rule: If D="Yes", highlight gold)

## 4. AI Add-On: **GPT for Sheets**
- Install from Add-ons > Get add-ons
- Column E formula: `=GPT("Analyze this month's revenue: "&B2&" units. Trend vs previous month?")`
- Refresh monthly to auto-populate insights tied to new data

## 5. Optional Enhancement
**Dynamic Range:** Replace A1:B13 with `A1:B&COUNTA(A:A)` to auto-expand when new months are added.
Judge notes: The Top 3 flag formula is logically flawed (COUNTIFS logic doesn't correctly identify top 3 by rank), the conditional coloring instruction conflates chart formatting with spreadsheet conditional formatting (they're separate in Sheets), and the dynamic range formula (`A1:B&COUNTA(A:A)`) is syntactically invalid as a chart range reference.
GPT-5.4 8/10
## 1) Best Chart
**Combo chart (line + highlight points)** — best for showing **Revenue over time** while clearly marking the **top 3 months**.

## 2) Data Setup
Assume headers in **A1:C1** and data in **A2:C13**.

1. In **D1**, enter: `Top 3 Revenue`
2. In **D2**, paste and fill down to **D13**:  
   `=IF(RANK(B2,$B$2:$B$13,0)<=3,B2,NA())`

This creates a helper series that only shows the top 3 revenue months.

## 3) Build the Chart
1. Select **A1:D13**
2. Click **Insert > Chart**

### Setup tab
3. **Chart type:** `Combo chart`
4. **Data range:** `A1:D13`
5. **X-axis:** `A2:A13`
6. **Series:**  
   - `Revenue` = `B2:B13`  
   - `Top 3 Revenue` = `D2:D13`
7. Make sure **Use row 1 as headers** and **Use column A as labels** are ON.
8. In Series settings:
   - **Revenue:** Type = `Line`
   - **Top 3 Revenue:** Type = `Scatter`

### Customize tab
9. **Chart & axis titles**
   - Chart title: `2024 Monthly Revenue Trend`
   - Horizontal axis: `Month`
   - Vertical axis: `Revenue`
10. **Series > Revenue**
   - Line color: blue
   - Point size: 4
11. **Series > Top 3 Revenue**
   - Color: red
   - Point size: 8
   - Data labels: ON

## 4) AI Add-on
**GPT for Sheets and Docs**

1. Install from **Extensions > Add-ons > Get add-ons**
2. Use a prompt in a cell like:  
   `=GPT("Summarize sales trends and explain why these top 3 revenue months stand out based on Month, Revenue, and Units Sold.")`
3. Refresh monthly by extending data and re-running the formula.

## 5) Optional Enhancement
**Trendline:** In **Customize > Series > Revenue > Trendline = Linear** to show overall sales direction.
Judge notes: The GPT for Sheets formula syntax is slightly off (it needs cell references rather than inline text strings to auto-refresh monthly), which would require editing before production use.
Gemini 2.5 Pro 7/10
### 1. Recommended Chart

A **Combo Chart** is best. It allows you to display the overall monthly revenue as columns while using a second, overlapping series to highlight the top-performing months in a different color.

### 2. Data Setup

1.  Your data should be in `A1:B13` (headers in row 1).
2.  In cell `D1`, enter the header `Top 3 Revenue`.
3.  In cell `D2`, enter this formula to identify the top 3 values:
    `=IF(B2>=LARGE($B$2:$B$13,3), B2, NA())`
4.  Drag this formula down from `D2` to `D13`. This helper column will only show values for the top 3 months.

### 3. Chart Building Steps

1.  Select both ranges `A1:B13` and `D1:D13` by holding Ctrl (or Cmd on Mac).
2.  Go to **Insert > Chart**.
3.  In the **Chart editor > Setup** tab:
    *   **Chart type**: Combo chart
    *   **X-axis**: `A1:A13`
    *   **Series**: Ensure `Revenue` and `Top 3 Revenue` are added as column series.
4.  Switch to the **Customize** tab:
    *   Go to **Series**. Select the "Top 3 Revenue" series and change its color to a bright, contrasting color (e.g., gold or green).

### 4. AI Add-on Recommendation

Use the **Coefficient** add-on. After installing it, you can auto-generate insights. In a cell, use the formula `=COEFFICIENT("Summarize the sales trends and top months from this data: "&ARRAYTOTEXT(A1:B13))`. Schedule this formula to auto-refresh monthly from the add-on's sidebar.

### 5. Optional Enhancement

Add a **Trendline** to show the overall sales direction. In the **Chart editor > Customize > Series** tab, select the "Revenue" series, scroll down, and check the "Trendline" box.
Judge notes: The Coefficient formula syntax (`=COEFFICIENT(...)`) is fabricated — Coefficient is a data connector add-on, not a formula-based AI tool like GPT for Sheets, making section 4 misleading and not production-ready without correction.
Grok 4.1 Fast Reasoning 8/10
### Recommended Chart
Combo (line + columns): Line shows revenue trend over time; columns highlight top 3 months.

### Data Setup
1. D1: `Top 3 Revenue`
2. D2: `=IF(RANK(B2,$B$2:$B$13,0)<=3,B2,NA())` → drag to D13.

### Build Instructions
1. Select A1:D13 → Insert > Chart.
2. **Setup tab**: Chart type: Combo chart; X-axis: A1:A13 (Months); Series: Add B1:B13 (Line, left axis), D1:D13 (Columns, right axis); Aggregation: None.
3. **Customize tab**: Chart style: Maximize; Series B: Line color blue, smooth line; Series D: Column color red, bold; Horizontal axis: Title "Month"; Vertical axis (left): Title "Revenue".

### AI Add-on
GPT for Sheets: Install from Google Workspace Marketplace. In F1: `=GPT("Monthly revenue insights from A:C; highlight trends & top months")` → auto-refreshes on edit/open.

### Optional Enhancement
Add trendline: Customize > Series > B1:B13 > Trendline > Linear. 

(148 words)
Judge notes: The GPT for Sheets formula referencing A:C won't actually auto-refresh chart insights in a meaningful way (it returns text, not chart updates), making section 4 slightly misleading, but all other sections are precise, actionable, and genuinely production-ready.

Related queries