In Excel: select a clean data range, choose Insert ▸ PivotTable, place fields into Rows, Columns, Values and Filters, then refresh when the source data changes.
Grand total: 1,250.50
| Region | Sum |
|---|---|
| West | 125.50 |
| East | 1050 |
| South | 75 |
The same thing in your own sheet
Sum · Excel & Sheets
What this does
A pivot table summarizes a flat data table without writing formulas. Rows and Columns define the groups, Values define the numbers to aggregate, and Filters or slicers narrow the view. It works best when the source has one header row, no blank columns, one record per row and consistent data types. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel pivot table format all rows”. Start on a copy or a tiny sample, keep the affected pivot table visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a data step that keeps your analysis trustworthy, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A sales table has Date, Region, Rep and Revenue columns. Insert a PivotTable, drag Region to Rows and Revenue to Values. Excel returns total revenue by region. Drag Date to Columns and group by Month to turn the same source into a monthly regional summary. Pivot tables are one of the highest-leverage Excel tools for summarizing messy transactional data into totals by customer, region, month, product or owner. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. If you take one thing from this page on “excel pivot table format all rows”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
Common mistakes
- Using a report layout with merged cells or subtotals as the source.
- Forgetting to refresh after source data changes.
- Letting Excel count a numeric field because one source cell contains text.
- Building formulas beside a pivot table without allowing for the pivot size to change.
Frequently asked questions
What is a pivot table?
It is an interactive summary table that groups and aggregates records from a source table.
Why is my pivot table counting instead of summing?
At least one value in the source field is text or blank in a way that makes Excel treat the field as non-numeric.
How do I update a pivot table?
Right-click the pivot table and choose Refresh, or use Data ▸ Refresh All.
Other ways people ask this
This is also commonly searched as “excel reference table row in formula”, “all borders format excel”, “format pivot table in excel” and “how to conditionally format a row in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel reference table row in formula”, “all borders format excel”, “format pivot table in excel” all point at the one operation explained on this page, which is why they all lead here.