Beginner / Lesson 04

Write your first formulas

Turn a list of values into calculations that update when your data changes.

~18 minutes4 exercisesExcel desktop & web fundamentals

By the end, you’ll be able to:

  • Write formulas beginning with an equals sign
  • Use +, −, * and / with cell references
  • Control calculation order with parentheses

Start with an equals sign

A formula tells Excel how to calculate a result. Begin with =, enter the calculation, then press Enter. For example, =8*4 returns 32. The cell displays the result while the formula bar shows the formula.

You can calculate using values in other cells. With 8 units in B2 and a price of 4 in C2, enter =B2*C2 in D2. This returns 32. If B2 changes to 10, the formula recalculates to 40 when calculation is automatic, Excel’s normal default.

Example worksheet with column letters and row numbers
ABC
1ItemUnitsPrice
2Notebook84
3Pen122
4Folder53

The four everyday operators

OperationSymbolExampleResult
Add+=8+412
Subtract-=8-44
Multiply*=8*432
Divide/=8/42

Use an asterisk for multiplication, rather than the letter x. Dividing by a zero or empty divisor produces #DIV/0! in Excel. Check that your denominator contains a meaningful, nonzero value.

Use parentheses to make the calculation clear

Multiplication and division happen before addition and subtraction. So =2+3*4 returns 14, because 3 × 4 is calculated first. In =(2+3)*4, the parentheses make Excel add first, returning 20.

Consider a shop with revenue of 100 and cost of 60. Profit margin is profit divided by revenue: =(100-60)/100, which returns 0.4, or 40%. Without the parentheses, =100-60/100 returns 99.4. The formula can be valid yet answer the wrong question.

Worked example: calculate a line total

  1. Put Units in B1 and Price in C1.
  2. Enter 8 in B2 and 4 in C2.
  3. Select D2 and type =B2*C2.
  4. Press Enter. The result is 32.
  5. Change B2 to 10. With automatic calculation enabled, D2 updates to 40.
Why use references?

=8*4 stores the inputs inside the formula. =B2*C2 uses the data in your worksheet, making the calculation reusable.

Do not enter a formula into one of its own input cells. A formula in B2 that refers to B2 creates a circular reference. In the exercises, enter your answer for the named output cell using the separate formula field.

Now make it yours

Give it a try.

Work through each exercise, check your answer and use a hint whenever you need one. Formula tasks check changed inputs, including boundary cases.

0 of 4 exercises complete

Exercise 01 / Formula practice

Calculate a line total

Write a formula for D2 that multiplies Units in B2 by Price in C2. Use cell references.

Example worksheet with column letters and row numbers
ABC
1ItemUnitsPrice
2Notebook84
3Pen122
4Folder53
Exercise 02 / Formula practice

Calculate profit margin

Revenue is in B2 and cost is in C2. Write a formula for D2 that returns (revenue − cost) ÷ revenue. Enter a decimal result, not a value multiplied by 100.

Example worksheet with column letters and row numbers
ABC
1PeriodRevenueCost
2January10060
Exercise 03 / Knowledge check

Check the order

What does =2+3*4 return?

Choose one answer
Exercise 04 / Formula practice

Find the cost per unit

B2 contains total cost and C2 contains units. Write a formula for D2 that calculates cost per unit.

Example worksheet with column letters and row numbers
ABC
1OrderTotal costUnits
2A101728

The bounded practice checker accepts equivalent supported formulas, lowercase function names and text labels, extra spaces, and comma or semicolon separators. Array tasks check the complete result shape and values. It is a teaching tool, not a complete Excel engine. See supported behavior.

Take this with you

Start with =, refer to cells and use parentheses to express the calculation you intend.

Practice in Excel

Download the course workbook, follow the tasks, save your completed .xlsx and check its supported formula tasks here. Native Excel features use a separate review checklist.

Download practice workbook Check my workbook ↗
Technical references and lesson review

Original lesson content. Technical behavior checked against Microsoft documentation. Reviewed 2026-10-16.

Find your next skill