Mohamed A. Adel.

Excel for Data Analysis

Topic 2 of 14 · In Data Analysis · September 8, 2026

⏱ 2–3 WeeksBeginner

Clean, analyze and visualize data in Excel: formulas, lookup functions, PivotTables, and analyst-ready spreadsheets.

++++FREE LEARNING PATHDATA ANALYSISDATA ANALYSIS · PHASE 1 · FUNDAMENTALSEXCEL FOR DATAANALYSISClean, analyze and visualize data in Excel: formula…· 1 / 3BEGINNER2–3 WEEKSmotif / table4744 · 44 · MODULE 1.1

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:

FunctionWhat it doesExample
IFReturn different values by condition=IF(F2>0,"Profitable","Loss")
IFSSeveral conditions in one formula=IFS(F2>100,"High",F2>0,"Low",TRUE,"Zero")
AND / ORCombine conditions=IF(AND(F2>0,E2>5),"Pass","Fail")
SUM / AVERAGE / MIN / MAXBasic aggregations=SUM(B2:B100)
COUNT / COUNTACount 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.

  1. Select the data table → Insert → PivotTable
  2. Drop Category into Rows, Sales into Values (set to Sum)
  3. Add OrderDate to Rows (group by month) for a trend view
  4. 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:

  1. Import data as a Table; add a calculated column Revenue = Quantity × Price with absolute references
  2. Classify rows with IFS: segment orders into Small / Medium / Large by revenue
  3. Answer 4 business questions using SUMIFS/COUNTIFS (revenue by category, orders by region above a threshold…)
  4. Join customer names from a second table with XLOOKUP and re-verify with INDEX+MATCH
  5. Clean: remove duplicates, split a combined column, standardize case, flag missing values with conditional formatting
  6. 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

These examples push further than the core content — each one is a complete, step-by-step solution you can follow and then reproduce on your own.

Conditional totals with SUMIFS and COUNTIFS

Problem. A gift shop's weekly export has every order line on one sheet: column A is region, column B is category, column C is order date and column D is amount. The owner wants, in a single Report cell each, the total revenue for Electronics sold in the North region during March 2026, and the number of orders in that same slice.
1

Step 1

State the answer you are building towards: two Report cells, one sum and one count, both driven by formulas that update when the Raw sheet changes.
2

Step 2

Add a helper Month column on the Clean sheet with the formula =TEXT(C2, "mmm-yyyy") so every order carries an exact, comparable month label — cleaner than comparing raw dates.
3

Step 3

Enter the revenue with =SUMIFS(D:D, A:A, "North", B:B, "Electronics", E:E, "Mar-2026") and read the result — 42,800 pounds in the worked case.
4

Step 4

Enter the order count with =COUNTIFS(A:A, "North", B:B, "Electronics", E:E, "Mar-2026") and read 68 orders.
5

Step 5

Turn both cells into labelled KPI cards on the Report sheet, then sanity-check them: filter Raw by region and category and confirm the Status Bar total matches the SUMIFS figure.
6

Step 6

Test the pipeline: change one March Electronics North amount in Raw, confirm both Report cells recompute, and note that a mis-spelled region anywhere silently breaks the match.

Clean lookups and a regional pivot

Problem. orders.csv lists order_id and product_code, but the product names and customer names live in two separate reference tables. You have 1,200 order rows, some with trailing spaces in product_code, and the owner wants a one-page regional revenue view with names attached, plus a pattern that repeats next month.
1

Step 1

Load orders as an Excel Table (Insert, then Table, or Ctrl+T) and keep Raw, Clean and Report sheets so the workbook is a real pipeline, not a one-off.
2

Step 2

Normalise the join key first with a helper column =TRIM(C2), because product codes like 'P-114 ' with a trailing space and 'P-114' without one will otherwise fail to match.
3

Step 3

Attach the product name with =XLOOKUP(C2, ProductTable[product_code], ProductTable[product_name], "Not found") and the customer name with =XLOOKUP(A2, CustomerTable[customer_id], CustomerTable[customer_name], "Not found").
4

Step 4

Verify a sample of ten rows by hand, then redo one lookup with =INDEX(CustomerTable[customer_name], MATCH(A2, CustomerTable[customer_id], 0)) and confirm both methods return the same names.
5

Step 5

