How to Create a PivotTable in Excel (From Scratch)
Read this guide in: English · मराठी · हिंदी
A PivotTable summarises rows into totals — for example sales by City — without writing SUMIF formulas by hand.
Chala mitrano! Long sales sheet, boss asks “Mumbai kitna, Pune kitna?” PivotTable answers in clicks. Why? Fast grouping. How? Insert → PivotTable, drag fields. Tiny shop sheet first. Stay with me.
Quick answer
Vertical steps:
- Clean headers (one header row).
- Click inside the data (or select the Excel Table).
- Insert → PivotTable → New Worksheet → OK.
- Drag City to Rows.
- Drag Amount to Values (Sum).
- Read city totals; Refresh after new data.
Data → PivotTable → City in Rows, Amount in Values
Language: English · मराठी · हिंदी
Before and after (look at the tables first)
Before — raw sales rows
| City | Product | Amount |
|---|---|---|
| Mumbai | Milk | 100 |
| Pune | Bread | 40 |
| Mumbai | Eggs | 50 |
After — PivotTable summary
| City | Sum of Amount |
|---|---|
| Mumbai | 150 |
| Pune | 40 |
| Grand Total | 190 |
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
Why create a PivotTable?
- Manual SUMIF for every city gets tiring.
- PivotTable lets you slice by City, Product, month — by dragging.
- Same engine later powers PivotCharts.
What is a PivotTable?
It is a report layout that groups and aggregates your flat list. You do not destroy the source sheet; the Pivot sits on another sheet (usually).
What happens when you build it
- Excel reads the source range (or Table).
- Field List shows column names.
- City in Rows → one label per city.
- Amount in Values → Sum by default for numbers.
- Mumbai 100 + 50 = 150, Pune 40, Grand Total 190.
Vertical practice steps
- Type the three-row table above (plus headers).
- Select A1:C4 (or Ctrl+T first).
- Insert → PivotTable → New Worksheet.
- Tick City → Rows; Amount → Values.
- Confirm Mumbai 150, Pune 40.
- Add a fourth sales row, then right-click Pivot → Refresh.
Tips that save pain
- Prefer Excel Table (Ctrl+T) so new rows are included after refresh + change source if needed.
- Numbers stored as text will not Sum correctly — fix types first.
- Blank header cells break field names — fill headers.
Ravindra Bagale's Tip
Students drag Amount into Rows by mistake and wonder why there is no total. Values area = numbers to summarise. Rows area = labels to group. Ekda clear zala ki Pivot “click-click” vatato.
Practice task
- Add Channel (Online/Store) to the tiny sheet.
- Put Channel in Columns or Filters.
- Get Mumbai Online vs Store totals.
- Screenshot Field List for your notes.
Learn it properly
Course lessons:
Related guides: SUMIF and SUMIFS · Remove duplicates · FILTER function
Samajla ka? PivotTable = group + total with drag-and-drop. Source sheet stays; summary sheet talks. Aata pudhe IF function for High/Low.
Frequently asked questions
What is a PivotTable?
A summary tool that groups and totals rows without writing formulas. You drag fields into Rows, Columns, Values and Filters.
Do I need formulas?
Not for a basic Sum by City. PivotTable builds the totals for you.
Why is my PivotTable empty?
Fields are not placed yet, or the selected range missed headers. Drag at least one field to Values.
Source data changed — now what?
Right-click inside the PivotTable → Refresh. If you added rows outside the old range, change the data source.
Excel Table vs plain range?
Ctrl+T makes refresh and structured names easier when you add new months of sales.
Course chapter?
Chapter 7 PivotTables — Creating a PivotTable. Linked at the end.