How to Analyze a POS Sales Export in Excel With Pivot Tables
In this post
Almost every point-of-sale (POS) system can export your sales as a CSV or Excel file. Most owners open it once, see thousands of rows, and close it again.
That's a shame, because the export can answer your most important questions: which products sell best, which salesperson brings in the most, and which hours are busiest. You don't need special software — Excel's pivot tables can do it in minutes. Here's the process I use.
Step 1: Export the right data
From your POS, export line-level sales (one row per item sold) for a period you want to study — a full month is a good start. Typical useful columns:
- Date and time
- Receipt or transaction number
- Store or location
- Salesperson
- Product name and category
- Quantity
- Price, discount and total
- Transaction type (sale, return, void, payment)
Open it in Excel. If it's a CSV, save a copy as .xlsx before you start working.
Step 2: Clean it
Spend ten minutes here and every report afterwards is right.
- Turn it into a table: click any cell and press
Ctrl + T. Tables expand automatically and make pivot tables easier. - Remove what isn't a sale. Filter the transaction-type column and decide what to exclude — bill payments, gift-card loads, voided lines. Either delete them or add a column called
Includewith Yes/No. - Check returns. Returns usually appear as negative quantities or totals. Keep them, so they reduce sales as they should.
- Fix names. Use Find & Replace (
Ctrl + H) to merge spelling variations of the same salesperson or product. - Add helper columns:
Hour:=HOUR([@[Date Time]])Weekday:=TEXT([@[Date Time]],"dddd")Date only:=INT([@[Date Time]]), formatted as a date.
Step 3: Build your first pivot table
- Click inside the table.
- Go to Insert → PivotTable → New worksheet.
- Drag Product to Rows and Total to Values.
- Right-click a number → Sort → Largest to Smallest.
You now have your best-selling products by revenue. Drag Quantity into Values too, to see units as well as revenue — a product can sell many units at a low value, or a few at a high one.
Five pivot tables worth building
| Question | Rows | Columns | Values |
|---|---|---|---|
| Which products earn the most? | Product | — | Sum of Total, Sum of Quantity |
| Who sells the most? | Salesperson | — | Sum of Total, Count of Receipt |
| Which store is strongest? | Store | — | Sum of Total |
| When are we busiest? | Hour | Weekday | Count of Receipt |
| How do categories compare by store? | Category | Store | Sum of Total |
For the busy-hours table, select the numbers and apply Conditional Formatting → Color Scales. You instantly get a heat map showing your busiest days and hours — very useful for scheduling staff.
Counting transactions correctly
One customer buying three items creates three rows. To count customers rather than rows:
- In newer Excel versions, when creating the pivot table, tick Add this data to the Data Model. Then set the Receipt field to Distinct Count.
- In older versions, add a helper column:
=IF(COUNTIF($B$2:B2,B2)=1,1,0)(where column B is the receipt number) and sum it.
With transactions counted correctly you can calculate average ticket (sales ÷ transactions) and units per transaction — two of the retail KPIs every store manager should track.
Add slicers for quick filtering
Click the pivot table, then PivotTable Analyze → Insert Slicer, and choose Store, Salesperson or Month. Slicers are buttons that filter the pivot table with one click — perfect for a manager who wants to see "just my store".
Chart the results
Select a pivot table and choose Insert → PivotChart:
- Bar chart for top products or salespeople.
- Line chart for daily sales over the month.
- Heat map (conditional formatting) for hours and weekdays.
Keep charts simple: one message per chart, clear titles, and no 3D effects.
Make it repeatable
Next month, you don't need to start again:
- Paste the new export into the same table (or replace the old data).
- Go to Data → Refresh All.
Every pivot table and chart updates. If you analyse several stores or several data sources each week, Power Query (Data → Get Data) can combine and clean files automatically.
What to do with the results
Analysis only matters if it leads to a decision:
- Top products: keep them in stock and visible.
- Slow products: discount, bundle or stop ordering.
- Busy hours: schedule your strongest staff there.
- Top salespeople: learn what they do differently and share it.
- Weak categories by store: check stock and training at that location.
When the weekly analysis starts taking more than half an hour, it's usually time for a dashboard that does it automatically — see how to track daily sales KPIs across multiple stores.
Frequently asked questions
How do I analyze sales data in Excel?
Export line-level sales from your POS, turn the data into an Excel table, clean out non-sales lines, and build pivot tables to summarise sales by product, salesperson, store and time.
How do I count unique transactions in a pivot table?
Add the data to the Data Model when creating the pivot table and use Distinct Count on the receipt number, or add a helper column that marks the first row of each receipt.
Can Excel show my busiest hours?
Yes. Add an Hour column with the HOUR function, build a pivot table with hours as rows and weekdays as columns, count receipts, and apply a colour scale.
How do I update a pivot table with new data?
Replace or add the new rows in the source table, then use Data → Refresh All. Pivot tables and charts update automatically.