Build a PivotTable with Region in Rows, revenue in Values set to Sum, and OrderDate grouped by month added as a row field so there is a trend under the breakdown.
6

Step 6

Attach a slicer for product_name, confirm the totals against a manual COUNTIFS spot-check on three combinations, and deliver the one-page Report with the KPI card, pivot, slicer and a data-validation list that only allows valid region codes.

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.

1

Task 1

Build the Raw sheet: import CSV untouched.
2

Task 2

Build the Clean sheet: Table, duplicates removed, dates standardized, categories normalized, missing values flagged.
3

Task 3

Add calculated columns: Revenue = Quantity × Price; Month = TEXT(order date).
4

Task 4

Add KPI cells: Total Revenue, Total Orders, Avg Order Value using SUMIFS/COUNTIFS.
5

Task 5

Create a PivotTable (Category × Month) and a PivotChart trend line.
6

Task 6

Assemble the Report sheet with KPI cards, charts, slicers (Region, Channel) and a short notes box.
7

Task 7

Test that the file updates when the Raw sheet changes — replace one row and confirm totals and charts re-compute.
DeliverableProves
Clean workbook with 3 sheetsRepeatable pipeline = analyst habit
Formula-driven KPIsNo hardcoded numbers
Category × Month pivot + chartTrend + breakdown in one view
Slicers / filterable reportInteractive, not static
Self-updating on raw changeFile 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

The vocabulary this topic uses, defined the way a working professional would.
TermMeaning
absolute referenceA cell address locked with dollar signs, like $B$2, so it keeps pointing at the same cell when the formula is copied.
Excel TableA named data range with filter dropdowns, striped rows and structured references that grow automatically as you add rows.
PivotTableExcel's core analysis tool that drops a dimension into Rows and a measure into Values to aggregate instantly, without typing formulas.
XLOOKUPA function that returns a matching value from another table by looking up a key — the modern replacement for VLOOKUP.
SUMIFSA conditional sum that adds a column only where one or more criteria are true, for example revenue for one region and one category.
slicerA clickable filter control attached to a PivotTable or chart that filters the whole report with one click.

Learning Resources

These curated sources go deeper than this module: official docs, books, interactive practice, and full courses. Mix them into your routine to go from comfortable to professional.

Microsoft Excel Help & Learning

Official documentation for every function and feature — search function names here first.

Open resource ↗

ExcelJet

The clearest quick reference for Excel formulas, shortcuts and examples.

Open resource ↗

Excel Skills for Business (Coursera)

A structured Macquarie University specialization covering essentials → advanced analysis.

Open resource ↗

Leila Gharani — Excel on YouTube

Short, modern video tutorials for formulas, PivotTables and dashboards.

Open resource ↗

ExcelIsFun on YouTube

Massive free library of beginner-to-expert Excel lessons and challenges.

Open resource ↗

Chandoo.org

Blog and mini-courses on analyst-style Excel: dashboards, formulas and reporting.

Open resource ↗

Chapter Quiz

Put this lesson to work: answer the questions below, get instant feedback and a pass/fail score. Score 70% or higher before you move on — that is your gate to the next topic.

Chapter Quiz — Excel for Data Analysis

Test your command of references, conditional aggregation, lookups, cleaning and PivotTables.

0 / 5

Question 1 of 5

What does an absolute reference like $B$2 do when you copy a formula down?

Knowledge Check

When copying a formula down/right and you need one fixed value on every copy — e.g. a commission rate or target cell. Without the $, the reference would shift and the results would silently be wrong.
=SUMIFS(C:C, A:A, "Electronics", B:B, "North") — criteria range first in the SUMIFS argument order (sum_range, criteria_range1, criteria1, criteria_range2, criteria2).
COUNT counts only numeric cells; COUNTA counts every non-empty cell (including text). Use COUNTIF/COUNTA together when checking data completeness.
So the pipeline is explainable and repeatable: import once, transform in steps, re-run when new data arrives — and never risk corrupting the source by typing into it.
Instant multi-dimensional aggregation: re-arrange dimensions and measures by drag-and-drop, group by month/week, and feed PivotCharts and slicers — no formula rewriting.

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.

Next Step

Congratulations — you just finished Excel for Data Analysis. The next topic is SQL. Press on when you are ready: it will build directly on what you practiced here.