How to analyze data in Excel
How to analyze data in Excel, step by step: structure and clean it, filter it, summarize it with SUMIFS and statistics, then combine tables with lookups and Power Query.
Start with a question
Data analysis means turning rows of data into an answer someone can act on. Write the question first, because it tells you which formula you need. Here are five questions asked of one small sales table.
| A: Region | B: Rep | C: Sales | |
|---|---|---|---|
| 2 | North | Ana | 1,200 |
| 3 | South | Ben | 800 |
| 4 | North | Cara | 950 |
| 5 | East | Dan | 1,500 |
| 6 | South | Eva | 700 |
| 7 | North | Finn | 1,100 |
| Question | Formula | Answer |
|---|---|---|
| What are total sales? | =SUM(C2:C7) | 6,250 |
| What is a typical deal? | =MEDIAN(C2:C7) | 1,025 |
| How much did North sell? | =SUMIFS(C2:C7,A2:A7,"North") | 3,250 |
| How many deals were over 1,000? | =COUNTIFS(C2:C7,">1000") | 3 |
| Who made the biggest sale? | =XLOOKUP(MAX(C2:C7),C2:C7,B2:B7) | Dan |
The median is used for a typical deal because one very large sale can pull the average up. XLOOKUP needs Excel 2021 or Microsoft 365.
The six stages of analysis in Excel
1. Structure the data
Give every column one kind of value and every row one record. An Excel table then grows with your data, so formulas keep up.
2. Clean it
Remove duplicates, fix inconsistent text and repeat the same clean-up automatically when new data arrives.
3. Explore it
Sort and filter to see what is in the data. FILTER, SORT and UNIQUE return a live result that updates itself.
4. Summarize it
Answer questions with conditional totals and counts, then describe the numbers with the mean, median, LARGE and RANK.
5. Combine sources
Bring columns together from several tables with lookups, or relate whole tables and build PivotTables across them.
6. Make the result readable
Number formats and conditional formatting pull the eye to what changed and what needs attention.
Excelio