Excel Business Analysis · Chapter 2 of 10

Formulas and Functions

Use core Excel formulas correctly, with relative and absolute references, logic, and error handling.

Why this chapter matters

Reliable formulas are the base layer for every metric, forecast, and management decision built in Excel.

What you will learn

  • Choose relative, absolute, and mixed references for copy-safe formulas.
  • Use SUMIFS, COUNTIFS, IF, and nested logic for business rules.
  • Wrap formulas with clear error handling using IFERROR or equivalent checks.

Understand the core ideas

Formula reliability comes from reference control and consistent logic patterns. Relative references move when copied, absolute references stay fixed, and mixed references lock either a row or a column. Analysts often break reports by dragging formulas without deciding which parts should move. Use absolute references for constants like tax rates and exchange rates, and relative references for row level inputs. For criteria based aggregation, SUMIFS and COUNTIFS are usually clearer than long nested IF statements. Put each criterion column in a table and keep criteria cells in a visible assumptions area. Avoid whole-column references in heavy workbooks when performance matters, especially with many tabs, because recalculation can become slow. Prefer explicit table columns so your model is both faster and easier to inspect.

Error handling should communicate meaning, not hide defects. IFERROR is useful, but wrapping every formula can mask data quality issues. A better pattern is to use IF checks for expected edge cases and reserve IFERROR for true exceptions. For margin percent, divide by revenue only when revenue is not zero, and return a blank or zero according to your reporting policy. Keep logic simple and consistent across similar metrics, then copy downward in tables so each row follows the same rule. In Microsoft 365 and Excel 2021+, functions like LET can make long formulas readable by naming intermediate calculations. If your team includes older versions, keep a compatibility path using standard IF and SUMIFS formulas and document which tab depends on newer functions.

Key terms

Absolute reference
A fixed cell reference like $B$1 that does not move when copied to other cells.
Mixed reference
A partly fixed reference like $B2 or B$2 that locks one axis and allows the other to move.
SUMIFS
A function that sums values meeting one or more conditions across aligned ranges.
IFERROR
A function that returns an alternate value when a formula produces an error such as #DIV/0!.

Margin Analysis by Region

You have a sales table with columns Region, Units, UnitPrice, and UnitCost. Leadership wants revenue, cost, and margin percent by region.

  1. In tbl_sales, add Revenue with =[@Units]*[@UnitPrice] and Cost with =[@Units]*[@UnitCost].
  2. Add MarginPct with =IF([@Revenue]=0,0,([@Revenue]-[@Cost])/[@Revenue]) so zero-revenue rows do not throw errors.
  3. Build a summary table with regions in column A, then calculate total revenue using =SUMIFS(tbl_sales[Revenue],tbl_sales[Region],$A2) and total cost with the same pattern.
  4. Calculate summary margin percent as =IF(B2=0,0,(B2-C2)/B2), format as percentage, and copy down.
Result: Each region total is calculated with copy-safe formulas, zero-revenue edge cases are handled explicitly, and the summary stays correct when new rows are appended to tbl_sales.

A common misconception

Claim: Using IFERROR everywhere is always best practice.

Correction: Blanket IFERROR can hide real model problems. Use targeted checks for expected conditions and investigate unexpected errors instead of silently suppressing them.

Lessons in this chapter

  1. Reference behaviorControl what moves and what stays fixed when filling formulas.
  2. Conditional aggregationCalculate totals and counts by one or more criteria.
  3. Decision formulasModel policy logic with IF, AND, OR, and simple nesting. Read the full guide →
  4. Error-safe calculationsHandle missing values and divide-by-zero cases clearly.

Study task

Build a margin analysis table that calculates revenue, cost, and margin percent by region with error-safe formulas.

Chapter checkpoint

When copying a tax-rate formula across columns, when do you use an absolute reference?

Use an absolute reference when the tax-rate cell must stay fixed, such as $B$1, while other references can move.

Learn this with an AI teacher that starts from what you already know.

Tell LearnLive your goal and starting point, and it adapts the explanations, examples, and practice as you go.

Teach me this