Excel is still the fastest way to answer most business questions about a table of data. You don’t need macros or advanced formulas. You need a clean table, a handful of functions, a PivotTable and a chart.
In this guide you’ll analyze a real-looking sales file from start to finish: 1,218 orders with the kind of problems real exports have. Every number below comes from the practice workbook, so you can follow along and check that you get the same results.
Download the practice workbook (.xlsx, 48 KB)
The short version
- Turn your data into an Excel Table (Ctrl + T).
- Clean it: fix inconsistent text with TRIM and PROPER, then remove duplicates.
- Add the columns you need with XLOOKUP and a simple formula.
- Answer specific questions with SUMIFS, COUNTIFS and AVERAGE.
- Summarize everything at once with a PivotTable.
- Chart the trend with a PivotChart.
- Highlight what matters with conditional formatting.
- Get summary statistics from the Analysis ToolPak.
Before you start
This guide uses Excel for Microsoft 365, Excel 2024 or Excel 2021 on Windows or Mac. Everything works in older versions except XLOOKUP; we show the INDEX/MATCH alternative where it comes up.
The workbook has three sheets:
- Orders: 1,218 sales orders from 2025 with Order ID, Order Date, Region, Sales Rep, Product, Units and Discount.
- Products: a price list with each product’s Category and Unit Price.
- Read me: a short description of the data.
The data is generated for practice and isn’t real company data, but it has two problems you’ll find in almost every real export: inconsistent text and duplicate rows.
Step 1: Turn your data into a Table
Click any cell in the Orders data and press Ctrl + T (Cmd + T on a Mac). Check that My table has headers is ticked and click OK. Then, on the Table Design tab, change the table name to Orders. Do the same on the Products sheet and name that table Products.
Tables are worth the five seconds. Formulas fill down automatically, new rows are picked up by PivotTables and charts, and you can refer to columns by name, so a formula reads like a sentence instead of a range of cell addresses.
Step 2: Clean the data
Fix inconsistent text
Open the filter on the Region column and you’ll see the same region listed more than once. Some entries have a trailing space (West ) and some are lower case (west). To Excel these are different values, so they would split your totals.
Add a column next to Region called Region clean and enter:
=PROPER(TRIM([@Region]))TRIM removes the extra spaces and PROPER capitalizes each word, so all variants become one of four values: East, North, South and West. Copy the new column, paste it over Region with Paste Special › Values, then delete the helper column.
Remove duplicate rows
With a cell in the table selected, go to Data › Remove Duplicates, leave every column ticked and click OK. Excel reports:
18 duplicate values found and removed; 1200 unique values remain.
These were orders entered twice. Leaving them in would have overstated revenue by $20,703, about 2%. Keep all columns ticked so only rows that are identical in every field are removed; two genuine orders for the same product on the same day have different Order IDs, so they stay.
Step 3: Add the columns you need
Each order has a Product but no Category or price. Add a Category column to the Orders table and look it up from the Products table:
=XLOOKUP([@Product], Products[Product], Products[Category])Add a Unit Price column the same way:
=XLOOKUP([@Product], Products[Product], Products[Unit Price])In Excel 2019 or earlier, use INDEX and MATCH instead:
=INDEX(Products[Category], MATCH([@Product], Products[Product], 0))Finally, add a Revenue column. Discount is stored as a percentage, so revenue is units times price, less the discount:
=[@Units] * [@[Unit Price]] * (1 - [@Discount])Because Orders is a Table, each formula fills down all 1,200 rows as soon as you press Enter.
Step 4: Answer questions with formulas
Before building anything bigger, answer a few direct questions. Put these formulas on a new sheet. SUMIFS and COUNTIFS take a range to sum or count, followed by pairs of criteria ranges and criteria.
| Question | Formula | Answer |
|---|---|---|
| Total revenue | =SUM(Orders[Revenue]) | $1,010,884.13 |
| Average order value | =AVERAGE(Orders[Revenue]) | $842.40 |
| Revenue in the West region | =SUMIFS(Orders[Revenue], Orders[Region], "West") | $278,394.13 |
| Electronics revenue in the West | =SUMIFS(Orders[Revenue], Orders[Region], "West", Orders[Category], "Electronics") | $151,123.60 |
| Revenue in June 2025 | =SUMIFS(Orders[Revenue], Orders[Order Date], ">="&DATE(2025,6,1), Orders[Order Date], "<"&DATE(2025,7,1)) | $111,186.28 |
| Orders over $1,000 | =COUNTIFS(Orders[Revenue], ">1000") | 259 |
| Share of orders with a discount | =COUNTIFS(Orders[Discount], ">0") / ROWS(Orders) | 51.2% |
Notice that the date criteria are built with ">="&DATE(...). Writing the comparison and the date as one text string is the most common reason a date-based SUMIFS returns zero.
Step 5: Summarize with a PivotTable
Formulas answer one question at a time. A PivotTable answers a whole grid of them at once, and you can rearrange it in seconds.
- Click any cell in the Orders table and choose Insert › PivotTable, then OK to place it on a new sheet.
- Drag Region to Rows, Category to Columns and Revenue to Values.
- Right-click a number, choose Value Field Settings › Number Format and pick Currency with 0 decimal places.
| Sum of Revenue | Electronics | Furniture | Office Supplies | Grand Total |
|---|---|---|---|---|
| East | $194,489 | $56,203 | $26,359 | $277,050 |
| North | $143,170 | $65,600 | $24,703 | $233,473 |
| South | $152,764 | $43,753 | $25,450 | $221,967 |
| West | $151,124 | $95,060 | $32,211 | $278,394 |
| Grand Total | $641,547 | $260,616 | $108,722 | $1,010,884 |
Two things stand out. Electronics is 63% of all revenue, and the West sells far more furniture than any other region ($95,060, against $65,600 in the North).
Now change one field. Drag Sales Rep into Rows below Region, and you can see which rep drives each region’s numbers. That flexibility is why PivotTables are the center of most Excel analysis.
Look beyond the totals
The West and East have almost the same revenue, but they get there differently. Add Order ID to Values (it will show as Count of Order ID) and you’ll see the West had 359 orders and the East only 297. Divide revenue by orders and the East’s average order is $933 against the West’s $775.
That’s the kind of finding a total hides. The West wins on volume; the East and North win on order size.
Step 6: Chart the trend
Build a second PivotTable with Order Date in Rows and Revenue in Values. Excel groups dates automatically; if it doesn’t, right-click a date, choose Group and select Months. Then choose PivotTable Analyze › PivotChart and pick a line chart.

