Session 10 ยท Phase 2: Excel

Excel Fundamentals, Referencing & Data Cleaning

Excel is the analyst's everyday tool. Master the fundamentals โ€” cells, cell referencing, formulas โ€” and learn to clean messy real-world data fast.

โฑ ~2 hrs ๐Ÿ“š Core content ๐ŸŽฏ High priority

Learning Objectives

1. What Excel Is & Why It Matters

Excel is spreadsheet software that turns raw data into readable, analyzable tables. For a data analyst it's the everyday workhorse โ€” quick analysis, reporting, cleaning, and prototyping before anything moves to a database or dashboard.

๐ŸŒ
Real World: A manager emails you a messy spreadsheet of branch-wise sales and asks for a summary "by tomorrow." You won't build a database for that โ€” you'll clean it and pivot it in Excel in under an hour. That's why Excel is on every analyst job description.

2. The Building Blocks โ€” Workbook, Sheet, Cell

TermWhat it is
Workbookthe whole Excel file (extension .xlsx)
Worksheetone sheet/tab inside a workbook
Cellthe intersection of a row and a column โ€” the basic unit
Cell addresscolumn letter + row number, e.g. A1, D7
Rangea group of cells, e.g. A1:A10

Every cell holds one piece of "cell content" โ€” a number, text, a formula, or a note.

3. Cell Referencing โ€” Relative, Absolute, Mixed

This is the single most-asked basic Excel question. When you copy a formula, its references can either change or stay fixed โ€” depending on the $ symbol.

TypeExampleWhen copiedUse case
RelativeA1changesdefault โ€” repeat a calc across rows
Absolute$A$1stays fixedlock a constant (tax rate, rate)
Mixed$A1 or A$1one part fixedlock column or row only
-- A relative formula, when copied one row down, becomes =A2+B2
=A1+B1

-- An absolute reference never changes, no matter where you copy it
=$A$1*B1   -- always multiplies by the value in A1
๐Ÿ’ก
Shortcut: select a reference inside a formula and press F4 to cycle through A1 โ†’ $A$1 โ†’ A$1 โ†’ $A1. This is the fastest way to lock references.

4. Formulas vs Functions, and Order of Operations

Formula vs function

A formula is any calculation you write (starts with =). A function is a built-in, pre-written formula โ€” like SUM, AVERAGE, or COUNT.

=C3+C4+C5        -- a formula (typed manually)
=SUM(C3:C5)      -- a formula that uses the SUM function

Order of operations (PEMDAS)

Excel calculates in this order โ€” get this wrong and your formula silently returns the wrong number:

  1. Parentheses ()
  2. Exponents ^
  3. Multiplication * and Division /
  4. Addition + and Subtraction -
=(A1*10+5)/2   -- multiply first, then add, then divide (parentheses control it)

5. Data Cleaning Essentials

Real-world data is messy โ€” duplicates, stray spaces, merged names, inconsistent formats. These are the tools you'll reach for constantly.

5.1 Remove Duplicates

Data โ†’ Data Tools โ†’ Remove Duplicates. Permanently deletes duplicate rows. Choose which columns define a "duplicate."

5.2 Text to Columns

Data โ†’ Data Tools โ†’ Text to Columns. Splits one column into several using a delimiter (comma, space, tab). Classic use: splitting "Aarav Sharma" into first name and last name.

5.3 TRIM โ€” remove extra spaces

=TRIM(A1) removes leading, trailing, and extra internal spaces. Names copied from emails or web forms almost always need this.

5.4 Find & Replace

Ctrl+H. Replace a value everywhere โ€” e.g. turn "Mumbai " into "Mumbai", or standardize "Delhi" vs "DELHI".

5.5 Flash Fill

Ctrl+E. Type one example of the pattern you want, then Excel auto-fills the rest. Great for extracting initials, formatting numbers, or splitting names without formulas.

5.6 Data Validation

Data โ†’ Data Tools โ†’ Data Validation. Restricts what can be entered into a cell โ€” e.g. a drop-down list, or numbers only between 1 and 100. Prevents dirty data at the source.

โš ๏ธ
Handling missing data: Before you fill or delete blanks, understand why they're missing. A blank "city" might mean "not recorded" (leave it) or "no city" (fill with "Unknown"). Don't blindly replace NULL/blank values โ€” ask what the business wants.
๐Ÿ“‹ Stable content โ€” Reviewed: August 2026

6. Interview Questions (with Model Answers)

The Excel fundamentals and data-cleaning questions interviewers ask freshers. Self-test before revealing.

IQ1. What is the difference between relative, absolute, and mixed cell references?

