Lesson 1 of 8 · see all lessons
  1. Formulas from zero

    1. 1. Excel basics: cells, ranges and your first SUM formula
    2. 2. Relative vs absolute references in Excel ($A$1)
    3. 3. How to use the IF function in Excel (and nested IF)
  2. Answer questions with conditions and lookups

    1. 4. SUMIFS and COUNTIFS in Excel: add and count with conditions
    2. 5. How to use XLOOKUP in Excel (and VLOOKUP when you have to)
  3. Organize and summarize the month

    1. 6. How to sort, filter and make a table in Excel
    2. 7. How to make a pivot table in Excel
    3. 8. Excel practice: build a monthly sales report

10 min

Excel basics: cells, ranges and your first SUM formula

Learn how Excel cells and ranges work, then write your first formulas, SUM, AVERAGE and MAX, on a real café sales sheet you can copy in.

By the end of this lesson you can

  • Name any cell or range by its address, like E2 or E2:E31
  • Write a formula that starts with = and multiplies two cells
  • Use SUM, AVERAGE, MAX, MIN and COUNT on a column
  • Spot why a formula shows #VALUE! while SUM keeps working

Welcome. This course runs on one small sheet: a café's sales for March 2026. Every lesson is a question the café's manager asks, and you answer it with a formula.

Each task works the same way. You guess the answer, type the formula, check it against the expected result, then change one thing and guess again.

You can use Excel or Google Sheets. The formulas in this course work in both unless a lesson says otherwise. XLOOKUP, in lesson 5, needs Excel 2021 or later, Microsoft 365, Excel for the web, or Google Sheets.

Microsoft and Excel are trademarks of the Microsoft group of companies. This course is independent and isn't affiliated with or endorsed by Microsoft.

[6]

Take a guess

Cell H2 shows the number 28. What is inside that cell?

No pressure. Guess now, and the lesson will show you if you were right.

[2]

Get the café's sheet

The sheet has 30 sales rows. Each row is one order line: on one date, one staff member sold some number of one item.

Open a blank workbook. Copy the block below, click cell A1, and paste. The tabs between values split them into columns. Row 1 holds the headers. Rows 2 to 31 hold the data, in columns A to G.