Revenue moves a lot from month to month, between $62,946 and $111,186. Quarterly totals are steadier: Q2 was the strongest quarter at $284,462, and Q1 the weakest at $213,535. When a monthly chart looks noisy, try grouping by quarter before you draw conclusions.
Step 7: Highlight what matters with conditional formatting
Select the Revenue column in the Orders table and choose Home › Conditional Formatting › Highlight Cells Rules › Greater Than. Enter 1000 and pick a fill color.
259 orders light up. Filter the Revenue column by color and you’ll see they are almost all laptops, monitors, headphones, office chairs and standing desks. In a PivotTable, Conditional Formatting › Data Bars gives a quick visual comparison without building a chart.
Step 8: Get summary statistics with the Analysis ToolPak
The Analysis ToolPak is a free add-in that ships with desktop Excel. It produces descriptive statistics, histograms, correlation and regression with a few clicks.
Load the ToolPak
- Windows: go to File › Options › Add-ins. In the Manage box, choose Excel Add-ins and click Go. Tick Analysis ToolPak and click OK.
- Mac: go to Tools › Excel Add-ins, tick Analysis ToolPak and click OK.
A Data Analysis button now appears on the Data tab.
Run descriptive statistics
Click Data Analysis, choose Descriptive Statistics and select the Revenue column including its header. Tick Labels in first row and Summary statistics, choose an output location and click OK.
| Statistic | Revenue |
|---|---|
| Mean | 842.40 |
| Standard Error | 39.56 |
| Median | 325.00 |
| Mode | 74.97 |
| Standard Deviation | 1,370.56 |
| Sample Variance | 1,878,425.12 |
| Kurtosis | 15.99 |
| Skewness | 3.53 |
| Range | 11,945.31 |
| Minimum | 11.39 |
| Maximum | 11,956.70 |
| Sum | 1,010,884.13 |
| Count | 1,200 |
The useful line here is the gap between the mean ($842.40) and the median ($325.00). A mean much higher than the median, plus a skewness of 3.5, means a small number of large orders pull the average up. In this data the largest 10% of orders bring in about half of all revenue. If you report a “typical order”, the median is the honest number.
What the data told us
Here’s the analysis in four sentences, the kind of summary you’d send a manager:
- Total 2025 revenue was $1,010,884 from 1,200 orders, after removing 18 duplicates.
- Electronics drove 63% of revenue, and one product, the 14-inch laptop, brought in $311,414 on its own.
- The West had the most revenue and orders, but the East and North had average orders about 20% larger than the West’s.
- About half of all orders had a discount, yet discounted orders averaged 8.32 units against 7.99 without one, so discounts are not noticeably growing order size.
Common mistakes
- Skipping the cleaning step. One trailing space splits a region into two rows of a PivotTable, and nobody notices until the totals don’t match.
- Summing a column that contains duplicates. Always check for repeated IDs before you total anything.
- Typing values over formulas. A hard-coded number inside a column of formulas is almost impossible to spot later. Tables warn you with a small green triangle; don’t ignore it.
- Reporting the average when the data is skewed. Check the median as well. If they differ a lot, say so.
- Using whole-column references like A:A in large files. They slow workbooks down. Table column references, such as Orders[Revenue], are both faster and clearer.
Check your answers
| Check | Expected result |
|---|---|
| Rows after removing duplicates | 1,200 |
| Distinct regions after cleaning | 4 |
| Total revenue | $1,010,884.13 |
| Revenue by region | West $278,394, East $277,050, North $233,473, South $221,967 |
| Revenue by category | Electronics $641,547, Furniture $260,616, Office Supplies $108,722 |
| Orders over $1,000 | 259 |
| Median order value | $325.00 |
If a number is a few dollars off, the usual cause is a region that wasn’t cleaned or duplicates that weren’t removed.
When Excel isn’t enough
Excel handles up to 1,048,576 rows per sheet, and it starts to feel slow well before that. If your data is larger, comes from a database, or you repeat the same analysis every week, move to SQL or Python with pandas. The thinking is the same: clean, add columns, group, summarize, chart.
Keep learning
- Introduction to Power BI: the next step when you want shareable dashboards
- How to build a data dashboard
- How to clean and preprocess data using Python
- Data manipulation with pandas
Microsoft’s Excel help and learning pages document every function used in this guide.
FAQ
How do I analyze data in Excel?
Put the data in a Table, clean it, add any calculated columns, then summarize it with a PivotTable and chart the results. Use SUMIFS and COUNTIFS for specific questions and the Analysis ToolPak for statistics.
Where is Data Analysis in Excel?
The Data Analysis button appears on the Data tab after you load the Analysis ToolPak add-in. On Windows, go to File › Options › Add-ins › Excel Add-ins › Go and tick Analysis ToolPak. On a Mac, go to Tools › Excel Add-ins.
Is Excel good for data analysis?
Yes, for data up to a few hundred thousand rows and one-off or occasional analysis. For larger data, automated reports or advanced statistics, SQL, Python or Power BI are a better fit.
What is the best Excel function for data analysis?
SUMIFS is the most useful single function, because most business questions are “total of X where Y”. Combine it with COUNTIFS, AVERAGEIFS and XLOOKUP and you can answer most questions without a PivotTable.
Can I use this workbook for practice?
Yes. It’s free to download and use for learning. The data is generated with a fixed random seed, so everyone gets the same results.
Free tool: Need a sheet as a CSV for Python or a database? Use our free Excel to CSV converter. It runs in your browser, so the file is never uploaded.
