WhatsApp
Chat on WhatsApp

Excel Pivot Tables: A Practical Guide for Business

Almost every business collects data in spreadsheets: sales, leads from the website, orders from the online store, advertising spend. After a few months the sheet runs to thousands of rows, and then someone asks a simple question. Which salesperson brought in the most revenue this quarter? Which campaign produced the leads that actually closed? Without the right tool, answering that takes hours of copying, sorting and writing formulas.

A pivot table (PivotTable) answers questions like these in minutes. It takes a raw table, groups the rows by the categories you choose, calculates totals, averages and percentages, and presents the result as a clean report. You change the structure of the report by dragging fields around, without touching the source data and without writing a single formula.

In this guide we explain:

  • what a pivot table is and when it pays off for a business;
  • how to prepare the source table so the report comes out right;
  • how to build a pivot table in Excel, step by step;
  • how to filter, calculate percentages and group by dates;
  • how to update the report when new data comes in;
  • how it works in Google Sheets and where AI tools help.

What a pivot table is and when it is useful

A pivot table is a data analysis tool built into Excel and Google Sheets. It reads information from an ordinary table, groups it into blocks, runs calculations and shows the result as a compact report. The key difference from a regular table is that you can "pivot" the report. What was shown in rows moves to columns, a breakdown by month or by city appears, and the calculation switches from a sum to an average. All of it takes a few clicks.

Here is an example we will use throughout the guide. Say you run a small business with three salespeople. For a whole quarter, every deal was logged in a table: date, client name, product or service, deal value in euros, lead source (website, Facebook, Google, referral) and the salesperson's name. At the end of the quarter you need to pay bonuses and decide where to invest in advertising next quarter. In other words, you need to know how much each person sold, what share of the total each of them accounts for, and which channels bring in the big deals.

Many rows of glass data flowing in from the left and grouping on the right into three glossy columns of different heights, next to a tidy striped glass panel
A pivot table turns thousands of raw rows into a tidy report by category. Illustration: RJL Studio

Business tasks a pivot table solves

  • Sales: revenue by salesperson, by product, by month or by branch.
  • Marketing: how many leads came from each channel, how many became customers, and the average deal value per source.
  • Advertising: summarising reports exported from Meta Ads or Google Ads by campaign, audience or week.
  • Online store: which categories sell best, in which cities, and what the average order value is.
  • Finance: expenses by supplier or by cost line, with month-to-month comparisons.

When a pivot table is the wrong tool

If you only have a few dozen rows and one fixed question, a simple formula such as SUMIF will do. If your data comes from several systems and changes every day, it is worth considering a business dashboard that connects to the sources directly. A pivot table sits in between: it is ideal for quick analysis of one large table and for reports you produce every month.

Preparing the data: what the source table should look like

Most pivot table problems start not in the pivot table itself but in the source data. Before you build the report, check that your table follows a few rules:

  • Every column has a header. Headers become the field names in the pivot table, so make them clear: "Deal value", "Lead source", "Salesperson".
  • Each column uses one format. The date column holds only dates, the amount column only numbers. An amount stored as text, for example with a currency symbol typed in by hand, will not be included in calculations.
  • No blank rows or columns in the middle. A blank row can cut the range short, and Excel will pick up only part of your data.
  • One row is one record. Each deal, lead or order sits on its own row. No merged cells and no subtotal rows inside the table.
  • Consistent values. "Facebook", "facebook" with a trailing space and "FB" are three different sources as far as Excel is concerned. Standardise the spelling up front, or use a drop-down list when entering data.

Tip: turn your data into a proper Excel table

Select the data and press Ctrl+T (or use Format as Table on the Home tab). Excel converts the range into a named table. The big advantage: when you add new rows at the bottom, the table expands automatically, and the pivot table built on it picks them up after a refresh. You no longer have to adjust the source range by hand every time.

If your data comes from an export from another system and needs regular cleaning, you can hand the cleanup to Power Query and skip the manual work altogether. We explain how in our guide to Power Query in Excel.

Messy colourful glass tiles entering the funnel of a glossy machine and coming out neatly arranged into a glass table with a header row and evenly coloured columns
Clean, consistent source data is what makes a pivot table show the right numbers. Illustration: RJL Studio

How to create a pivot table in Excel, step by step

These steps apply to Excel for Microsoft 365, desktop Excel and Excel for the web. Button names are given as they appear in the English interface; older versions may label a few of them slightly differently.

Step 1. Create the pivot table

Click any cell inside the source table, go to the Insert tab and click PivotTable. A dialog opens with two settings:

  • Data range: if you clicked inside a proper Excel table, Excel detects it automatically. Otherwise, select the whole range including the header row.
  • Report location: New Worksheet is usually the convenient choice, because it keeps the source data and the report apart.

Click OK. Excel creates a new sheet: on one side an empty area where the pivot table will be built, on the other the PivotTable Fields pane. It is worth giving the sheet a clear name, such as "Quarterly report".

