An Excel formula is an expression that operates on values in a range of cells or a single cell to calculate a result. Essentially, it is a set of instructions that tells Excel to perform a specific mathematical operation, a logical comparison, or a text manipulation. By using formulas, you can automate calculations, ensuring that if the source data changes, the result updates automatically without you having to manually re-calculate the total.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS) or access to Excel for the Web.
- A basic understanding of how to navigate a spreadsheet (cells, rows, and columns).
- A set of data to work with, such as a list of expenses or a sales table.
Step-by-Step
- Select the Target Cell: Click on the cell where you want the result of your calculation to appear. This is known as the destination cell.
- Enter the Equals Sign (=): Every single formula in Excel must begin with an equals sign. This tells Excel that the characters following it are part of a mathematical expression and not just plain text. If you forget the equals sign, Excel will treat your formula as a label and will not perform any calculation.
- Input Your First Value or Cell Reference: You can type a number directly (e.g.,
10), but it is better practice to use a cell reference. Click on a cell containing a number (e.g., cell A1). Excel will automatically insert the cell address into your formula. Using references ensures that if you change the number in A1 later, the formula result updates instantly. - Add a Mathematical Operator: Type the symbol for the operation you wish to perform. The most common operators are:
- Plus sign (+) for addition.
- Minus sign (-) for subtraction.
- Asterisk (*) for multiplication.
- Forward slash (/) for division.
- Caret (^) for exponents/powers.
- Input the Second Value or Reference: Click on the second cell you wish to include in the calculation (e.g., cell B1) or type a second number. Your formula should now look something like
=A1+B1. - Complete the Expression: If you have more operations to perform, continue adding operators and references. For example,
=A1+B1-C1. - Press Enter: Once your formula is complete, press the Enter key on your keyboard. The cell will now display the calculated result rather than the formula itself.
- Verify the Result: To double-check your work, click on the cell again. Look at the Formula Bar (the long white bar above the spreadsheet grid). The Formula Bar shows the actual logic
=A1+B1while the cell shows the result (e.g.,25). - Apply the Formula to Other Cells (AutoFill): If you have a column of numbers and want to perform the same calculation for every row, click the small green square in the bottom-right corner of the cell (the Fill Handle) and drag it down the column. Excel will automatically adjust the cell references for each row (e.g., the second row will become
=A2+B2).
Common Mistakes
One of the most frequent errors is forgetting the equals sign at the start. Without it, Excel treats the entry as text, and you will see the literal characters A1+B1 in your cell instead of the sum. Another common mistake is the "Circular Reference." This happens when a formula refers to its own cell. For example, if you put the formula =SUM(A1:A10) inside cell A10, Excel cannot calculate the result because the result is part of the input, creating an infinite loop.
Users also frequently confuse cell references with static numbers. If you type =10+20, the result will always be 30. If you type =A1+B1, the result changes whenever the data in those cells changes. Relying on static numbers makes your spreadsheet rigid and prone to error when data is updated. Additionally, incorrect use of parentheses can lead to wrong results due to the order of operations (PEMDAS). Excel follows standard math rules: multiplication and division are performed before addition and subtraction. If you want to add two numbers before multiplying them, you must wrap the addition in parentheses, such as =(A1+B1)*C1.
Tips
To speed up your workflow, use the "Point-and-Click" method. Instead of typing "A1," simply click the cell while you are writing the formula. This prevents typos and ensures you are referencing the correct data point. For larger sets of data, move beyond simple operators and use built-in functions. A function is a pre-set formula. For example, instead of typing =A1+A2+A3+A4+A5, you can use =SUM(A1:A5). This is much faster and less likely to result in a missing cell error.
Utilize the Formula AutoComplete feature. When you start typing a function (e.g., =AV...), Excel will provide a dropdown list of all functions that start with those letters. You can use the arrow keys to select the correct one and press Tab to insert it. This is particularly helpful for complex functions like VLOOKUP or IF statements where the exact spelling is critical. Finally, use the "Show Formulas" mode (found in the Formulas tab or by pressing Ctrl + `) to see every formula in your sheet at once. This is an excellent way to audit your logic and find errors across a large workbook.
Troubleshooting
If your formula is not working as expected, first check for the most common error codes. If you see #DIV/0!, it means you are trying to divide a number by zero or by an empty cell, which is mathematically impossible. To fix this, ensure the divisor cell contains a non-zero value.
If you see #VALUE!, Excel has encountered a data type it doesn't expect. This usually happens when a formula expects a number but finds text instead. For example, if cell A1 contains the word "Ten" instead of the number 10, a formula like =A1+5 will trigger this error. Check your source cells for hidden spaces or text characters.
The #REF! error occurs when a cell reference is no longer valid. This typically happens if you delete a row or column that was being used by a formula. Since the original cell no longer exists, Excel cannot find the data. To resolve this, you must edit the formula and point it to a new, existing cell.
If you see #NAME?, it usually means there is a typo in the function name. For instance, typing =SUMM(A1:A10) instead of =SUM(A1:A10) will cause this error because Excel doesn't recognize "SUMM" as a valid command. Double-check the spelling of your functions.
If the cell simply displays the formula text (e.g., =A1+B1) despite the equals sign being present, the cell is likely formatted as "Text." To fix this, go to the Home tab, change the cell format dropdown from "Text" to "General," and then double-click the cell and press Enter to force Excel to re-evaluate the formula.
Frequently Asked Questions
What is the difference between a formula and a function?
A formula is any expression you write to calculate a value (e.g., =A1+B1). A function is a pre-defined formula built into Excel (e.g., =SUM() or =AVERAGE()) that simplifies complex calculations.
Can I use formulas to combine text?
Yes. You can use the ampersand (&) symbol to join text. For example, if A1 is "John" and B1 is "Doe," the formula =A1 & " " & B1 will result in "John Doe".
How do I keep a specific cell constant in a formula?
Use absolute references by adding dollar signs to the cell address. For example, =$A$1+B1 ensures that as you drag the formula down, it always refers to cell A1, while B1 changes to B2, B3, and so on.
Why is my formula result showing as a series of hashtags (#####)?
This is not an error in your formula logic; it simply means the column is too narrow to display the resulting number. Hover your mouse over the right border of the column header and double-click to auto-fit the width.
Can formulas work across different sheets?
Yes. To reference a cell on another sheet, use the sheet name followed by an exclamation point. For example, =Sheet2!A1+A1 adds cell A1 from Sheet2 to cell A1 on the current sheet.
Is there a limit to how many formulas I can use?
While there is no hard "number" of formulas, having thousands of complex formulas (especially those that look up data across huge ranges) can slow down the calculation speed of your workbook.