Smart Systems for Home

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

Excel Formulas: How to Create and Use Them Correctly

· 5 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

Excel formulas are expressions that perform calculations using values in cells. To use them, you start by typing an equals sign (=) followed by the formula—this tells Excel to calculate rather than display text. Formulas enable automatic updates when source data changes, making them essential for accurate, efficient spreadsheets.

What You'll Need

  • Microsoft Excel installed (desktop version: Windows or macOS; Excel for the web works for basic formulas)
  • A spreadsheet with data entered in cells (e.g., numbers in A1:A5)
  • Basic understanding of cell references (e.g., A1, B2:C10)

Step-by-Step

  1. Open Excel and select the cell where you want the result to appear (e.g., D10 for a sum).
  2. Type an equals sign (=) directly into the cell or the formula bar above the grid.
  3. Enter your formula. For example:
    • To add values in A1 and B1: type =A1+B1
    • To sum a range: type =SUM(A1:A10)
    • To calculate an average: type =AVERAGE(B2:B20)
  4. Press Enter (Windows) or Return (macOS) to confirm the formula. The cell will display the calculated result, not the formula itself.
  5. To view or edit the formula later, click the cell—the formula bar will show the full expression, and you can modify it directly there.
  6. For multi-step formulas, use parentheses to control order of operations. Example: =(A1+B1)*C1 adds A1 and B1 first, then multiplies by C1.
  7. To copy a formula to other cells, drag the small square at the bottom-right corner of the selected cell (the fill handle) down or across. Excel automatically adjusts relative references (e.g., =A1+B1 becomes =A2+B2 when dragged down).

Common Mistakes

Even experienced users slip up with formulas. Avoid these frequent errors:

  • Missing the equals sign (=) at the start—Excel treats the entry as text, not a formula.
  • Using full-width characters (e.g., full-width commas or parentheses), which often happen when typing in non-English keyboard layouts. Stick to standard ASCII symbols.
  • Referencing empty or invalid cells—e.g., using =A1/B1 when B1 is zero returns a #DIV/0! error.
  • Incorrect range syntax: =SUM(A1B10) instead of =SUM(A1:B10) causes a #NAME? error.
  • Using commas where semicolons are required in regional settings (e.g., in European locales, =SUM(A1;A2) may be correct instead of commas).
  • Forgetting to close parentheses—e.g., =SUM(A1:A10 triggers a prompt to fix the formula.

Tips

Make Excel formulas faster and more reliable:

  • Use named ranges: select a cell range, go to the Name Box (left of the formula bar), type a name like “SalesData”, and press Enter—then use =SUM(SalesData) for clarity.
  • Press F4 after typing a cell reference (e.g., A1) to toggle between absolute ($A$1), mixed ($A1 or A$1), and relative (A1) references.
  • Use AutoComplete: start typing a function name (e.g., “AV”) and Excel will suggest AVERAGE. Press Tab to accept and see parameter hints.
  • Break complex formulas into helper columns for easier debugging. For instance, calculate intermediate steps in separate columns rather than one long nested expression.
  • Enable formula auditing: go to Formulas > Formula Auditing > Trace Precedents to see which cells feed into your formula.
  • Use the Function Library (Formulas tab) to insert functions with guided prompts—helpful for less common ones like XLOOKUP or TEXTJOIN.

Troubleshooting

When a formula doesn’t work, follow these checks in order:

  1. Check for #VALUE!, #DIV/0!, #NAME?, or other error codes. Each has a specific cause:
    • #VALUE! — Wrong data type (e.g., text in a numeric calculation)
    • #DIV/0! — Dividing by zero or an empty cell
    • #NAME? — Misspelled function name or undefined range name
    • #REF! — Invalid cell reference (e.g., deleted row/column)
    • #NUM! — Invalid numeric value (e.g., result too large or invalid for the function)
  2. Verify cell formatting: if a cell shows ####, it may have enough characters but insufficient column width—resize the column.
  3. Ensure calculation mode is Automatic: go to Formulas > Calculation Options > Automatic. If set to Manual, press F9 to force recalculation.
  4. Confirm spaces aren’t hidden: use TRIM() on imported data to remove non-printable characters that break comparisons.
  5. Test with simple values: replace complex references with hard-coded numbers temporarily (e.g., =10+5) to isolate the issue.
  6. On Excel for the web, some newer functions like XLOOKUP may not be available—stick to SUMIFS, INDEX/MATCH, or VLOOKUP instead.

Frequently Asked Questions

Can Excel formulas reference cells in another worksheet?

Yes. Precede the cell reference with the sheet name and an exclamation mark. For example: =Sheet2!A1 or =SUM(Sheet2:Sheet3!A1:A10) for a range across multiple sheets.

Why does my formula show as text instead of calculating?

Most often, you forgot the equals sign (=) at the start, or the cell is formatted as text. To fix: select the cell, press F2 to edit, add = if missing, then press Enter. If still stuck, change the cell format to General via Home > Number group before re-entering the formula.

How do I use a formula across multiple sheets at once?

Use 3D references. For example, =SUM(Sheet1:Sheet5!B2) sums cell B2 across Sheet1 through Sheet5. Ensure the sheets are contiguous (adjacent) in the workbook tab order.

What’s the difference between =A1 and $A1?

=A1 is a relative reference: it adjusts when copied (e.g., dragging down shifts to A2, A3). =$A1 is a mixed reference: the column is fixed ($A), but the row is relative (1 changes). Use $A$1 for absolute references (both column and row fixed).

Can I link Excel formulas to external workbooks?

Yes, using a link like ='C:\Reports\[Sales.xlsx]Q1'!B5. However, links break if the source file moves or is renamed. Always update links via Data > Edit Links when moving files, and avoid linking to files that aren’t always accessible.

Do Excel formulas work the same in Excel for Mac and Windows?

Core functions (SUM, IF, VLOOKUP) behave identically. Minor differences exist in newer functions—XLOOKUP and FILTER require Excel 365 or Excel 2021 on both platforms. Keyboard shortcuts differ (e.g., F4 on Windows toggles references; on Mac, use Command+T).