If you are not sure how to structure the report, try Recommended PivotTables on the same tab. Excel suggests several ready-made layouts based on your data, and you can pick one and refine it.

Step 2. The four areas of the fields pane

The top of the pane lists the fields, which are the headers of your source table. The bottom has four areas, each with its own role:

  • Rows: fields shown as the rows of the report, for example salespeople's names.
  • Columns: fields shown as columns, for example lead source or month.
  • Values: what gets calculated. By default Excel sums numeric fields (the total of all deals) and counts text fields (the number of deals). You can switch the calculation to average, minimum, maximum and more.
  • Filters: fields used to filter the entire report, for example only deals from one city.

You can tick the box next to a field and let Excel decide where to put it, but the result is not always easy to read. It is better to drag each field into the right area yourself, so you build exactly the report you need.

Four glass trays in cyan, purple, pink and orange, with small glossy cards being dragged into them along glowing arcs, and above them a glass panel with columns of coloured stripes
Four areas: rows, columns, values and filters. Drag fields in and you get a report. Illustration: RJL Studio

Step 3. Building the report for our example

Back to our three salespeople. Drag the Salesperson field into the Rows area. The report shows three names, each once, even though each person has dozens of deals in the source table.

Now drag Product into Rows as well, below Salesperson. The pivot table groups products under each salesperson and shows what each of them sold.

Finally, drag Deal value into the Values area. Next to each product you see its total, and next to each name the total revenue that person brought in. Want to see the number of deals too? Drag any text field, such as Client name, into Values, and Excel will count the rows.

Want to see the picture by channel? Drag Lead source into the Columns area. The report splits into columns (website, Facebook, Google, referral), and you can immediately see which channels each salesperson's deals come from.

Filtering the report: filters, slicers and timelines

Sometimes you do not need all the data, only a particular slice: one month, one product, or only leads from Google. There are three tools for that.

Standard filters

Drag fields that are not part of the report itself, such as City or Customer type, into the Filters area. Drop-down lists appear above the pivot table. Click the arrow, untick Select All and tick only the values you need. To return to the full picture, clear the filter in the same list.

Slicers

Slicers are large, clear buttons that filter the report with one click. Select the pivot table, go to the PivotTable Analyze tab and click Insert Slicer. Choose a field, for example Lead source, and a panel appears with a button for each channel. This is the most convenient tool when you share the report with managers or with a team that does not want to deal with settings. One slicer can control several pivot tables in the same file.

Timeline

If the source table has a date column, you can add a timeline from the same tab with Insert Timeline. It is a bar where you pick a period (month, quarter or year) by dragging. It is very handy for comparing periods, for example before and after a campaign launch.

A glass panel with glossy chart columns, above it a row of round glass buttons in different colours with one pressed, and a floating time slider beside them
Slicers and timelines filter the report with one click, without touching the settings. Illustration: RJL Studio

More calculations: percentages, averages and grouping by date

Totals are only the beginning. A pivot table can do much more without formulas.

Percentage of the grand total

In our example you want to know each salesperson's share of the quarter's revenue. Right-click one of the totals in the report, choose Show Values As and then % of Grand Total. Instead of euros you see percentages: next to each name, that person's share of total revenue, and next to each product, that product's share. To go back to amounts, choose No Calculation in the same menu.

Tip: you can drag the same field into Values twice and show the amount in euros in one column and the percentage in the other. That way you see both the size and the proportion.

Average, minimum and maximum

Click a field in the Values area, choose Value Field Settings and change the calculation type. Average shows the typical deal size for each salesperson or each advertising channel. That number matters: a channel that brings lots of small leads is not always worth more than one that brings a few large ones.

Grouping by month and quarter

When you drag a date field into Rows or Columns, Excel usually groups it by years, quarters and months on its own. If it does not, right-click one of the dates in the report and choose Group. You can group numbers too, for example by deal value bands, to see how many small, medium and large deals you had.

Sorting, collapsing details and subtotals

Click the minus sign next to a salesperson's name to collapse their product list. The report gets shorter and the comparison between salespeople is right in front of you. The plus sign expands the details again. You can also sort from largest to smallest so the top performer appears first.

Calculated field

If you need a figure that does not exist in the source table, for example a 5% commission on every deal, you can add a calculated field via Fields, Items & Sets on the PivotTable Analyze tab. You define a formula based on existing fields, and the new field behaves like any other.

How to update a pivot table when the data changes

A pivot table in Excel does not update itself every time the source table changes. This is the point that confuses users most, and there are two situations to know about.

Changes inside the existing range

Corrected a deal amount or renamed a product? Go to the pivot table sheet and click Refresh on the PivotTable Analyze tab. You can also right-click the report and choose Refresh. To refresh every pivot table in the file at once, use Refresh All.

New rows were added

