Excel Formulas for Beginners: SUM, IF & More

Introduction to basic formulas and commonly used functions like SUM, AVERAGE, and IF.

Most beginner Excel tutorials will tell you to memorize a list of formulas. That's exactly the wrong way to start. A colleague of mine spent three hours every Friday copying sales numbers into a summary sheet by hand — not because she lacked intelligence, but because no one had ever shown her that a single formula could do it in thirty seconds. Excel formulas for beginners aren't about memorization. They're about understanding what's actually happening inside the cell.

By the time you finish this article, you'll know how to write your first formula from scratch, summarize data with SUM, AVERAGE, and COUNT, make decisions with IF, look up records with XLOOKUP, and read an error message without panicking. We're building those skills in order — each one sets up the next.

What a Formula Actually Is in Excel (and Why the Formula Bar Is Your Starting Point)

A formula is any instruction you give Excel that starts with an equals sign. Type =5+3 into a cell, press Enter, and Excel shows 8. The formula bar — the long input field that runs across the top of your spreadsheet — displays what's actually inside the cell, even when the cell itself shows only the result.

That distinction matters more than it sounds. The cell shows you the answer. The formula bar shows you the reasoning. Get in the habit of clicking a cell and looking at the formula bar before you assume you understand what it contains.

How Functions Differ — and Why That Matters for Beginners Learning Excel Formulas

A function is a pre-built formula that Excel has already written for you. SUM, AVERAGE, IF — these are functions. You're calling a shortcut that does the math without spelling out every operation. A formula is the full instruction you write; a function is a named tool you can drop inside that instruction.

Most beginner guides treat these words as interchangeable. They're not, and the confusion costs people time later. Once you see the difference, the whole structure of Excel for beginners starts to make sense.


Step 1: Write Your First Excel Formula Using Cell References (Not Typed Numbers)

With that distinction in place, you're ready to write something real. The temptation at this stage is to type values directly into formulas — =5+10, for example. Don't. If the underlying number ever changes, your formula won't update, and you'll be hunting down a mistake that didn't have to exist.

Cell references fix this. Instead of =5+10, write =B2+B3. Now if B2 changes from 5 to 7, the result updates automatically. That's not a minor convenience. That's the whole point of a spreadsheet.

To write your first formula: click an empty cell, type =, click the first cell you want to include, type your operator (+, -, *, /), click the second cell, and press Enter. Excel does the rest.

Relative vs. Absolute Cell References — and When to Lock One with the Dollar Sign

Relative references shift when you copy a formula into another cell. If =B2+B3 sits in C2 and you copy it down to C3, it becomes =B3+B4. Excel assumes you meant "the two cells to my left," not "those two specific cells." Most of the time, that's exactly what you want.

Absolute references don't move. Add a dollar sign before the column letter and row number — =$B$2 — and that reference stays locked wherever you copy the formula. Press F4 while your cursor is inside a reference in the formula bar to toggle through the options. It's faster than typing the dollar signs manually and harder to botch.

On a Mac, use Cmd+T instead of F4 to cycle through reference types in the formula bar.

For a deeper look at how Excel's data entry and formatting habits interact with your formulas, that's worth reading once you've got the basics down.


Step 2: Use SUM, AVERAGE, and COUNT to Summarize Data Instantly

Once you're comfortable referencing cells, these three functions are the natural next move. They handle the tasks that would otherwise mean adding up a column by hand or reaching for a calculator.

SUM: Add Up a Range in One Step

The syntax is straightforward:

=SUM(B2:B10)

That colon means "from B2 through B10." You're telling Excel to add every number in that range — all nine cells — in one instruction. You can also write =SUM(B2,B5,B9) to add only specific non-adjacent cells using commas. The SUM function works identically in Google Sheets, so if your workplace uses both tools, this one travels with you.

AVERAGE and COUNT: Two More Excel Functions That Do the Heavy Lifting

AVERAGE adds all values in a range and divides by the count of cells containing numbers. COUNT tells you how many cells in a range actually contain numbers — not how many cells exist, but how many have numeric values.

=AVERAGE(C2:C15) — gives you the mean of whatever's in that range.
=COUNT(C2:C15) — tells you how many of those cells hold a number.

These three functions cover roughly 60% of what most people need Excel to do on a daily basis. Everything after this builds on top of them.


Step 3: Write an IF Formula to Make Excel Decide for You

SUM and AVERAGE are calculators. IF is something different. This is the function where Excel stops doing arithmetic and starts making judgments. The syntax has three parts:

=IF(logical_test, value_if_true, value_if_false)

A concrete example: say column B holds exam scores for Sarah Chen, Marcus Rivera, and James Okafor. In column C, you want "Pass" or "Fail" based on whether the score hits 50.

=IF(B2>=50, "Pass", "Fail")

Excel evaluates B2. If the number is 50 or above, the cell shows "Pass." If it isn't, it shows "Fail." You've written a rule once and applied it to every row.

Don't wrap a new IF formula in IFERROR before you've confirmed it's working. IFERROR suppresses error messages, which sounds helpful — but if your formula has a genuine logic mistake, you'll never see it. Treat IFERROR as a finishing tool, not a debugging tool.

