How to Create a Quarterly Sales by Territory Report in Excel with ChatGPT

Cody Schneider••8 min read

Creating a quarterly sales by territory report feels like a mandatory chore, often involving wrestling with spreadsheets until you get the numbers crunched just right. By pairing the classic power of Excel with the conversational help of ChatGPT, you can streamline this entire process from a tedious task into a quick, guided exercise. This article walks you through how to use ChatGPT as your co-pilot to prepare your data, summarize it effectively, and visualize your sales performance in Excel.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why a Sales by Territory Report Matters

Before jumping into the nuts and bolts, let's briefly touch on why this report is so valuable. It’s more than just a table of numbers, it’s a strategic tool. A clear, well-structured quarterly sales report helps you:

  • Track Regional Performance: See at a glance which territories are hitting their targets and which are lagging. This allows you to celebrate wins and diagnose issues before they become major problems.
  • Allocate Resources Smarter: Are your top-performing regions understaffed? Are you over-investing in a territory that consistently underperforms? The data in this report provides the evidence you need to make informed decisions about where to spend your budget and assign your best people.
  • Identify Growth Opportunities: A sudden spike in sales in a smaller territory might indicate a new market opportunity. Seeing trends quarterly helps you spot these changes and act on them quickly.
  • Set Realistic Goals: Looking at historical performance by territory helps you set more accurate and achievable sales targets for the future, motivating your team with fair and data-driven goals.

Step 1: Get Your Sales Data Ready

The saying "garbage in, garbage out" is especially true for data analysis. Your report can only be as good as the data you feed it. Before you even think about building charts or tables, you need a clean, organized dataset. ChatGPT can't clean your data for you, but it can guide you on what to look for.

