Smart Systems for Home

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

Most Used Excel Functions Guide

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

Mastering the most used Excel functions can transform a static spreadsheet into a dynamic, automated data analysis tool. This guide focuses on four core functions—SUM, AVERAGE, VLOOKUP, and IF—that handle 80% of everyday spreadsheet tasks. Before starting, ensure you have Microsoft Excel installed (2016 or later for best compatibility) and a dataset ready to work on. No special hardware is required, but having a keyboard handy helps for quick data entry.

What You'll Need

  • Microsoft Excel: Install the desktop version or use the web browser version (Excel for the web). The functionality is nearly identical for these four functions.
  • Sample Data: A simple dataset containing numbers and text labels, such as a list of sales transactions with columns for "Product," "Price," and "Quantity Sold."
  • Basic Understanding: Familiarity with how rows and columns work in Excel is helpful. You should know how to select a cell by clicking on it.

Step-by-Step

  1. Open Excel and Prepare Your Data: Launch the application and create a new blank workbook. In the first row, type headers for your columns. For example, type "Product" in cell A1, "Price" in cell B1, and "Quantity" in cell C1. Below these headers, enter your sample data. Ensure the data is clean, meaning no empty cells within the data range you intend to use.
  2. Use the SUM Function for Totals: The SUM function adds up a range of numbers. Let’s calculate the total sales amount for each product. Click on cell D2 (to the right of your first data row). Type the following formula and press Enter: =SUM(B2:C2). This tells Excel to add the value in cell B2 (Price) to the value in cell C2 (Quantity). To apply this to the rest of your rows, click on cell D2 again to select it, then hover your mouse over the bottom right corner of the cell until you see a small square handle. Click and drag this handle down to cell D10 (or to the last row of your data). Excel will automatically adjust the formula for each row (e.g., D3 will read =SUM(B3:C3)).
  3. Use the AVERAGE Function for Means: Calculating an average is useful for finding the typical value in a set. Click on cell E2. Type the following formula: =AVERAGE(B2:C2) and press Enter. This calculates the average price and quantity for the first product. Drag the fill handle from cell E2 down to E10 to apply this to all rows.
  4. Use the IF Function for Logic: The IF function checks a condition and returns one value if it is true and another if it is false. Suppose you want to flag products that sold fewer than 10 units as "Low Stock." Click on cell F2. Type the formula: =IF(C2<10, "Low Stock", "OK") and press Enter. This checks if the quantity in cell C2 is less than 10. If true, it displays "Low Stock" in the cell; if false, it displays "OK." Drag the fill handle down to F10. Now, any product with a quantity below 10 will be clearly marked.
  5. Use the VLOOKUP Function for Data Retrieval: VLOOKUP searches for a value in the first column of a range and returns a value in the same row from a specified column. This is essential for matching IDs to names. Create a new section in your sheet by typing "Lookup ID" in cell A12 and "Product Name" in cell B12. Below this, type some sample IDs like 101, 102, and 103 in cells A13-A15. Now, go back to your original data and assume you want to find the Product Name for each ID. Click on cell F2 in your main data table. Type the formula: =VLOOKUP(B2, $A$12:$B$15, 2, FALSE) and press Enter. Here is how the formula works: B2 is the value you want to find (the ID in the current row). $A$12:$B$15 is the range where the search happens. 2 is the column number in the range to return the result from. FALSE ensures an exact match is found. Drag the fill handle down to apply this to all rows. Note the dollar signs $ around the range reference; these lock the range so it doesn’t shift when you drag the formula.

Common Mistakes

  • Forgetting Absolute References: A common error with VLOOKUP is not using dollar signs ($) for the range. If you drag the formula down without locking the range, Excel will try to look for the ID in the wrong columns, resulting in #N/A errors.
  • Incorrect Column Index Number: In VLOOKUP, the column index number is relative to the lookup range, not the entire worksheet. If your lookup range starts in column A and you want the value in column B, the index number is 2. If you accidentally enter 1, you will get the ID itself back.
  • Mismatched Data Types: The IF function is case-insensitive but strict on data types. If you have a number stored as text (e.g., typed with a leading apostrophe), a condition like =IF(C2=10, ...) will fail even if the cell looks like a number.
  • Hardcoding Values: Avoid typing numbers directly into a function (e.g., =SUM(10, 20)). Instead, reference cells so the formula updates automatically if the underlying data changes.

Tips

  • Use the Insert Function Button: If you forget the exact syntax, click the small fx button next to the formula bar. This opens a dialog box that walks you through creating the function step by step.
  • Watch for Leading Spaces: Invisible spaces at the beginning or end of text can cause VLOOKUP to fail. Use the TRIM() function to clean data before searching (e.g., =VLOOKUP(TRIM(B2), ...)).
  • Start with Simple Formulas: It is easier to build complex formulas by starting with a simple one and adding parts incrementally. Check the result of each small step before moving to the next.
  • Format Cells as Numbers: Before using functions like SUM or AVERAGE, ensure the target cells are formatted as "Number" rather than "Text" or "Currency" (unless you want the currency symbol included in the calculation).

Troubleshooting

If your formulas are not working as expected, follow these steps to identify the issue. The most frequent cause of errors is incorrect cell references or data formatting.

  1. Check for #N/A Errors: This error usually means the VLOOKUP value was not found. Ensure the ID in your main data matches exactly with the ID in your lookup table, including any spaces or typos. You can also use the ISNA() function combined with IF to replace the error with a custom message like "Not Found."
  2. Check for #DIV/0! Errors: This error occurs when you try to divide by zero, which is common with AVERAGE if a column is empty. Ensure your data range contains at least one number. You can use =IFERROR(AVERAGE(B2:B10), 0) to return 0 instead of an error.
  3. Verify Cell Formatting: Select the cell with the error and press Ctrl+1 to open the Format Cells dialog. Go to the "Number" tab and ensure the category is correct. If you are summing numbers but getting a result of 0, the cells are likely formatted as text.
  4. Check for Circular References: If Excel says you have a circular reference, it means a formula is trying to calculate its own value. For example, if you put the SUM formula in cell A1 and the data in column A, Excel cannot calculate it. Click on the "Formulas" tab and look for "Error Checking" to locate the specific cell causing the issue.

Frequently Asked Questions

What is the difference between SUM and SUMIF?

SUM adds up all numbers in a range regardless of criteria. SUMIF adds up numbers only if they meet a specific condition, such as adding only the sales for "Product A."

Can I use VLOOKUP to the left?

No, standard VLOOKUP can only search to the right. To search to the left, use the XLOOKUP function (available in Excel 2021 and newer) or the INDEX and MATCH combination.

Why is my IF formula showing TRUE/FALSE instead of my text?

This usually happens if the text argument in the formula is missing quotes. Ensure your custom text is enclosed in double quotes, like =IF(A1>10, "High", "Low").

How do I copy formulas without changing cell references?

Use Absolute References by adding dollar signs to the column and row (e.g., $B$2). This locks the reference so it doesn't move when you drag the formula.

What does the 4th argument in VLOOKUP mean?

The 4th argument (range_lookup) defines whether to look for an exact match (FALSE) or an approximate match (TRUE). For most lookups, you should use FALSE.

Can I nest multiple IF functions?

Yes, you can nest IF functions inside one another to test multiple conditions. However, for more than three conditions, it is often cleaner to use the IFS function or a lookup table.