text
Date Day Item Category Qty Price Staff
2026-03-02 Mon Latte Coffee 8 3.50 Ana
2026-03-02 Mon Croissant Food 5 2.75 Ana
2026-03-03 Tue Espresso Coffee 6 2.50 Ben
2026-03-04 Wed Sandwich Food 3 6.50 Chloe
2026-03-05 Thu Cappuccino Coffee 7 3.25 Ben
2026-03-06 Fri Green Tea Tea 4 2.00 Chloe
2026-03-07 Sat Latte Coffee 12 3.50 Ana
2026-03-07 Sat Muffin Food 6 3.00 Ben
2026-03-08 Sun Cappuccino Coffee 9 3.25 Chloe
2026-03-09 Mon Chai Tea 3 3.00 Ana
2026-03-10 Tue Sandwich Food 4 6.50 Ben
2026-03-11 Wed Latte Coffee 6 3.50 Chloe
2026-03-12 Thu Espresso Coffee 5 2.50 Ana
2026-03-13 Fri Croissant Food 7 2.75 Ben
2026-03-14 Sat Sandwich Food 6 6.50 Chloe
2026-03-14 Sat Latte Coffee 10 3.50 Ben
2026-03-15 Sun Chai Tea 5 3.00 Ana
2026-03-16 Mon Muffin Food 4 3.00 Chloe
2026-03-17 Tue Cappuccino Coffee 6 3.25 Ana
2026-03-18 Wed Green Tea Tea 2 2.00 Ben
2026-03-19 Thu Latte Coffee 7 3.50 Chloe
2026-03-20 Fri Sandwich Food 5 6.50 Ana
2026-03-21 Sat Espresso Coffee 8 2.50 Chloe
2026-03-22 Sun Croissant Food 9 2.75 Ben
2026-03-23 Mon Latte Coffee 5 3.50 Ben
2026-03-24 Tue Chai Tea 4 3.00 Chloe
2026-03-26 Thu Muffin Food 3 3.00 Ana
2026-03-27 Fri Cappuccino Coffee 5 3.25 Ben
2026-03-28 Sat Sandwich Food 7 6.50 Ana
2026-03-29 Sun Latte Coffee 11 3.50 Chloe
Paste into A1. Check: A1 says Date, G1 says Staff, and A31 shows 29 March 2026 (Excel may show it in your computer's date style, such as 3/29/2026). Leave columns H to O empty for now; later lessons fill them.

Cells, columns, rows and ranges

A cell is one box in the grid. Its address is its column letter plus its row number. C4 is column C, row 4. In the café sheet, C4 holds Espresso.

A range is a block of cells, written as the first cell, a colon, then the last cell. E2:E31 is every quantity, from row 2 down to row 31. That's 30 cells.

A formula is a calculation in a cell. It always starts with an equals sign (=). A function is a named calculation, like SUM, that takes inputs in brackets.

[2]

Reading =SUM(E2:E31)= (this is a formula)SUM (the function)(E2:E31) the range182 (the result)First cell, colon, last cell:30 quantitiesWhat the cell shows after youpress Enter

How many cells are in the range A1:G31, the whole café sheet with headers?

Pick one answer.

Your first formulas

The manager's first question: how much was the first order line worth? Row 2 sold 8 lattes at 3.50 each.

Click an empty cell far to the right, such as P1, and type the formula below. Press Enter.

[2]

excel
=E2*F2
Expected result: 28. The * sign means multiply. Delete this cell when you're done; lesson 2 builds a proper Total column.

Next question: how many items did the café sell in March? Adding 30 cells one by one is slow and easy to get wrong. The SUM function adds a whole range.

Use column P for labels and column Q for answers. This is your report panel, and it grows through the course. Type the label in P1 and the formula in Q1. Shortcut: in Excel for Windows, Alt+= inserts a SUM for you.

[3][4]

excel
P1: Items sold Q1: =SUM(E2:E31)
P2: Average qty Q2: =AVERAGE(E2:E31)
P3: Biggest line Q3: =MAX(E2:E31)
P4: Smallest line Q4: =MIN(E2:E31)
P5: Order lines Q5: =COUNT(E2:E31)
Expected: Q1 182, Q2 about 6.07 (6.0666… before formatting), Q3 12, Q4 2, Q5 30.

[1][4]

Predict, then reveal

Change one thing. Type 18 into E2 instead of 8. Before you look: what do Q1 (SUM) and Q3 (MAX) show now?

Put in order

Put the steps for typing a SUM formula in order.

Drag, or focus an item and press Space, move with the arrow keys, then Space to drop.

  1. Select the range E2:E31
  2. Type a closing bracket
  3. Press Enter
  4. Type an equals sign (=)
  5. Type SUM and an opening bracket
  6. Select an empty cell

[2]

[4][5]

E2 holds the text 8 cups. What does =AVERAGE(E2:E31) do with that cell?

Pick one answer.

[1]

Match

Match each function to what it gives back for E2:E31.

Pick an item on the left, then its match on the right.

Your sheet is full of results and you want to see every formula at once. Which Excel shortcut switches between values and formulas?

Pick one answer.

[3]

In Google Sheets: paste works the same way, and SUM, AVERAGE, MAX, MIN and COUNT behave the same. The Alt+= shortcut is an Excel shortcut, so in Sheets just type the formula.

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 16

Worth keeping

  1. A cell is a column letter plus a row number; a range is first cell:last cell.
  2. Every formula starts with =, and the formula bar shows what a cell really holds.
  3. SUM, AVERAGE, MAX, MIN and COUNT turn a whole column into one answer: 182, 6.07, 12, 2, 30.
  4. Text in a number column breaks arithmetic with #VALUE! and quietly shrinks SUM.

The manager now wants money, not cups: a Total for every row, 30 formulas in all. Typing each one by hand is slow, so you'll type one and copy it. Copying works perfectly until the formula points at one fixed cell. Then 29 rows break at once, and the fix is a single dollar sign.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (6)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [1]Microsoft Support: AVERAGE function
  2. [2]Microsoft Support: Overview of formulas in Excel
  3. [3]Microsoft Support: Keyboard shortcuts in Excel
  4. [4]Microsoft Support: SUM function
  5. [5]Microsoft Support: How to correct a #VALUE! error
  6. [6]Microsoft Support: XLOOKUP function