How To Build A PivotTable In Excel For Work Reports
A step-by-step Excel PivotTable guide for work reports: prepare a clean table, build the summary, refresh it, and fix common Sum and Count errors.

To build a PivotTable, format your data as an Excel Table, click inside it, choose Insert > PivotTable, and drag fields into Rows, Columns and Values. Use it to summarise a list of transactions — for example, sales in RM by branch and month — without writing a long set of SUMIF formulas.
- Start with a flat list: one header row, no merged cells, no pre-totalled rows in the source.
- Put categories in Rows, time in Columns if you need a cross-tab, and amounts in Values set to Sum.
- Refresh the PivotTable after you add or correct data; it does not update with every keystroke.
- Never type over cells inside the PivotTable. They will disappear or error when you refresh.
Most monthly packs in a Malaysian office start as a long list: date, branch, product, amount in RM. Totalling that list by hand is slow and easy to get wrong. A PivotTable gives you a summary you can rearrange in a few drags of the mouse. This English walk-through is the companion to our Bahasa Melayu guide, Cara Guna Pivot Table dalam Excel. Lookups such as XLOOKUP often sit in the same file, on the way to a report that updates itself.
01Prepare The Source Data
A PivotTable only works as well as the list underneath it. Before you click Insert, check that:
- there is a single header row, with unique names such as Date, Branch, Product and AmountRM;
- there are no blank rows in the middle of the list, and no grand-total row at the bottom of the source;
- there are no merged cells;
- each row is one transaction or record, not a summary that has already been combined;
- amount columns are real numbers, and date columns are real dates, not text that happens to look right.
Then turn the list into an Excel Table: click inside the data, press Ctrl + T, and name the table something clear, such as Sales. New rows added to the bottom of a Table are included the next time you refresh the PivotTable.
02Build The PivotTable
- Click any cell in the Sales table.
- Choose Insert > PivotTable.
- Place the report on a new sheet and click OK.
- Drag Branch to Rows.
- Drag Date to Columns. Excel will often group dates by month; if it does not, right-click a date and choose Group.
- Drag AmountRM to Values. Open the field settings and confirm the calculation is Sum, not Count.
You should now see branches down the side, months across the top, and RM totals in the middle — enough to answer “which branch is behind this month?” in a short meeting.
03Make The Summary Readable
- Number format. Right-click the values, choose Number Format, and apply currency or a thousands separator.
- Sort. Right-click a total and sort largest to smallest so the main branches appear first.
- Percentages. Drag AmountRM into Values a second time, then use Show Values As > % of Grand Total or % of Column Total.
- Filters. Put Product in Filters, or insert a slicer (Insert > Slicer) so a manager can cut the view without breaking the layout.
- Clear labels. Rename “Sum of AmountRM” to “Sales (RM)” by editing the field name in the PivotTable.
If the sheet feels crowded, build a second PivotTable for the detail instead of adding every field to one view. The same idea — a few questions on the first page — is in our Power BI dashboard design guide, and it applies to Excel summaries too.
04Other Office Uses
Claims or attendance: Rows = Department, Columns = Month, Values = Sum of Amount or Count of Staff ID.
Tickets or complaints: Rows = Category, Values = Count of tickets, with a slicer for status (open or closed).
Year comparison: keep all transactions in one Table with a Date (or Year) column, and group by year and month. Avoid pasting two years into separate blocks that you then add by hand.
05Refresh, And What Will Not Update On Its Own
After you add or correct rows in the Sales table, click inside the PivotTable and choose Refresh on the PivotTable Analyze tab. Use Refresh All if the workbook has more than one PivotTable. If new rows are missing after a refresh, they are probably sitting just outside the Table. Extend the Table, or add the row with Tab from the last cell, then refresh again.
Do not type over values inside the PivotTable. Those edits will vanish or cause errors on the next refresh. Put comments or adjustments outside the PivotTable range, or on a report sheet that reads from it, as described in our guide to automating Excel reports.
06Common Problems
- Values show Count instead of Sum. The amount column often contains text or blanks. Clean the column, then set the calculation back to Sum.
- Totals look too high. Look for duplicate rows, or for a total that was already in the source and has been summed again. Remove totals from the source list.
- Dates will not group. The column is still text. Convert it to a Date format, or use DATEVALUE, then refresh.
- The file feels slow. Avoid using an entire column (A:Z) as the source when you only have a few thousand rows, and do not keep several unused copies of the same extract.
When the same summary must be shared with many readers every week, and the data comes from more than one table, it may be time to rebuild the recurring version in Power BI. The preparation is the same: a flat table, clear names, and calculations you control. Until then, a well-built PivotTable, practised in our Excel for Work course, is the right tool. The later step is covered in Power BI Dashboards.
07Frequently Asked Questions
Does a PivotTable Change My Source Data?
No. It only summarises the source. The original rows stay in the Table. That is why you must refresh after you change the source.
Can I Make a Chart from a PivotTable?
Yes. Click inside the PivotTable and insert a chart, or use a PivotChart. The chart will follow the same filters and refresh.
Why Do My Totals Differ from Last Month’s File?
Check for duplicate rows, for totals left in the source, and for Count used instead of Sum. Compare the PivotTable grand total with a SUM of the source amount column.
Do I Need Power Query First?
Not for a basic PivotTable. If you clean the same export every month before you summarise it, Power Query is the next time-saver, because the clean-up can run again on Refresh.
If you want to practise cleaning data, building PivotTables and preparing reports that update, you can view the Excel for Work course and register your interest. Other courses are listed on our courses page.




