How to create a pivot table in Excel to analyze sales data

You will build a pivot table from a sales sheet and use it to summarize figures by country, city, product, manager and date without writing a single formula. It suits beginners and anyone who needs quick reports from a large list. You only need Excel and a table with clear column headers.

8.2 Create Pivot Table in Excel in Just 3 Clicks!, by Pavan Lalwani on YouTube. 13 min 46 s.

18 chapters. Tap a step to jump to it.Chapters from the creator
Video length
13 min 46 s
Time to do it
10 minutes
Difficulty
Easy
Steps
10

What you need

Steps

  1. Open your sales sheet and check that row 1 holds clear headers such as Date, Country, City, Product, Manager and Sales, with no blank rows or merged cells below.

  2. Click any cell inside the data, go to the Insert tab and click PivotTable. Excel selects the whole range for you.

  3. Choose New Worksheet in the dialog and click OK. A blank pivot table appears on the left with the field list on the right.

  4. Drag Country into the Rows area and Sales into the Values area. Excel sums sales for each country straight away.

  5. Right-click a sales figure, pick Sort and choose Largest to Smallest to see your best and worst countries first.

  6. Remove Country from Rows and drop City or Product in its place to get that breakdown in seconds.

  7. Add a second field under Rows, for example Product below Country, to compare products inside each country.

  8. Select the value cells, open Conditional Formatting on the Home tab and use Top/Bottom Rules to highlight the top 3 or bottom 3 results.

  9. Drag the Date field into Rows and Excel groups it into Years, Quarters and Months. Right-click a date and use Group to change the levels.

  10. Replace the row field with Manager to get a manager-wise sales breakdown, then save the workbook.

Tips and common mistakes

Right-click the pivot table and choose Refresh after you change the source data, or the numbers stay old.

Use the Values field settings to switch from Sum to Count or Average when you are counting orders rather than adding sales.

Keep the source data on one clean sheet with a single header row so Excel reads every column correctly.

Format the value cells as currency or numbers so large sales figures stay readable.

Questions

Does a pivot table update when I add new rows?

Not by itself. Right-click the pivot table and click Refresh, or press Alt+F5 on Windows, to pull in new data.

Can I build more than one pivot table from the same data?

Yes. Repeat Insert, PivotTable on the same range and place each one on a separate sheet for country, product or manager reports.

Why are my dates showing as one long list instead of months?

Excel groups dates automatically in most versions. If it does not, right-click a date in the pivot table, choose Group and tick Months, Quarters and Years.

This guide was drafted from the video's details and general task knowledge. It has not been checked against the full video. Check the video and relevant product instructions before following a procedure. Report a correction.

More in Apps & Software

See all