Skip to content
ChaiBytes

How to Summarise Sales or Expenses with a PivotTable in Excel

Learn how to bring your data into Excel and arrange fields in a PivotTable to summarise sales or expenses by category, then filter the results.

By , Founder

4 min read

Share

What You Need

A PivotTable lets you sort a large list of sales or expenses into a short summary, such as total spending per category. You need Microsoft Excel and a set of data with clear column headings. The source for this guide shows the import steps using a Microsoft Access database file, so the steps below follow that path. If your records are in a plain Excel sheet, the source does not describe how to import them, so check Excel’s own help for that part before you start.

The example used here is a small shop in Lahore that records each month’s expenses in one table with columns for date, category, supplier and amount. The same method works for an office team tracking travel claims, or a college society tracking event costs.

Step by Step

  1. Open a blank workbook. Start in a new Excel file so your original records stay untouched.
  2. Go to Data, then Get Data. On the ribbon, choose Data, then Get Data. Your ribbon may look slightly different depending on the width of your window.
  3. Choose the database source. Pick From Database, then From Microsoft Access Database. This is the import route the source describes.
  4. Select your file and click Import. Find the database file on your computer, select it and click Import.
  5. Pick the tables you need. A Navigator window lists the tables inside the file. Tick Select multiple tables if you have more than one, then tick the tables you want.
  6. Load the data. Click Load, then Load to. This brings the tables into Excel.
  7. Keep the Data Model option ticked. A checkbox lets you add the data to the Data Model. When you work with two or more tables at once, Excel creates a Data Model automatically, so check that the box is ticked before you continue.
  8. Choose PivotTable Report. Select this option and click OK. Excel creates a PivotTable from your imported tables.
  9. Open the field list. In the PivotTable Fields pane, click the arrow beside your expenses table to expand it and see its columns.
  10. Drag the category field to Rows. Drop the category field into the ROWS area. Each shop expense category now appears as its own line.
  11. Drag the amount field to Values. Move the amount field into the VALUES area. The source notes that values must be numeric, and if the field is not numeric Excel changes it to a count of the items instead of a total.
  12. Filter the categories you want. Use the filter on the row labels, either in the PivotTable Fields pane or from the Row Labels filter in the table itself, to show only the categories you care about, such as rent, electricity and stock.
  13. Add a filter area field. Drag a field such as the branch name or month into the FILTERS area. You can then pick one value to see a summary for just that item.
  14. Rearrange until it reads clearly. Move fields between areas until the summary answers your question. Rearranging fields does not change the underlying data.

Tips and Common Mistakes

  • Check the value type first. If your amounts show a count instead of a total, the amount column is probably stored as text. Fix the column so it holds numbers.
  • Try different layouts. The source says it may take some experimenting to decide which area a field belongs in. Move fields around freely.
  • Use the filters to focus. Narrowing to one category or one month makes a long list of expenses easier to read.
  • Keep your source data safe. Working in a new workbook helps you avoid changing the original records by mistake.
  • Do not assume the layout is final. Every new month of data may need the PivotTable refreshed so the new rows appear.

An example from a shop: if the PivotTable shows electricity costs far above last month, check the original bills before you act on the number.

Use It Responsibly

Check the totals against your original receipts, bills or bank statements before you use them for a decision, tax filing or a report to your manager. If you ask an AI tool to suggest field layouts or formulas, treat its answer as a starting point and test it on a copy of your data.

Never paste private data into an AI tool or any online service. That includes customer names, phone numbers, staff salaries and bank details. Remove or hide those columns first, and keep your files protected with a strong password and up-to-date device security.

Follow your workplace or college rules about storing financial records, and follow the terms of the Microsoft service you use.

About the author

, Founder

Sources

  1. Tutorial: Import Data into Excel, and Create a Data Model - Microsoft Support — support.microsoft.com Official source

Sources last checked . Apps change: if a step looks different, follow the maker's page.

Drafted with AI assistance from the help pages above and checked automatically for completeness. Always confirm dates, fees and requirements on the official website before acting. Report an error · How we correct mistakes

Was this helpful?

Questions or something to add?

Ask below. We read every comment and reply when we can.

Leave a comment

Be respectful. Comments with links are reviewed before they appear. Your email is used only to contact you about your comment, such as a reply from the editor.