0% complete

Basic Excel for Data Analytics · Lesson 2 of 3

Excel Formulas, Cell References, and Core Functions

Write formulas that calculate correctly when copied and use common functions for everyday analysis.

Lesson

1. Introduction

A formula turns cells into a repeatable calculation. Learning how references move when a formula is copied is essential: otherwise a workbook may look correct in the first row and silently calculate the wrong range below it.

2. Understand the concept

A relative reference such as B2 changes when copied. An absolute reference such as $B$2 stays fixed; mixed references lock only a row or column. Functions such as SUM, AVERAGE, COUNTIF, IF, and SUMIFS express common calculations without manually editing each record.

3. Syntax and interpretation

=B2*$F$1\n=IF(C2=\"Paid\",D2,0)\n=SUMIFS(Orders[Amount],Orders[Region],H2)

The first formula can be filled down while the tax-rate cell stays fixed. The structured SUMIFS formula adds amounts for rows meeting a region criterion.

4. Apply it to an analysis

Write formulas that calculate correctly when copied and use common functions for everyday analysis. Start with a small, known example and state what each row or value represents. After the transformation, check row counts, types, keys, and units against the original data. If an assumption fails, stop and investigate instead of presenting the output as a valid result.

5. Common mistakes

  • Forgetting dollar signs on a fixed assumptions cell before filling a formula.
  • Using a broad range that accidentally includes a subtotal or blank header.

6. Practice task

Quantity is in D2, unit price in E2, and tax rate in cell B1. Write a formula for tax-inclusive line total that can be filled down.

7. One possible solution

=D2*E2*(1+$B$1). The row references move; the tax-rate cell remains fixed.

8. Summary and next step

Write formulas that calculate correctly when copied and use common functions for everyday analysis. Use the next lesson in this module to extend the idea with another technique and a more realistic analysis case.

Visual guide

Working through Excel Formulas, Cell References, and Core Functions

  1. Step 01 Define

    State the question, data grain, and expected output.

  2. Step 02 Apply

    Use the method and check its assumptions on a small example.

  3. Step 03 Verify

    Reconcile the result and communicate limitations.

Code examples

Calculate line revenue
TEXT
=B2*C2
Expected output
If B2 is quantity 3 and C2 is unit price 12, the result is 36.
Count matching records
TEXT
=COUNTIF(Orders[Status],\"Complete\")
Expected output
Counts rows whose Status is Complete.

Key points

  • Write formulas that calculate correctly when copied and use common functions for everyday analysis.
  • Check the result against the stated data definition and a representative example.
  • Record assumptions and report data-quality limitations rather than hiding them.

Check your understanding

Practice

Which approach best applies the ideas in Excel Formulas, Cell References, and Core Functions?

Your learning progress

Finish this lesson