Model answer: "A relative reference like A1 changes when copied. An absolute reference like $A$1 stays fixed. A mixed reference locks only one part โ€” $A1 locks the column, A$1 locks the row. I use absolute references to lock a constant like a tax rate."

IQ2. What is the order of operations in Excel?

Model answer: "PEMDAS โ€” parentheses, exponents, multiplication/division, addition/subtraction. I use parentheses to make sure the calculation happens in the order I intend."

IQ3. What's the difference between a formula and a function?

Model answer: "A formula is any calculation I write, starting with an equals sign. A function is a built-in, pre-written formula like SUM or AVERAGE. =C3+C4+C5 is a formula; =SUM(C3:C5) is a formula that uses a function."

IQ4. How do you handle missing or duplicate data in Excel?

Model answer: "For duplicates, I use Remove Duplicates, choosing the columns that define a duplicate. For missing data, I first understand why it's missing, then either fill it with a sensible default or leave it โ€” depending on the business context."

IQ5. How do you clean messy text data, like names with extra spaces?

Model answer: "I use TRIM to remove leading, trailing, and extra spaces, and Find & Replace to standardize inconsistent values. For splitting combined values, I use Text to Columns or Flash Fill."

IQ6. How do you split a full name into first and last name?

Model answer: "Two ways. Text to Columns with a space delimiter splits it into columns, or a formula like =LEFT(A1, FIND(" ", A1)-1) extracts the first name. Flash Fill also works if I type one example."

IQ7. How do you find duplicates without deleting them?

Model answer: "I use Conditional Formatting โ†’ Highlight Cell Rules โ†’ Duplicate Values to highlight them visually, so I can review before deleting. Remove Duplicates deletes permanently, so I highlight first when I need to inspect."

IQ8. What is Flash Fill, and when would you use it?

Model answer: "Flash Fill (Ctrl+E) detects a pattern from one typed example and fills the rest. I use it to quickly extract initials, reformat numbers, or split names without writing a formula."

IQ9. What is Data Validation used for?

Model answer: "It restricts what can be entered into a cell โ€” like a drop-down list, or numeric ranges. It prevents dirty data at the point of entry rather than cleaning it later."

Hands-On Project: Clean a Messy Dataset

Imagine you receive a messy "customers" sheet with: duplicate rows, names with extra spaces, a combined "full name" column, and inconsistent city values. Clean it using the tools from this session.

Steps

  1. Remove duplicate rows (using the customer ID as the key).
  2. Split "Full Name" into "First Name" and "Last Name" using Text to Columns.
  3. Use TRIM on the name columns to remove extra spaces.
  4. Use Find & Replace to standardize city values (e.g. "mumbai" โ†’ "Mumbai").
  5. Add a Data Validation drop-down to the "account_type" column (Savings, Current, Salary).
  6. Use Conditional Formatting to highlight any remaining duplicate customer IDs.
View Solution / Walkthrough
  1. Remove Duplicates: select the data โ†’ Data โ†’ Remove Duplicates โ†’ tick only the customer ID column โ†’ OK.
  2. Text to Columns: select the "Full Name" column โ†’ Data โ†’ Text to Columns โ†’ Delimited โ†’ choose Space โ†’ Finish.
  3. TRIM: in a new column, =TRIM(B2) โ†’ copy down โ†’ (optional) paste as values.
  4. Find & Replace: Ctrl+H โ†’ find "mumbai" โ†’ replace "Mumbai" โ†’ Replace All (repeat for each city).
  5. Data Validation: select the account_type column โ†’ Data โ†’ Data Validation โ†’ Allow: List โ†’ Source: Savings,Current,Salary.
  6. Conditional Formatting: select the ID column โ†’ Home โ†’ Conditional Formatting โ†’ Highlight Cell Rules โ†’ Duplicate Values.

A clean, consistent dataset ready for analysis โ€” this exact workflow is what interviewers picture when they ask about "data cleaning."

Key Takeaways

1

Relative references change when copied; absolute ($A$1) never; mixed locks one part.

2

Excel follows PEMDAS โ€” use parentheses to control calculation order.

3

Remove Duplicates deletes; Conditional Formatting highlights for review first.

4

TRIM, Text to Columns, and Flash Fill are the "messy data" toolkit.

5

Data Validation prevents dirty data at the source.

Objective Questions โ€” Test Your Understanding

Q1. Which type of cell reference changes when a formula is copied to another cell?

Q2. How do you make a cell reference absolute (so it never changes)?

Q3. Which feature permanently removes duplicate rows from a dataset?

Q4. Which function removes leading, trailing, and extra internal spaces from text?

Q5. Which feature splits "Aarav Sharma" into two columns using a space?