To add a function in Excel, click the cell where you want the result, type an equals sign (=), start typing the function name (for example SUM), and pick it from the drop-down list that appears. Then type your arguments inside parentheses, separate each one with a comma, close the bracket and press Enter. That is the whole mechanic: every step below is just a variation on that pattern, plus a few dialogs and shortcuts that make it faster and less error-prone.
Excel's interface labels can differ slightly by version, platform (Windows, Mac, web) and region, so if a button name below does not match exactly, look for the nearest equivalent in the same ribbon tab or menu.
What You'll Need
- A copy of Excel — desktop (Microsoft 365, Excel 2021 or 2019), Excel for Mac, or Excel for the web. The steps are written for desktop and web; Mac menus sit in the same ribbon tabs but a few keyboard shortcuts differ, noted below.
- A workbook with some data in it, or just an empty sheet if you only want to practise.
- Knowledge of what you want calculated — the function is only as good as the cells you point it at.
Step-by-Step
- Select the destination cell. Click the cell that should display the answer. This is where the formula lives; the result appears here, not in the cells being read.
- Type an equals sign. Press
=. Excel switches into formula-entry mode and the Name Box on the left of the formula bar shows the cell reference. If you type text without the equals sign, Excel treats it as plain text and nothing calculates. - Start typing the function name. As you type letters, Excel shows a list of matching functions with a one-line description of each. Use the arrow keys to highlight the one you want and press Tab to accept it. Excel inserts the name and an opening parenthesis automatically.
- Read the argument prompt. The moment the parenthesis opens, Excel displays a tooltip listing the arguments in bold for the one you are currently filling in. This is the best built-in documentation — it tells you whether an argument is required or optional.
- Enter the arguments. Click a cell or drag across a range to insert a reference, type values directly, or type a range like
B2:B50. Separate multiple arguments with commas (semicolons in some European regional settings — Excel usually inserts the correct one for you). - Close the parenthesis and press Enter. Excel validates the syntax as you go. If everything is balanced, the result appears and the formula stays visible in the formula bar whenever the cell is selected.
- Use the Insert Function dialog if you do not know the name. Click the fx button to the left of the formula bar (or go to Formulas > Insert Function). Search by describing what you want, pick a function from the list and Excel walks you through each argument in a dialog with a live preview of the result.
- Copy the function down a column. Select the cell and drag the small square handle at its bottom-right corner down, or double-click that handle to fill to the end of the adjacent data. Relative references adjust for each row; if a reference must stay fixed, put dollar signs in it (for example
$B$2) before copying. - Check the result, not just the cell. Click the cell and confirm the formula bar shows what you intended. For a quick sanity check, select a range of numbers in the status bar at the bottom of the window — Excel shows their sum, average and count, which you can compare against your function's output.
Common Mistakes
- Leaving out the equals sign. The single most common cause of "my formula doesn't work" is that the cell contains text, not a formula. The formula bar is the tell.
- Unbalanced brackets. Excel will refuse to accept a formula with a missing closing parenthesis and usually offers to correct it — check the suggestion rather than blindly accepting it, because Excel sometimes guesses the bracket in the wrong place.
- Text that looks like a number. Numbers imported or pasted as text are ignored by
SUMand most maths functions. They often sit left-aligned in the cell instead of right-aligned. Convert them with Text to Columns or by multiplying by 1. - Wrong separator. If your regional settings use a comma as the decimal mark, the argument separator becomes a semicolon. Copying a formula from an English-language website can therefore produce an error.
- Forgetting to lock references before filling. Copying a formula that refers to a fixed rate cell without dollar signs shifts the reference and gives wrong answers that look plausible.
- Typing the answer instead of the formula. A hard-typed number does not update when the source data changes, which defeats the purpose of adding a function.
- Ignoring error values.
#NAME?usually means a misspelled function name or missing quotation marks around text.#VALUE!means an argument is the wrong type.#DIV/0!means a divisor is zero or empty.#REF!means a referenced cell was deleted.
Tips
- Use
Alt+=(Windows) to insert an AutoSum formula instantly for the column or row above or to the left of the active cell. On Mac the equivalent isCommand+Shift+T. - Press
Ctrl+Shift+Aafter typing a function name and an opening parenthesis to insert placeholder names for all its arguments — handy for learning the signature. - Click any part of a formula in the formula bar and Excel colour-codes the referenced cells on the sheet, so you can see exactly what is being read.
- Name your ranges (Formulas > Define Name) and use the name in the function instead of a cell range — formulas become readable and survive inserted rows.
- Keep one function per cell where possible. Nested functions work but become hard to audit; break long calculations across helper columns.
- Use the Evaluate Formula tool (Formulas tab) to step through a calculation piece by piece when a result is wrong.
- If your file is shared, avoid volatile functions in huge ranges — they recalculate on every change and can slow a workbook noticeably.
Troubleshooting
If the result is an error value, click the cell and read the tooltip that appears next to the warning icon. It names the problem in plain language. Fix the argument it points at rather than rewriting the whole formula.
If nothing calculates at all, check that the cell format is not Text (Home > Number format) and that calculation is set to automatic (Formulas > Calculation Options > Automatic). A sheet stuck in manual calculation shows stale results until you press F9.
If the function name will not autocomplete, you are probably typing inside a cell formatted as text, or the function is not available in your Excel version. Newer dynamic array functions do not exist in older perpetual versions, and a workbook using them will show #NAME? on those cells when opened elsewhere.
If the answer is wrong but not an error, widen the column or format the cell to show more decimals — Excel may be rounding the display. Then check the references again; a range that is one row short is a classic silent mistake.
If Excel crashes or the file misbehaves, save your work, close and reopen the workbook, then check for updates. As a last resort, copy the data into a fresh workbook — this clears corrupted formatting without touching your source file.
Frequently Asked Questions
How do I add two functions together in one cell?
Use the plus operator between them, for example =SUM(A1:A5)+AVERAGE(B1:B5). Each function is evaluated separately and the results are added.
What is the difference between a function and a formula?
A formula is any calculation starting with an equals sign; a function is a built-in tool such as SUM or IF that you call inside a formula.
Can I create my own function?
Yes — via the LAMBDA function in current Excel versions, or with VBA in the Visual Basic editor. Both require the desktop app; Excel for the web cannot run VBA macros.
Why does my formula show as text instead of a result?
Almost always a missing equals sign or a cell formatted as Text. Re-enter the formula after setting the format to General.
Do functions work the same on Mac and in the browser?
Core functions behave identically. Some advanced functions and features are desktop-only, and keyboard shortcuts differ, so check the function's documentation if a formula fails on one platform.
How do I see all functions available?
Go to Formulas > Insert Function and browse by category, or type = in a cell and scroll the autocomplete list.