If the source is a proper Excel table (Ctrl+T), clicking Refresh is enough and the new rows are included. If it is a plain range, the new rows fall outside the defined range, so you need to click Change Data Source on the PivotTable Analyze tab and select the updated range. That is exactly why it is worth converting the source into a table from the start.

You can also set the report to refresh automatically whenever the file is opened: right-click the pivot table, choose PivotTable Options, and on the Data tab tick the option to refresh data when opening the file.

From pivot table to chart

From the same tab you can create a PivotChart: a chart linked to the pivot table that changes along with it. Filter the report and the chart updates. The result is a visual report that is easy to present at a team meeting.

Pivot tables in Google Sheets and AI tools

Google Sheets

In Google Sheets the principle is the same. Click inside your data, choose Insert and then Pivot table, select the range and the location, and in the editor panel add fields to Rows, Columns, Values and Filters. Google Sheets also has slicers and the option to show values as a percentage of the total. Its advantage: the pivot table updates automatically when the source data changes, and the file is available to the whole team in the browser. That is especially convenient when data flows into the sheet automatically, for example leads from a website form.

Copilot in Excel and Gemini in Google Sheets

In Microsoft 365 and Google Workspace plans that include AI features, you can ask in plain language, for example "create a pivot table of revenue by salesperson and lead source", and the assistant will build a report or suggest an analysis. It saves time, but it does not replace understanding: check which fields were chosen and how the totals were calculated, especially when the data is not clean. AI-driven data analysis beyond pivot tables is a separate topic, which we cover in our guide to AI data analysis for business.

GROUPBY and PIVOTBY functions

Excel for Microsoft 365 also offers the GROUPBY and PIVOTBY functions, which build a pivot-style summary with a single formula. Their advantage is that the result updates instantly, with no refresh. The downside is that you need to be comfortable with formulas. For beginners, a regular pivot table is still the easier option.

Common pivot table mistakes

  • Forgetting to refresh. The report shows old numbers and nobody notices. If the report goes to management, set it to refresh when the file opens.
  • Amounts shown as Count. If the amount column contains even one text cell or blank cell, Excel may count instead of sum. Check the column format and fix the problem cells.
  • Inconsistent spelling. "New York" and "NYC" will appear as two different cities. Clean the data before analysis, or set fixed lists for data entry.
  • Total rows inside the source. A "Total" row typed into the source table is counted as one more deal and doubles your results.
  • An overloaded report. Five fields in rows and three in columns produce a table nobody can read. A good report answers one question. For a different question, build another pivot table.
  • Manual work that repeats every month. If you export the same data every month, clean it and rebuild the same report, that is a sign it is time to automate.
Glowing glass pipes running from several 3D icons, a website window, a chat bubble and a shopping cart, into a glossy report panel with a donut chart and bar charts, with small gears along the pipes
When data flows from your website and systems into the sheet automatically, the report is always ready. Illustration: RJL Studio

How RJL Studio helps automate your reporting

A pivot table is an excellent tool, but it is only as good as the data that goes into it. In many businesses most of the time goes not into analysis but into collection: exporting leads from the website, copying reports from Meta Ads and Google Ads, merging files from several systems and cleaning them by hand.

At RJL Studio we build that part for you. We connect your website forms, CRM, online store and advertising platforms to a central spreadsheet or dashboard using n8n, Make, Zapier and APIs, so every lead and every order lands in a structured table with its source, date and status. On top of that data, a pivot table or dashboard shows the current picture at any moment, with no manual work.

Want your business reports to update themselves? Read about our automation and integration services or get in touch and we will get back to you.

Frequently asked questions

What is the difference between a pivot table and a regular filter?

A regular filter only hides rows in the source table. A pivot table creates a new report: it groups rows by category, calculates totals, averages and percentages, and lets you change the structure by dragging fields, without touching the original data.

Why doesn't my pivot table show the new data?

A pivot table in Excel does not update automatically. After the data changes, you need to click Refresh. If rows were added outside the original range, you also need to update the source via Change Data Source, or convert the source into an Excel table with Ctrl+T from the start.

Can I create a pivot table from several sheets?

Yes. The easiest way is to combine the data into one table first with Power Query, or to load several tables into the Excel Data Model and create relationships between them. For everyday use, one well-structured table is the simplest and most reliable solution.

Do pivot tables work in Google Sheets?

Yes. Choose Insert and then Pivot table, and the workflow is almost identical to Excel: rows, columns, values and filters. In Google Sheets the report updates automatically when the source data changes.

Do I need to know formulas to use a pivot table?

No. All the basic calculations, such as sum, count, average and percentage of the grand total, are chosen from menus. Formulas are only needed for calculated fields or advanced analysis, and even then Copilot or Gemini can help.

Disclaimer: blog content is for general information and learning only and is accurate as of its publication date. It is not professional, legal, financial or business advice, nor a recommendation or call to take any action. Any use of this information is at the reader's own risk, and we accept no liability for any resulting loss. Links to external websites and tools are provided for convenience only. We recommend consulting a qualified professional before making decisions.