Lesson 1
Excel Lookup Functions and IF
Excel lookup functions retrieve values from tables based on a key. The main ones are VLOOKUP, HLOOKUP, INDEX/MATCH and XLOOKUP. The IF function returns different results depending on whether a logical test is true or false, and it is often combined with lookups for business analysis.
IF Function
- Syntax: =IF(logical_test, value_if_true, value_if_false).
- Example: =IF(B2>=50000,"Target Met","Below").
- Nested IF handles multiple conditions: =IF(A2>90,"A",IF(A2>75,"B","C")).
- Combine conditions with AND or OR: =IF(AND(A2>0,B2>0),"OK","Check").
- IFS and IFERROR are related: =IFERROR(formula,"Not found").
VLOOKUP and HLOOKUP
- Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]).
- Use FALSE (0) for an exact match and TRUE for an approximate match. An approximate match needs the first column sorted ascending.
- VLOOKUP searches only the leftmost column and returns values to the right of it.
- HLOOKUP works the same way across rows, using row_index_num.
- Lock table references with $ (e.g. $A$2:$D$100) before copying formulas.
- The #N/A error means no match was found.
INDEX/MATCH and XLOOKUP
- =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)) can look left and is not broken by inserted columns.
- MATCH returns the position of a value; a match_type of 0 means exact.
- XLOOKUP syntax: =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found]). It does an exact match by default, works in any direction, and is available in Excel 365/2021.
Key terms
- IF
- Returns one of two values depending on whether a condition is true or false.
- VLOOKUP
- Vertical lookup that finds a value in the first column and returns a value from a specified column.
- INDEX/MATCH
- Flexible lookup combination that can return values from any column.
- XLOOKUP
- Modern lookup function with exact match as the default and a built-in not-found argument.
- Absolute reference
- A cell reference fixed with $ so it does not change when the formula is copied.
Lesson 2
Pivot Tables in Excel
Pivot tables summarise large datasets quickly by grouping, aggregating and cross-tabulating fields without writing formulas. They let analysts rearrange (pivot) the view of data to answer business questions such as sales by region and product.
Preparing data
- Use a tabular range: one header row, one record per row, no blank rows or columns.
- Convert the range to an Excel Table (Ctrl+T) so new rows are included when refreshing.
- Keep each column a single data type (e.g. dates, numbers, text).
Building a pivot table
- Insert > PivotTable, choose the source range and the location (new or existing sheet).
- Drag fields into four areas: Rows, Columns, Values, Filters.
- Values default to Sum for numbers and Count for text; change this via Value Field Settings (Average, Max, Min, Count, etc.).
- Show Values As offers % of Grand Total, % of Row/Column, running totals and differences.
Refining the analysis
- Group dates into months, quarters or years; group numbers into ranges.
- Use Slicers and Timelines for visual, interactive filtering.
- Sort and filter row labels, e.g. Top 10 products by revenue.
- Calculated Fields create new measures from existing fields (e.g. Profit = Revenue - Cost).
- Refresh (Data > Refresh All) after the source data changes; pivot tables do not update automatically.
- PivotCharts visualise the pivot table and stay linked to it.
Key terms
- Pivot table
- An interactive summary table that aggregates and groups source data by chosen fields.
- Rows/Columns area
- Fields placed here become the category labels along the side or top of the table.
- Values area
- Fields placed here are aggregated (Sum, Count, Average, etc.).
- Filters area
- Fields placed here filter the entire pivot table.
- Slicer
- A clickable button panel for filtering a pivot table visually.
- Calculated field
- A user-defined formula field built from other pivot fields.
- Refresh
- Command that updates a pivot table with changes in its source data.
Lesson 3
NPV, IRR and PMT in Excel
NPV, IRR and PMT are core Excel financial functions for evaluating investments and loans. NPV discounts future cash flows to today, IRR finds the discount rate that makes NPV zero, and PMT calculates the constant periodic payment on a loan or annuity.
NPV
- Syntax: =NPV(rate, value1, [value2], ...).
- Excel's NPV assumes the first value occurs at the end of period 1, so it discounts every value.
- Add the time-0 investment separately: =NPV(rate, CF1:CFn) + CF0, where CF0 is negative.
- Decision rule: NPV > 0 means accept (the project creates value at that required return).
- Formula: NPV = sum of CFt/(1+r)^t + CF0.
- XNPV handles cash flows on irregular dates.
IRR
- Syntax: =IRR(values, [guess]), where values include the time-0 cash flow.
- IRR is the rate at which NPV = 0.
- The cash flows must contain at least one negative and one positive value.
- Decision rule: accept if IRR > the required rate (hurdle rate / cost of capital).
- Unconventional cash flows (several sign changes) can give multiple IRRs; then rely on NPV.
- XIRR handles irregular dates; MIRR uses explicit finance and reinvestment rates.
PMT
- Syntax: =PMT(rate, nper, pv, [fv], [type]).
- Match the rate to the period: monthly payments use annual rate/12 and nper = years*12.
- The result is negative when pv is positive (cash outflow sign convention); use -PMT or a negative pv to display a positive value.
- type 0 = end of period (default); type 1 = beginning of period.
- Related functions: IPMT (interest part), PPMT (principal part), RATE, NPER, PV, FV.
Key terms
- NPV
- Present value of future cash flows minus the initial investment, at a given discount rate.
- IRR
- Discount rate that makes a project's NPV equal to zero.
- PMT
- Excel function returning the constant periodic payment for a loan or annuity.
- Discount rate
- Required rate of return used to convert future cash to present value.
- Hurdle rate
- Minimum acceptable return that IRR is compared with.
- Sign convention
- Excel treats cash outflows as negative and inflows as positive.
Lesson 4
Goal Seek, Scenario Manager and Solver
Excel's what-if analysis tools answer different questions: Goal Seek finds the single input value needed to reach a target output, Scenario Manager stores and compares sets of input values, and Solver optimises an objective by changing several variables under constraints.
Goal Seek
- Data > What-If Analysis > Goal Seek.
- Set cell: the formula cell (output); To value: the target; By changing cell: one input cell (a constant, not a formula).
- Works backwards, e.g. finding the sales volume for break-even (profit = 0) or the price needed for a target margin.
- Limited to one changing cell and one target; no constraints.
Scenario Manager
- Data > What-If Analysis > Scenario Manager.
- Define named scenarios (e.g. Best, Base, Worst), each storing values for up to 32 changing cells.
- Show switches the model to a scenario; Summary creates a report comparing result cells across scenarios.
- Useful for presenting alternative business assumptions side by side.
Solver
- An add-in: enable via File > Options > Add-ins > Excel Add-ins > Solver; then Data > Solver.
- Set Objective: cell to Max, Min or reach a Value Of.
- By Changing Variable Cells: one or more decision variables.
- Subject to the Constraints: e.g. <=, >=, =, int (integer), bin (binary).
- Solving methods: Simplex LP for linear models, GRG Nonlinear for smooth nonlinear models, Evolutionary for non-smooth problems.
- Typical uses: product mix, budget allocation, scheduling, minimising cost.
Key terms
- Goal Seek
- Finds the one input value that makes a formula reach a target value.
- Scenario Manager
- Saves, switches between and summarises named sets of input values.
- Solver
- Optimisation add-in that maximises/minimises an objective by changing several variables subject to constraints.
- Objective cell
- The formula cell Solver optimises.
- Decision variables
- Input cells Solver is allowed to change.
- Constraint
- A limit the solution must satisfy, e.g. capacity <= 500.
Lesson 5
Building an Excel Dashboard
An Excel dashboard is a single-screen visual summary of key business metrics built from structured data, PivotTables, charts and interactive controls. A good dashboard separates raw data, calculations and presentation, and lets users filter views with slicers and timelines.
Planning a Dashboard
- Start with the audience and the questions the dashboard must answer.
- Choose a few key performance indicators (KPIs), e.g. revenue, margin, units sold.
- Sketch the layout first: KPIs at top, trends and breakdowns below.
Preparing Data
- Store raw data in an Excel Table (Ctrl+T) so ranges expand automatically.
- Keep separate sheets: Data, Calculations/Pivots, Dashboard.
- Clean data: consistent headers, no blank rows, correct data types.
Building Blocks
- PivotTables summarise data by category, region or period.
- PivotCharts and standard charts visualise trends (line), comparisons (column/bar) and composition (use pie sparingly).
- KPI cards use formulas such as SUMIFS, AVERAGEIFS, or GETPIVOTDATA linked to cells.
- Conditional formatting and sparklines highlight performance at a glance.
Interactivity and Design
- Slicers filter PivotTables visually; connect one slicer to several pivots via Report Connections.
- Timelines filter by date periods.
- Refresh pivots (Data > Refresh All) when data changes.
- Keep design clean: consistent colours, minimal gridlines, clear titles.
Key terms
- Dashboard
- A one-page visual display of key metrics for quick decision-making.
- KPI
- Key performance indicator; a measurable value showing progress toward a goal.
- PivotTable
- Tool that summarises large datasets by grouping and aggregating fields.
- Slicer
- A clickable button filter for PivotTables and Tables.
- Timeline
- A slicer-like control for filtering by date ranges.
- Excel Table
- A structured range that auto-expands and supports structured references.