For a quarterly sales by territory report, your raw data in Excel should, at a minimum, contain these four columns:

  • Sale Date: The specific date each transaction occurred. This is essential for grouping sales by quarter.
  • Sale Amount: The value of each sale. Make sure this is a numerical value without any currency symbols in the cell itself (use Excel's formatting for that).
  • Territory: The region where the sale was made (e.g., North, South, West, Midwest).
  • Sales Rep: The name of the salesperson responsible for the sale. This lets you drill down further if needed.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Data Cleaning Best Practices:

Open your spreadsheet and review your data for common issues. Here’s a quick checklist:

  • Consistency is King: Make sure your territory names are standardized. "North" and "N." will be treated as two different territories by Excel, which will skew your report. Use Find and Replace (Ctrl+H) to fix these inconsistencies.
  • No Blank Rows: Your data should be in a continuous block. Delete any empty rows within your dataset.
  • Correct Data Formats: Ensure your 'Sale Date' column is formatted as a Date and 'Sale Amount' is formatted as Currency or Number. You can change this by right-clicking the column, selecting "Format Cells," and choosing the correct category.
  • Format as a Table: This is a pro-tip that makes everything easier. Select any cell in your data and press Ctrl+T. This turns your data range into an official Excel Table, which is dynamic, easier to reference in formulas, and works seamlessly with PivotTables.

Once your data is clean and structured, you're ready to start building the report with ChatGPT's help.

Step 2: Using ChatGPT to Generate Excel Formulas and Instructions

Think of ChatGPT as a data analyst you can talk to. Instead of guessing which Excel function to use, you can just describe what you want to achieve in plain English. For this report, we need to accomplish two main things: add a 'Quarter' column to our data and then create a summary table.

Adding a 'Quarter' Column

Your raw data has a 'Sale Date', but you need to group sales by quarter. You could try to figure out the formula yourself, or you could just ask ChatGPT.

Go to ChatGPT and use a simple, direct prompt:

I have sales data in an Excel sheet. Cell A2 contains the sale date. Give me an Excel formula that returns the quarter for that date in the format 'Q1', 'Q2', etc.

ChatGPT will likely give you this handy formula:

="Q"&ROUNDUP(MONTH(A2)/3,0)

Now, let's use it:

  • Go back to your Excel spreadsheet.
  • In your data table, add a new column header called "Quarter."
  • In the first cell under the new header (e.g., cell E2), enter the formula provided by ChatGPT. Adjust "A2" to match the first cell containing a sale date in your table.
  • If you used Ctrl+T to format your data as a table, Excel should automatically fill the formula down the entire column. If not, click on the small green square in the bottom-right corner of the cell and drag it down.

Voila! You now have a column that correctly assigns each sale to its respective quarter, making our next step possible.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step 3: Creating a Summary with a PivotTable

A PivotTable is the fastest way in Excel to summarize, group, and analyze data. It sounds intimidating, but it's really a drag-and-drop tool. Again, you don't need to remember the steps, just ask ChatGPT.

Use this prompt:

Give me step-by-step instructions on how to create a PivotTable in Excel to show the total sales for each territory, broken down by quarter. My data includes columns for 'Sale Amount', 'Territory', and 'Quarter'.

ChatGPT will guide you through the process. Here are the steps, translated from its instructions:

  1. Insert the PivotTable: Click anywhere inside your data table. Go to the Insert tab on the ribbon and click PivotTable. A dialog box will appear. Since you're using an Excel Table, the correct range will likely already be selected. Just click OK. Excel will create your PivotTable in a new worksheet.
  2. Arrange the Fields: On the right side of the screen, you’ll see the "PivotTable Fields" pane. This is where you build your report. Drag and drop the fields into the four boxes at the bottom:
  3. Format the Numbers: The numbers in your PivotTable might not look like currency. Right-click on any of the sales values, select Value Field Settings..., then click Number Format. Choose Currency and click OK. Now your report is much easier to read.

You now have a clean, organized table showing a quarterly sales summary for every territory. It’s the core of your report, built in under a minute.

Step 4: Visualizing the Data with Charts and Slicers

Numbers in a table are great, but a chart tells a story. A good visual makes it instantly clear which territories are shining and which need attention. Let's ask ChatGPT how to create one.

Use this prompt:

How can I create a clustered column chart from my Excel PivotTable to compare quarterly sales across all territories?

Following its guidance:

  1. Click anywhere inside your newly created PivotTable.
  2. Go to the PivotTable Analyze tab (this tab only appears when a PivotTable is selected).
  3. Click on PivotChart.
  4. Choose a Clustered Column or Stacked Bar chart and click OK.

Excel instantly generates a chart that is linked to your PivotTable. Any changes in the data will automatically update this chart.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Make Your Report Interactive with Slicers

One final trick to elevate your report is adding slicers. Slicers are user-friendly buttons that let you (or anyone you share the report with) filter the data without complicated dropdown menus.

Ask ChatGPT:

How do I add slicers to my PivotTable to filter the report by 'Sales Rep'?

Follow the instructions:

  1. Again, click your PivotTable to activate the PivotTable Analyze tab.
  2. Click Insert Slicer.
  3. Check the box for Sales Rep (you could also add one for Territory). Click OK.

Now a slick, clickable menu for Sales Rep appears. Click a salesperson's name, and both the PivotTable and your chart update instantly to show only their sales data. This is incredibly powerful for sales meetings when you want to drill into individual performance on the fly.

Final Thoughts

By bringing ChatGPT into your Excel workflow, you can move from raw sales data to an insightful, interactive, and presentation-ready report in minutes. You’ve prepared your data, used natural language to generate formulas, created a summary PivotTable, and then visualized it all with charts and slicers - all without needing to memorize a single complex Excel function.

If you find yourself creating reports like this often, you might notice that manually exporting CSV files and updating your spreadsheet weekly becomes its own form of busywork. At some point, you'll want your reports to be “live.” That’s where we built Graphed to take over. Instead of asking for Excel formulas, we let you ask your data questions directly. Just connect your CRM (like Salesforce or HubSpot), ask, “Create a dashboard showing quarterly sales by territory,” and we build a real-time dashboard that updates automatically, saving you from the manual work altogether.

Related Articles