Also worth knowing: =IF(B2>=50,"Pass","Fail") will return "Fail" for an empty B2 because blank reads as zero. That's not always what you want — good to catch before you hand a sheet to someone else.

Nesting Two Conditions: Combining IF with AVERAGE for a Real Output

Once you're confident your IF works in isolation, you can nest another function inside it:

=IF(AVERAGE(B2:B10)>=50, "Class Passed", "Needs Review")

Excel evaluates the innermost function first — AVERAGE runs, produces a number, then IF uses that number as its logical test. Build and test the inner piece separately before nesting it. Every time that step gets skipped, it causes problems.

For a complete IF formula walkthrough with more complex examples, the Excel errors and troubleshooting guide also covers what happens when nested formulas go sideways.


Step 4: Look Up Data Across Your Spreadsheet Using XLOOKUP (Skip VLOOKUP in Modern Excel)

After IF, the function beginners most often need is a lookup — a way to find a value in one place and pull related information from somewhere else. If you're on Excel 365, use XLOOKUP. VLOOKUP has quirks that trip up even experienced users, and Microsoft built XLOOKUP specifically to replace it.

The syntax:

=XLOOKUP(lookup_value, lookup_array, return_array)

Say you have employee IDs in column A and names in column B. Somewhere else in the sheet, you have an ID and you want the corresponding name:

=XLOOKUP(E2, A2:A20, B2:B20)

Find whatever is in E2, look for it in A2:A20, and when you find it, return the corresponding value from B2:B20. No column index numbers, no range-locking gymnastics — just three clear arguments.

XLOOKUP is available in Excel 365 and Excel 2021 or later. If you're on an older version, check the advanced Excel basics guide for VLOOKUP syntax and its limitations.


Step 5: Read and Fix Common Excel Formula Errors Without Panicking

Every person who says "I'm just not a spreadsheet person" was, at some point, staring at an error they didn't understand with no one to explain it. The errors aren't mysterious. Each one has a specific cause and a specific fix.

What Each Error Token Actually Means — and the Fastest Fix for Each One

#VALUE! means Excel expected a number and got something else — usually text in a cell your formula treats as numeric. Check whether any cell in your range contains a word, a space, or a unit like "15 units" instead of just "15." Clean the data and the error disappears.

#REF! means a cell reference is broken — most often because you deleted a row or column that a formula was pointing to. Click the cell showing #REF!, look at the formula bar, find the #REF! text sitting where a cell address should be, and update the reference to point somewhere valid.

#N/A in a lookup formula means the value you're searching for wasn't found. Before assuming the formula is wrong, check for trailing spaces in your data — they're invisible but they make "Smith" and "Smith " look different to Excel. The sorting and filtering guide covers data-cleaning moves that prevent this. For a full breakdown of every error type, the troubleshooting guide with examples is worth bookmarking.


Common Mistakes When Learning Excel Formulas — and How to Catch Them Early

Forgetting the equals sign is the most common one. No equals sign, no formula — Excel treats the whole thing as plain text. If you type SUM(B2:B10) and nothing happens, that's almost certainly why.

Mixing up absolute and relative references when copying formulas is second. If your totals start producing nonsense after a copy-paste, check whether the cells you meant to lock are actually locked with dollar signs.

Mismatched parentheses break nested formulas every time. Excel color-codes your parentheses as you type — use that. If you're building something with more than one function inside another, count the opening and closing brackets before you press Enter. Build each inner function first, test it alone, then wrap it inside the outer one.

Using VLOOKUP out of habit when XLOOKUP is available is the fourth. If you learned Excel a few years ago, VLOOKUP is probably muscle memory. It works — but it fails silently in ways that XLOOKUP doesn't, and new users have no reason to start with the harder tool.

If you take one thing from this article: every formula error has a specific cause. When something breaks, read the error token, check the formula bar, and work from the inside out. That process solves about 90% of what you'll encounter.

You may want to read this post:

Frequently Asked Questions

What is the difference between a formula and a function in Excel?

A formula is any instruction that starts with an equals sign — it can include numbers, operators, cell references, and functions all at once. A function is a named, pre-built operation like SUM or IF that you call inside a formula. Every function is used inside a formula, but not every formula contains a function.

Should beginners use VLOOKUP or XLOOKUP in modern Excel?

XLOOKUP is the better choice for anyone using Excel 365 or Excel 2021. It has simpler syntax, handles missing values more gracefully, and doesn't require you to count column positions the way VLOOKUP does. There's no practical reason for a beginner starting today to learn VLOOKUP first.

How do I fix a #N/A error in an Excel lookup formula?

#N/A means the value you're searching for wasn't found in the lookup range. The most common cause is invisible trailing spaces — "Smith" and "Smith " look identical to you but are different strings to Excel. Check both the lookup value and the lookup array for inconsistent spacing or formatting, and make sure data types match (text vs. number).

Do Excel formulas work the same way in Google Sheets?

For the core functions covered here — SUM, AVERAGE, COUNT, IF, and XLOOKUP — yes, the syntax is identical. Google Sheets supports the same spreadsheet functions with the same arguments. There are differences in more advanced features, but nothing that affects beginners starting with these building blocks.