Excel Formulas Tutorial With Step-by-Step Examples

Learn Excel formulas through a small worked table: build each formula step by step, fill it down, and check results when they look wrong.

If you searched for an excel formulas tutorial with examples, you probably face one of two problems. Either a formula you wrote returns a number that looks wrong, or you inherited a spreadsheet full of calculations you don't yet understand. Both are easier to fix when you learn formulas through a few worked examples instead of a long list of functions.

This guide uses a small sales table with five rows. You will build each formula step by step, copy it down a column, and check the result against a number you calculated yourself. The table takes a few minutes to recreate, and the same steps apply to any workbook you open.

You will also learn how cell references let one formula work across many rows, and how to read the error codes that appear when something is wrong. The goal is to understand what each formula does, so you can adapt it to your own data.

How do you learn Excel formulas with examples? The short answer

Build a small table you understand, write one formula at a time, and check each result against a value you calculated by hand.

Your situationWhat to doWhy
You are new to spreadsheetsStart with multiplication and SUM on a five-row tableSimple results are easy to verify without the computer
You need the same calculation on many rowsWrite the formula once, then fill it downRelative cell references update automatically for each row
A formula returns an errorRead the error code, then check the cells it refers toEach error code points to a specific type of problem
A result must depend on a conditionUse IF with one clear yes-or-no testOne formula handles every row the same way
Your data is in a PDF tableExport it to Excel format, then build formulasFormulas need cells, and PDFs store text and lines, not calculations

Before you start

  • Work on a copy. Testing formulas on a copy means a wrong formula cannot overwrite the original numbers you need to keep.
  • Put headers in row 1. Labels such as Item, Units and Unit price make each column easy to read, and they keep your formulas readable later.
  • Confirm your numbers are numbers. A value stored as text will be ignored by SUM and AVERAGE. Numbers usually align to the right of a cell, while text aligns to the left.
  • Check whether your PDF has real text. Select one line of text in the PDF. If the selection highlights the words, the file is digital. If nothing highlights, the file is scanned and needs OCR before you can copy its values. OmniDoc's desktop client can OCR scanned PDFs, and its PDF editor can export a document to Excel format.

Building your first Excel formulas, step by step

Use this sample table. Type it into rows 1 to 6, starting in cell A1.

ItemUnitsUnit price
Notebook43.50
Pen120.80
Stapler19.00
Folder61.25
Tape32.40
  1. Type the sample table. Enter the headers in row 1 and the five items in rows 2 to 6. Keep one value in each cell so every formula has a clear target.
  2. Write a line-total formula. Click cell D2, type =B2*C2, and press Enter. The equals sign tells the program a formula follows. The notebook line total is 14.00, which is 4 units times 3.50.
  3. Fill the formula down. Copy D2 and paste it into D3 through D6, or drag the small square at the corner of D2 down to D6. Each row now uses its own units and price, because the references shift from B2 and C2 to B3 and C3, and so on.
  4. Add a total with SUM. In D7, type =SUM(D2:D6). The range D2:D6 tells the formula which cells to add. The total is 47.30.
  5. Find the average unit price. In C8, type =AVERAGE(C2:C6). This averages the five unit prices and returns 3.39. Averages describe a typical price, not the total spend, so keep the two results separate in your head.
  6. Flag high-value lines with IF. In E2, type =IF(D2>8,"Over 8","8 or less") and fill it down to E6. The formula checks the line total in column D. Notebook and pen both show "Over 8" in your results, while folder and tape show "8 or less." Stapler is exactly 9.00 and also returns "Over 8," which is the expected outcome for a value above 8.

Keep the quotation marks in the IF formula, since they mark the text that appears in the result.

Check the result

After you build formulas, check each result before you rely on it. The table below covers the checks that catch most beginner mistakes.

CheckHow to see itIf it's wrong
The total matches your own mathAdd the line totals with a calculatorLook for a range that skips a row, such as D2:D5
The formula points at the right cellsClick the result cell and read the highlighted referencesCorrect the reference, or use $C$2 to lock a value that must stay fixed
The numbers are real numbersCheck alignment; text usually sits on the leftConvert the values to numbers, then recalculate
The error code makes senseRead the code: #DIV/0! means division by zero, #VALUE! means a wrong data type, #REF! means a deleted reference, #NAME? means a misspelled functionFix the cause in the source cell, not the result cell
Filled formulas are consistentClick three or four filled cells and compare themRetype the formula in the first correct cell and fill it down again

If you use machine translation or OCR on a document that contains formulas or labels, check the translated text against the original before you share the file.

❓ FAQ

1. Do I need to memorize every Excel function?

No. Learn the handful you use often, such as SUM, AVERAGE and IF, and look up others when a task calls for them. Understanding how a function reads its range and arguments matters more than remembering its name.

2. Why does my cell show the formula text instead of a result?

The cell is usually formatted as text, or the formula was typed after a leading apostrophe. Change the cell format to a number or general format, then retype the formula so the program evaluates it.

3. What is the difference between a formula and a function?

A formula is any expression that starts with an equals sign, such as =B2*C2. A function is a built-in calculation with a name, such as SUM or AVERAGE, that you can place inside a formula.

4. Can I translate an Excel file that contains formulas?

Yes. You can upload an .xlsx file on omnidoc.top and choose bilingual or translation-only output. Translation keeps layout, tables and formulas, but review the translated labels and any text that feeds a calculation before you rely on them.

📝 Summary

Learning excel formulas tutorial with examples works well when you build a small table, write one formula at a time, and check each result by hand. Fill formulas down with cell references, read error codes as clues, and export PDF tables to Excel format before you start.

Open OmniDoc to work on your spreadsheets

Updated 2026-11-04