To calculate a formula in Excel, you type an equals sign (=) into a cell, then enter the calculation using cell references, numbers, and operators (like +, -, *, /), and press Enter. For example, to add the values in A1 and A2, click cell A3, type =A1+A2, and press Enter. Excel instantly shows the result. This guide walks you through the full process, including using functions, copying formulas, and fixing common errors.
What You’ll Need
- A computer with Microsoft Excel (Microsoft 365, Excel 2021, or any recent version). Steps are for Windows; Mac differences are noted where relevant.
- A spreadsheet with some numbers in cells, or you can create a new blank workbook to practice.
- Basic familiarity with clicking cells and typing in the formula bar (the long input box above the grid).
Step-by-Step
- Open Excel and enter your data. For this example, put the number 10 in cell A1 and 20 in cell A2. Click on cell A1, type
10, press Enter, then click A2 and type20. - Select the cell where you want the result. Click cell A3. This is where the formula will live.
- Type the equals sign. Every formula in Excel must start with
=. Without it, Excel treats what you type as text, not a calculation. - Enter your calculation. Type
A1+A2after the equals sign, so the full entry is=A1+A2. You can also click cell A1, type+, then click cell A2—Excel inserts the references for you. - Press Enter. Excel calculates the result (30) and displays it in A3. The formula itself remains visible in the formula bar when you select A3.
- Use arithmetic operators for other calculations. For subtraction, type
=A1-A2; for multiplication,=A1*A2(asterisk is the multiply symbol); for division,=A1/A2(forward slash is divide). For example,=A1*A2returns 200. - Use parentheses to control order of operations. Excel follows standard math precedence: multiplication and division before addition and subtraction. To force a different order, use parentheses. For instance,
=(A1+A2)*2first adds A1 and A2 (30), then multiplies by 2 to give 60, whereas=A1+A2*2gives 50 (because 20*2 is 40, plus 10). - Use built-in functions for common tasks. Functions are pre-defined formulas. For example, to sum a range, type
=SUM(A1:A10)—this adds all numbers from A1 to A10. Other common ones:=AVERAGE(A1:A10),=MAX(A1:A10),=MIN(A1:A10). Type the equals sign, then the function name, then an opening parenthesis, select the range with your mouse, and close with a closing parenthesis. Press Enter. - Copy a formula to other cells. Click the cell with the formula (e.g., A3). Move your mouse to the bottom-right corner until the cursor becomes a thin black plus sign (the fill handle). Click, hold, and drag down or across to fill adjacent cells. Excel adjusts the cell references automatically (this is called relative referencing). For example, if you drag A3’s formula down to A4, it becomes
=A2+A3. - Lock references with the dollar sign ($) when needed. If you want a reference to stay fixed when copying, add a dollar sign before the column letter and/or row number. For instance,
=B1*$A$1always multiplies by the value in A1, even when copied. Press F4 on Windows (or Command+T on Mac) while editing a reference to cycle through absolute/relative combinations. - Check the result and edit if necessary. Click the cell, then click in the formula bar to edit the formula. Press Enter to apply changes. You can also double-click the cell to edit directly.
Common Mistakes
- Forgetting the equals sign. Typing
A1+A2without the=results in text, not a calculation. Always start with=. - Using the wrong operator for multiplication. Excel does not use
xor·. Use the asterisk*. Similarly, use/for division, not a backslash. - Mismatched parentheses. If you have a function like
=SUM(A1:A10(missing the closing parenthesis), Excel shows an error. Always close every parenthesis you open. - Referencing the wrong cells. When copying formulas, relative references shift. If you drag a formula down, the row numbers change. Double-check that the references point to the intended cells.
- Dividing by zero. If a formula divides by a cell that contains 0 or is empty, Excel returns
#DIV/0!. Check the divisor cell.
Tips
- Use the AutoSum button. On the Home tab, in the Editing group, click the Greek sigma (Σ) to quickly insert a SUM formula for the adjacent range. It’s faster than typing.
- Press F2 to edit a formula. Select a cell and press F2 (or double-click) to enter edit mode. On Mac, press Control+U.
- Use the Formula Bar. The long box above the grid shows the full formula. Click into it to make changes without disturbing the cell.
- Take advantage of AutoComplete. When typing a function name, Excel suggests a list. Use arrow keys to select one and press Tab to autocomplete.
- Use named ranges for clarity. If you have a constant like a tax rate in cell B1, you can name it (e.g.,
TaxRate) via Formulas > Define Name, then use=A1*TaxRate. This makes formulas easier to read. - Test with simple numbers. Before building a complex formula, try it with small, known values to verify the logic.
Troubleshooting
Excel shows #NAME? – This usually means you mistyped a function name or used text without quotes. Check the spelling, and ensure any text in the formula is enclosed in double quotes (e.g., ="Total: "&A1).
Excel shows #VALUE! – The formula references a cell that contains text where a number is expected. For example, =A1+A2 will error if A2 contains “apple”. Check the referenced cells.
Excel shows #REF! – A reference is invalid, often because you deleted a cell that was used in the formula. Undo (Ctrl+Z) or re-enter the formula with valid references.
The result is wrong but no error appears. – Check the order of operations. Remember that multiplication and division happen before addition and subtraction. Use parentheses to force the desired order. Also verify that the cell references point to the correct cells—click the cell and look at the formula bar.
Formula doesn’t recalculate when I change input cells. – Excel usually recalculates automatically, but if calculation is set to manual, press F9 to recalculate. To change it, go to Formulas > Calculation Options and select Automatic.
Copying a formula gives unexpected results. – Likely due to relative references. If you want a reference to stay fixed, add dollar signs (e.g., $A$1). Use F4 on Windows or Command+T on Mac to cycle through reference types.
Frequently Asked Questions
Q: How do I start a formula in Excel?
A: Click a cell, type the equals sign (=), then enter the calculation. For example, =5+3 returns 8.
Q: What is the difference between a formula and a function?
A: A formula is any expression that starts with =, like =A1+B1. A function is a predefined formula, like =SUM(A1:A10), that performs a specific operation.
Q: How do I copy a formula down a column without changing the reference?
A: Use absolute references with dollar signs, e.g., =$A$1. Then copy the formula—the reference to A1 will stay fixed while other references adjust.
Q: Why does Excel show ##### in a cell?
A: This usually means the column is too narrow to display the number. Widen the column by dragging the right edge of the column header, or change the number format to a shorter one.
Q: Can I use text in a formula?
A: Yes, but you must enclose text in double quotes. For example, =A1&" units" concatenates the number in A1 with the word “units”. The ampersand (&) is the text concatenation operator.
Q: How do I calculate a percentage in Excel?
A: To find what percentage one number is of another, divide the part by the whole and format as a percentage. For example, if A1 is 20 and B1 is 50, use =A1/B1 and then apply the Percent Style (Home > Number group > %). The result shows 40%.
Related
- Google Sheets Split by Line Break: How-To
- Data Entry Jobs This Week: Where to Find Them
- Google Sheets TIMEVALUE Function: How to Use It
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- VLOOKUP Between Two Excel Sheets: Step-by-StepTo use VLOOKUP between two sheets in the same Excel workbook, enter a formula on the sheet where…
- XLOOKUP Excel Conditional Search: Formulas and ExamplesTo use XLOOKUP for a conditional search in Excel, put the condition in its lookup array; for multiple…
- How to Find Unique Names in an Excel Column EasilyIn Microsoft 365, you can create a live list of distinct names with the UNIQUE function. With names…
- Excel FILTER Formula for No DuplicatesTo return a changing list with duplicates removed, combine Excel’s FILTER and UNIQUE functions. With values in A2:A100…
- Cannot Filter in Excel? Causes, Checks, and FixesYes—Excel can filter both ordinary data ranges and tables. In Microsoft 365 for Windows, select a cell in…
- PMT in Excel: Calculate Loan Payments Step by StepTo calculate a fixed loan payment in Excel, use the PMT function: enter the interest rate per payment…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.