Lesson 1 of 8 · see all lessons
Formulas from zero
Answer questions with conditions and lookups
Organize and summarize the month
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.
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.
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.
Date Day Item Category Qty Price Staff2026-03-02 Mon Latte Coffee 8 3.50 Ana2026-03-02 Mon Croissant Food 5 2.75 Ana2026-03-03 Tue Espresso Coffee 6 2.50 Ben2026-03-04 Wed Sandwich Food 3 6.50 Chloe2026-03-05 Thu Cappuccino Coffee 7 3.25 Ben2026-03-06 Fri Green Tea Tea 4 2.00 Chloe2026-03-07 Sat Latte Coffee 12 3.50 Ana2026-03-07 Sat Muffin Food 6 3.00 Ben2026-03-08 Sun Cappuccino Coffee 9 3.25 Chloe2026-03-09 Mon Chai Tea 3 3.00 Ana2026-03-10 Tue Sandwich Food 4 6.50 Ben2026-03-11 Wed Latte Coffee 6 3.50 Chloe2026-03-12 Thu Espresso Coffee 5 2.50 Ana2026-03-13 Fri Croissant Food 7 2.75 Ben2026-03-14 Sat Sandwich Food 6 6.50 Chloe2026-03-14 Sat Latte Coffee 10 3.50 Ben2026-03-15 Sun Chai Tea 5 3.00 Ana2026-03-16 Mon Muffin Food 4 3.00 Chloe2026-03-17 Tue Cappuccino Coffee 6 3.25 Ana2026-03-18 Wed Green Tea Tea 2 2.00 Ben2026-03-19 Thu Latte Coffee 7 3.50 Chloe2026-03-20 Fri Sandwich Food 5 6.50 Ana2026-03-21 Sat Espresso Coffee 8 2.50 Chloe2026-03-22 Sun Croissant Food 9 2.75 Ben2026-03-23 Mon Latte Coffee 5 3.50 Ben2026-03-24 Tue Chai Tea 4 3.00 Chloe2026-03-26 Thu Muffin Food 3 3.00 Ana2026-03-27 Fri Cappuccino Coffee 5 3.25 Ben2026-03-28 Sat Sandwich Food 7 6.50 Ana2026-03-29 Sun Latte Coffee 11 3.50 Chloe
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.
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.
=E2*F2
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.
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)
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.
- Select the range E2:E31
- Type a closing bracket
- Press Enter
- Type an equals sign (=)
- Type SUM and an opening bracket
- Select an empty cell
E2 holds the text 8 cups. What does =AVERAGE(E2:E31) do with that cell?
Pick one answer.
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.
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 16Worth keeping
- A cell is a column letter plus a row number; a range is first cell:last cell.
- Every formula starts with =, and the formula bar shows what a cell really holds.
- SUM, AVERAGE, MAX, MIN and COUNT turn a whole column into one answer: 182, 6.07, 12, 2, 30.
- 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.