Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Base Excel Formula: How to Create and Use Basic Formulas

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a base Excel formula, click on a cell, type an equals sign (=), enter your calculation using cell references (like A1 + B1), and press Enter. The equals sign is the essential trigger that tells Excel to perform a calculation rather than treating the input as plain text.

What You'll Need

  • A computer with Microsoft Excel installed (any version) or a web browser accessing Excel Online.
  • A dataset or a few numbers entered into cells to practice with.
  • A basic understanding of how to navigate a spreadsheet (rows, columns, and cells).

Step-by-Step

  1. Select Your Target Cell: Click on the cell where you want the result of your calculation to appear. This is known as the formula cell. It is generally best practice to place your result cell below or to the right of the data you are calculating to keep your spreadsheet organized.
  2. Start with the Equals Sign: Type the equals sign (=) into the cell. This is the most critical step; without the equals sign, Excel will simply display the characters you type as a label or a string of text.
  3. Enter the First Cell Reference: Instead of typing a number (like 10), click on the cell that contains the number you want to use. For example, if your first number is in cell A1, click A1. Excel will automatically insert "A1" into your formula. Using cell references instead of hard-coded numbers ensures that if you change the value in A1 later, the formula result will update automatically.
  4. Insert a Mathematical Operator: Type the operator for the calculation you wish to perform. The standard operators are:
    • Plus sign (+) for addition.
    • Minus sign (-) for subtraction.
    • Asterisk (*) for multiplication.
    • Forward slash (/) for division.
    • Caret (^) for exponents (powers).
  5. Enter the Second Cell Reference: Click on the second cell involved in the calculation. For instance, if you are adding A1 to B1, click cell B1. Your formula should now look like =A1+B1.
  6. Expand the Formula (Optional): If you need to calculate more than two cells, continue adding operators and cell references. For example, =A1+B1+C1+D1 will sum four different cells.
  7. Complete the Calculation: Press the Enter key on your keyboard. The formula will disappear, and the calculated result will be displayed in the cell.
  8. Verify the Result: Double-click the cell or look at the Formula Bar (the long white bar above the column letters) to see the underlying logic. Ensure the references are pointing to the correct cells.
  9. Fill the Formula Down: If you have a column of data, you do not need to rewrite the formula for every row. Click the small green square (the fill handle) in the bottom-right corner of the cell and drag it down the column. Excel will automatically adjust the cell references for each row (e.g., =A1+B1 becomes =A2+B2).

Common Mistakes

One of the most frequent errors is forgetting the equals sign. If you type "A1+B1" and press Enter, Excel treats it as text. Always ensure the = is the very first character in the cell.

Another common mistake is "Hard-coding." This happens when a user types =10+20 instead of =A1+B1. While this gives the correct answer of 30, it makes the spreadsheet rigid. If the 10 changes to 15, the formula will still say 30 unless you manually edit the formula itself. Always use cell references to maintain a dynamic sheet.

Incorrect Order of Operations is also a common pitfall. Excel follows the mathematical rule of PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). If you try to add two numbers and then multiply the result by a third, typing =A1+B1*C1 will result in B1 being multiplied by C1 first, and then A1 being added. To fix this, use parentheses: =(A1+B1)*C1.

Circular References occur when a formula refers to its own cell. For example, if you are typing a formula in cell A3 and you write =A1+A2+A3, you have created a loop. Excel cannot calculate a value that depends on itself, and it will trigger a warning message.

Tips

Use the "Point-and-Click" method. Instead of typing "B14" or "C22," simply click the cell while the formula is open. This prevents typos and ensures you are referencing the correct data point, especially in large sheets with hundreds of rows.

Utilize the AutoSum feature for basic addition. If you have a long column of numbers, you can highlight them and click the AutoSum button (Σ) on the Home tab. Excel will automatically generate a =SUM() formula, which is a more efficient way to handle large ranges than adding each cell individually.

Keep your data clean. Formulas work best when the cells they reference contain only numbers. If a cell contains "10 lbs" instead of just "10," Excel will treat that cell as text and return a #VALUE! error because it cannot perform math on letters.

Use the Formula Bar for editing. While you can edit formulas directly in the cell, the Formula Bar at the top of the screen provides a clearer view of the entire string, making it easier to spot missing parentheses or incorrect cell references.

Troubleshooting

If your formula is not working, first check for the #VALUE! error. This usually means there is a data type mismatch. Check the cells you are referencing to ensure they don't contain hidden spaces, letters, or special characters. If a number is formatted as text, Excel may ignore it or error out.

If you see #DIV/0!, it means your formula is trying to divide a number by zero or by an empty cell. Check your divisor cell to ensure it contains a non-zero value.

If the cell shows the formula itself (e.g., it literally says =A1+B1) even though you included the equals sign, the cell is likely formatted as "Text." To fix this, go to the Home tab, change the cell format from "Text" to "General," and then double-click the cell and press Enter again to refresh the calculation.

If the result looks wrong, check for hidden rows or columns. You might be referencing a cell that is hidden from view, leading you to believe the formula is pulling from a different location than it actually is.

If you encounter a #REF! error, it means a cell that was previously part of the formula has been deleted. You cannot "undo" a deletion to fix this; you must click into the formula and manually re-select the correct cell range.

Frequently Asked Questions

Can I use a base formula across different sheets?

Yes. While writing your formula, simply click over to the other sheet tab and select the desired cell. Excel will format the reference as 'SheetName'!A1.

What is the difference between a formula and a function?

A formula is a manual calculation you build (e.g., =A1+B1), while a function is a built-in shortcut provided by Excel (e.g., =SUM(A1:B1)).

How do I stop a formula from changing when I drag it down?

You need to use absolute references. Put a dollar sign before the column and row (e.g., =$A$1+B1). This "locks" cell A1 so it doesn't shift to A2, A3, etc., when dragged.

Why is my formula returning a date instead of a number?

This is a formatting issue, not a formula error. Excel sometimes guesses the wrong format. Go to the Home tab and change the Number Format dropdown from "Date" to "General" or "Number."

Can I put text inside a base formula?

Yes, by using the ampersand (&) symbol. For example, ="Total: " & (A1+B1) will display the word "Total: " followed by the result of the math.

How do I handle negative numbers in a formula?

Excel handles negative numbers automatically. If cell A1 contains -10 and B1 contains 5, =A1+B1 will correctly result in -5.