Excel for Data Analysis
Topic 2 of 14 · In Data Analysis · September 8, 2026
Clean, analyze and visualize data in Excel: formulas, lookup functions, PivotTables, and analyst-ready spreadsheets.
Overview
Excel is where most data analysis careers start — and, surprisingly, where many finished analyses end up. It is fast for small and medium datasets, remarkably powerful for cleaning, and your manager will almost certainly ask you to deliver the final report in a spreadsheet.
This topic teaches Excel the way an analyst uses it: organization first, then formulas, then lookups, then cleaning, then PivotTables and dashboards. You will learn exactly which functions do the heavy lifting (SUMIFS, XLOOKUP, INDEX-MATCH) and how to keep your work fast on million-row files. By the end you will be able to take a messy export and turn it into a clean, charted, presentable analysis — a skill that carries straight into your next topic, SQL.
Before You Start
- Complete the Basics topic first: you must be able to state the difference between a metric and a KPI and between a dimension and a measure.
- Have Microsoft Excel (or Google Sheets or the free web Excel) open, with a sales CSV of at least 500 rows containing order date, category, region and revenue.
- Create three empty sheets named Raw, Clean and Report before you begin, so the analyst workflow is already built into your workbook.
- Re-make your Basics summary pivots as Excel Tables so you feel the difference between a bare range and a controlled table.
- Know how to press F4 to toggle absolute references and how to split a cell with Text to Columns — both are needed in the worked examples below.
Learning Objectives
- Navigate workbooks, worksheets, cells, ranges and named references
- Organize raw data into proper Excel Tables and use sorting/filtering safely
- Write formulas with relative and absolute references
- Use logical functions: IF, IFS, AND, OR
- Sum, count and average with conditions: SUMIF(S), COUNTIF(S)
- Look up values with XLOOKUP and the classic INDEX + MATCH combo
- Work with dates and text (extract, join, clean)
- Clean data: remove duplicates, split columns, validate input, spot missing values
- Build PivotTables and PivotCharts that answer business questions
- Assemble a simple KPI dashboard
Prerequisites
Just this path's Data Analysis Basics — a data type vocabulary. Everything Excel-specific is taught from zero. You need a copy of Microsoft Excel (or the free online/Google Sheets, which works for most of it).
The Analyst's Workflow in Excel
Analysts use Excel in three phases: (1) bring data in (paste a CSV, import a query), (2) shape it (clean, add calculated columns, filter), and (3) summarize it (PivotTables, charts, dashboard). The golden rule: keep raw data untouched on its own sheet and do all work in calculated versions. That way your report is explainable and repeatable — if the source changes, you re-import, not redo.
Workbooks, Cells, Ranges and References
A workbook is the file; each worksheet is a tab inside it. A cell is one box (e.g. B3 = column B, row 3). A range is a rectangle of cells: A2:C15. Formulas start with = and reference cells so they update automatically.
- Relative reference
=A1+B1— fills down and adjusts per row (perfect for per-row math) - Absolute reference
=$A$1— locks the cell when you copy the formula (perfect for a fixed tax rate or target). Press F4 to toggle.
Consistent references are the difference between a formula that fills 10,000 rows perfectly and one that silently breaks.
Tables, Sorting and Filtering
Converting a data range into an Excel Table (Ctrl+T) brings big analyst wins: automatic filtering dropdowns, structured references that survive inserts, and a row stripe that grows as you add rows. From any table you can sort a column or filter to a subset in two clicks — always filter/sort from a Table, never by selecting columns manually (that hides rows and corrupts later formulas).
Tip for analysts: filter with the dropdown or Filter by Color during exploration; for repeatable analysis, use IF/SUMIFS instead, so the analysis doesn't depend on the current screen state.
Logical and Aggregate Formulas
These five are your daily vocabulary:
| Function | What it does | Example |
|---|---|---|
IF | Return different values by condition | =IF(F2>0,"Profitable","Loss") |
IFS | Several conditions in one formula | =IFS(F2>100,"High",F2>0,"Low",TRUE,"Zero") |
AND / OR | Combine conditions | =IF(AND(F2>0,E2>5),"Pass","Fail") |
SUM / AVERAGE / MIN / MAX | Basic aggregations | =SUM(B2:B100) |
COUNT / COUNTA | Count numbers / non-empty cells | =COUNTA(A2:A100) |
Conditional aggregations are the analyst's super-power: SUMIF(range, criteria, sum_range), SUMIFS, COUNTIF, COUNTIFS, AVERAGEIFS. Example: total revenue for Category="Electronics" and Region="North" → =SUMIFS(Sales, Category,"Electronics", Region,"North"). Learn SUMIFS/COUNTIFS well — they are Excel's version of the SQL filters you will meet next.
Lookups: XLOOKUP and INDEX + MATCH
Lookups fetch a related value from another table — e.g. give me the customer name for this order id.
XLOOKUP (Excel 365) is the modern way: =XLOOKUP(lookup_value, lookup_array, return_array). Simple, handles missing values with a default.
INDEX + MATCH is the classic, still required in older files: MATCH finds the position of a value in a column; INDEX returns the value at that position in another column. Combined: =INDEX(Names, MATCH(lookup_id, Ids, 0)).
Developers use lookups any time two tables share a key (customer_id, product code). This is exactly what JOINs do in SQL — so succeed here now and SQL will feel familiar.
Date and Text Functions
Analysts constantly reshape dates and text that arrive in messy form.
Date functions: YEAR(), MONTH(), DAY(), DATEDIF(), EOMONTH(), WEEKNUM(). Build month labels like =TEXT(A2,"mmm-yyyy") to group monthly KPI data.
Text functions: LEFT/RIGHT/MID (extract), TRIM (remove stray spaces), CLEAN (remove hidden line breaks), UPPER/LOWER/PROPER, LEN, SUBSTITUTE (replace), CONCAT/TEXTJOIN (join), FIND/SEARCH (locate). Example: split "John; 25; Cairo" using SEARCH/MID or the Text-to-Columns feature.
Text-and-date cleaning is where ugly exports become analysis-ready — and doubles as the next topic's data-cleaning toolbox.
Data Cleaning in Excel
Excel can fix most data-quality problems without a single formula:
- Remove duplicates — Data → Remove Duplicates (but always check why rows duplicated first)
- Missing values — filter blanks (
ISBLANK/COUNTBLANK) and decide: fill with a sensible default or keep and flag them - Text to Columns — split one messy column into several by delimiter (Data → Text to Columns)
- Data validation — restrict what users/users can enter (lists, ranges, rules) so future data arrives clean
- Conditional formatting — color cells by rule (top 10, above average, duplicate values) to visually spot outliers fast
- Consistency checks — with
SUBSTITUTE/lowercase/trim normalization: standardize "New York" vs "NY"
These exact steps appear again in Power Query, SQL and pandas — once you know the concept of cleaning, only the button changes.
PivotTables, PivotCharts and Dashboards
A PivotTable is Excel's flagship analysis tool: drag a field into Rows (a dimension), another into Values (a measure), and Excel aggregates instantly. One click gives you sales by region; drag again and you get it by month and region.
- Select the data table → Insert → PivotTable
- Drop Category into Rows, Sales into Values (set to Sum)
- Add OrderDate to Rows (group by month) for a trend view
- Insert a PivotChart from the pivot, add slicers (Region, Channel) for interactivity
A dashboard is a report sheet where several pivots/charts answer one business question at a glance — a KPI card up top (Revenue, Orders, Conversion), a trend line, a breakdown bar, and slicers that filter everything. Keep the layout clean: one question per dashboard, most important number top-left.
Hands-On Practice
Use a public sales CSV (500+ rows). Build one workbook with Raw/Clean/Report sheets and complete:
- Import data as a Table; add a calculated column
Revenue = Quantity × Pricewith absolute references - Classify rows with
IFS: segment orders into Small / Medium / Large by revenue - Answer 4 business questions using
SUMIFS/COUNTIFS(revenue by category, orders by region above a threshold…) - Join customer names from a second table with
XLOOKUPand re-verify withINDEX+MATCH - Clean: remove duplicates, split a combined column, standardize case, flag missing values with conditional formatting
- Build a PivotTable (category by month) + PivotChart + one-sheet dashboard with 3 KPIs and a slicer
Workbook hygiene + references + Tables + sorting/filtering. Rebuild each of the exercises you did in Basics as Excel Tables so you feel the difference between a bare range and a controlled table.
Deeper Worked Examples
Conditional totals with SUMIFS and COUNTIFS
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Clean lookups and a regional pivot
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Common Mistakes
- Mixing manually-typed numbers with formulas — one hardcoded '11,000' silently poisons a SUM
- Wildcard confusion: * means 'any characters', ? means 'one character' in COUNTIF/SUMIF
- Breaking XLOOKUP/INDEX-MATCH by padding tables with blank rows that prevent exact matching
- Filtering manually instead of using SUMIFS/COUNTIFS, then exporting a filtered (incomplete) file
- Comparing non-normalized text ('ny' vs 'NY') and wondering why counts disagree
- Using a PivotTable without checking its raw numbers first (is it counting, not summing?)
- Putting raw and analysis in one sheet — no reproducible pipeline
Real-World Usage
In most first analyst jobs Excel is the desktop tool: you receive a weekly export, clean it in Power Query or formulas, summarize with pivots, and email a dashboard. Managers trust a file that updates itself — formulas instead of typed numbers — and a report whose assumptions are visible. Meanwhile, the same cleaning concepts scale up: the Excel you learn here is the on-ramp to Power BI (which uses the same logic engine) and SQL (which expresses lookups and conditional sums differently). Excel is rarely glamorous, but it is the fastest way to look competent in week one of a new job.
Mini Project
Business problem: The store manager wants one sheet that shows monthly performance to decide where to focus the next campaign.
Dataset: the sales CSV from your practice (or any 500+ row sales export with order date, category, region, salesperson, revenue columns).
Objective: deliver a self-updating dashboard workbook, not a static screenshot.
Task 1
Task 2
Task 3
Task 4
Task 5
Task 6
Task 7
| Deliverable | Proves |
|---|---|
| Clean workbook with 3 sheets | Repeatable pipeline = analyst habit |
| Formula-driven KPIs | No hardcoded numbers |
| Category × Month pivot + chart | Trend + breakdown in one view |
| Slicers / filterable report | Interactive, not static |
| Self-updating on raw change | File is explainable and maintainable |
Key Takeaways
- Analyst workflow: import → shape (Raw/Clean/Report sheets) → summarize
- Use Excel Tables + relative/absolute references correctly
- IF/IFS/AND/OR branch; SUMIFS/COUNTIFS aggregate with conditions
- XLOOKUP or INDEX+MATCH to join related data on a unique key
- Date (YEAR/MONTH/TEXT) and text (TRIM/LEFT/SUBSTITUTE) functions fix messy inputs
- Cleaning = duplicates, missing values, split columns, validation, conditional formatting
- PivotTables summarize dimensions × measures in seconds
- A good dashboard answers one question with KPI cards + a chart + slicers
Key Terms & Glossary
| Term | Meaning |
|---|---|
| absolute reference | A cell address locked with dollar signs, like $B$2, so it keeps pointing at the same cell when the formula is copied. |
| Excel Table | A named data range with filter dropdowns, striped rows and structured references that grow automatically as you add rows. |
| PivotTable | Excel's core analysis tool that drops a dimension into Rows and a measure into Values to aggregate instantly, without typing formulas. |
| XLOOKUP | A function that returns a matching value from another table by looking up a key — the modern replacement for VLOOKUP. |
| SUMIFS | A conditional sum that adds a column only where one or more criteria are true, for example revenue for one region and one category. |
| slicer | A clickable filter control attached to a PivotTable or chart that filters the whole report with one click. |
Learning Resources
Microsoft Excel Help & Learning
Official documentation for every function and feature — search function names here first.
ExcelJet
The clearest quick reference for Excel formulas, shortcuts and examples.
Excel Skills for Business (Coursera)
A structured Macquarie University specialization covering essentials → advanced analysis.
Leila Gharani — Excel on YouTube
Short, modern video tutorials for formulas, PivotTables and dashboards.
ExcelIsFun on YouTube
Massive free library of beginner-to-expert Excel lessons and challenges.
Chandoo.org
Blog and mini-courses on analyst-style Excel: dashboards, formulas and reporting.
Chapter Quiz
Chapter Quiz — Excel for Data Analysis
Test your command of references, conditional aggregation, lookups, cleaning and PivotTables.
Question 1 of 5
What does an absolute reference like $B$2 do when you copy a formula down?
Knowledge Check
End-of-Topic Exam
Hint: SUMIFS puts the sum range first.
Model answer: =SUMIFS(C:C, A:A, "North", G:G, "Mar-2026"). The order is sum_range, criteria_range1, criteria1, criteria_range2, criteria2 — every criteria pair is a range followed by its condition, and the ranges must match in size.
Hint: AVERAGEIFS puts the average range first, before the criteria pairs.
Model answer: =AVERAGEIFS(D:D, B:B, "Electronics", A:A, "North", G:G, "Jun-2026"). The average range comes first, then alternating criterion-range and criterion pairs; every range is the same size, and text criteria such as 'Electronics' are written inside quotes.
Hint: Think simplicity and missing-value defaults versus older files and position-based lookups.
Model answer: XLOOKUP is simpler to read, lets you set a default when a value is missing, and is the right choice in modern workbooks. INDEX+MATCH still wins in legacy files that predate XLOOKUP and anywhere you need to match on a row or column position rather than a strict key, for example returning a value that sits to the left of the lookup column.
Hint: Think reproducibility, hidden rows and next month's repeatability.
Model answer: Three problems: a manual filter reflects only the current screen state, so totals silently change or rows are hidden; the analysis cannot be re-run next month without repeating the clicks; and there is no audit trail of which records were included. The fixes are conditional aggregation instead of filtering (SUMIFS and COUNTIFS), a PivotTable for reproducible summaries, and a stored Excel Table with clearly separated sheets so the process survives next month's export.