Smart Systems for Home

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

Excel Intermediate Course 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 Excel beyond the basics allows you to process larger datasets, automate repetitive tasks, and present data with professional precision. This guide covers the core intermediate skills: logical functions, data lookup, data validation, pivot tables, and basic macros. You need a working version of Microsoft Excel installed (2016, 2019, 2021, or Microsoft 365) on a PC or Mac, and a dataset to practice with—preferably a table of sales figures or inventory logs.

What You'll Need

  • Microsoft Excel: Any modern version (2016 or later) installed on your computer.
  • Sample Data: A small dataset containing at least 100 rows and 5 columns (e.g., Date, Product Name, Category, Sales, Region) to practice on.
  • Keyboard: Familiarity with basic keyboard shortcuts (Ctrl+C/V, Ctrl+Z) is recommended.
  • Logical Thinking: The ability to break down a problem (e.g., "If sales are over $500, mark as High") into a set of conditions.

Step-by-Step

  1. Master Logical Functions with IF and Nested IFs: The IF function is the foundation of decision-making in Excel. It checks a condition and returns one value if true and another if false. Open your data sheet and click an empty cell. Type =IF(A2>1000, "High Sales", "Low Sales"). Here, Excel checks if the value in cell A2 is greater than 1000. If true, it displays "High Sales"; otherwise, it displays "Low Sales".
  2. Handle Complex Logic with Nested IFs: When you have more than two outcomes, you nest IF statements inside one another. For example, to categorize sales into Low, Medium, and High, type: =IF(A2>2000, "High", IF(A2>1000, "Medium", "Low")). This checks the first condition; if false, it checks the second, and so on. Be mindful of closing parentheses; Excel will highlight them if you are missing one.
  3. Implement Lookup Functions (VLOOKUP and XLOOKUP): Lookups connect data from two different tables. For older Excel versions, use VLOOKUP. In a new sheet, assume you have a Product ID in cell B2 and want to find the Product Name from a table on the first sheet. Type =VLOOKUP(B2, Sheet1!A:B, 2, FALSE). This tells Excel to look for B2 in the first column of Sheet1 and return the value from the second column. Note that VLOOKUP requires the lookup column to be the first column in the table array.
  4. Use XLOOKUP for Modern Efficiency: If you have Excel 365 or Excel 2021, XLOOKUP is superior. It doesn't require the lookup column to be first and returns all matches by default. The syntax is simpler: =XLOOKUP(B2, Sheet1!A:A, Sheet1!B:B). This looks for B2 in the first column of Sheet1 and returns the corresponding value from the second column.
  5. Enforce Data Integrity with Data Validation: Data validation prevents users from entering incorrect data. Select the range you want to restrict (e.g., cells C2:C100). Go to the Data tab and click Data Validation (or Data Tools > Data Validation). Under the Settings tab, choose List from the Allow dropdown. In the Source box, type your options, separated by commas (e.g., "Red, Green, Blue"). Now, only these options can be selected from a dropdown list in those cells.
  6. Create Conditional Formatting: Highlight data based on its value automatically. Select your data range. Go to Home > Conditional Formatting. Choose Highlight Cells Rules and then Greater Than. Type a value (e.g., 1000) and select a style (e.g., Light Red Fill with Dark Red Text). Now, all cells with values over 1000 will be highlighted instantly, making trends visible at a glance.
  7. Summarize Data with PivotTables: PivotTables are the most powerful tool for analyzing large datasets. Select your entire dataset (including headers). Go to the Insert tab and click PivotTable. Choose where to place it (New Worksheet is recommended). In the PivotTable Field List pane on the right, drag the "Region" field to the Rows area and the "Sales" field to the Values area. Excel will instantly calculate total sales per region for you.
  8. Analyze Data with Slicers: Slicers provide a visual, interactive way to filter PivotTables. With your PivotTable selected, go to the PivotTable Analyze (or Options) tab and click Slicer. Choose the fields you want to filter (e.g., "Region" and "Category"). Click OK. You will see colorful buttons. Clicking "North" in the Region slicer will instantly update the PivotTable to show only North Region data.
  9. Automate Tasks with Basic Macros: Macros record your actions to replay them later. Go to the View tab and click Record Macro. Name it (e.g., "FormatTable") and click OK. Perform the formatting you want to automate (e.g., set the font to Calibri, size 11, and bold the header). To stop, click Stop Recording. To run it again, go to Macros (under the View tab), select your macro, and click Run.

Common Mistakes

  • Mismatched Parentheses: The most common error in formulas like IF or VLOOKUP is an extra or missing parenthesis. Excel will often highlight the mismatched paren in red, but sometimes it results in a generic #NAME? error. Always count the opening and closing parentheses to ensure they match.
  • Hardcoding Values: A mistake is typing specific numbers directly into a formula (e.g., =VLOOKUP(A2, Sheet1!A1:D10, 4, FALSE)). If you insert a row at the top, your formula breaks. Instead, define named ranges for your table data (e.g., select the table and type "SalesTable" in the Name Box) and use the name in the formula.
  • Incorrect Lookup Column Position: In VLOOKUP, the lookup value must be in the first column of the table array. If your data is sorted by Category but you look up by Date, VLOOKUP will fail. Use XLOOKUP if your data isn't organized this way, or reorder your columns.
  • Ignoring Absolute References: When dragging a formula down a column, Excel automatically adjusts cell references (e.g., A2 becomes A3). If you want to keep a reference fixed (e.g., to a tax rate in cell Z1), use the dollar sign ($A$1) to make it an absolute reference.

Tips

  • Use the Formula Bar: Always verify your formula in the formula bar before pressing Enter. It shows the actual formula, not the calculated result, making it easier to spot errors.
  • Learn Shortcuts: Use Ctrl+Shift+Enter for array formulas (like SUMIFS or INDEX/MATCH) and Alt+= to quickly insert a SUM function. These save significant time.
  • Format as Table: Before creating a PivotTable, select your data and press Ctrl+T to convert it into an official Excel Table. This ensures your formulas automatically expand to include new rows.
  • Check for Errors: If a cell shows #VALUE!, it usually means you are trying to combine text and numbers (e.g., "Total: " & 100). Use the VALUE function to convert text to a number.

Troubleshooting

If a formula returns an error, start by checking the cell immediately to the left or right. Excel often provides a small green triangle and an error tooltip explaining the issue. Common errors include #N/A (value not found in lookup), #REF! (a reference is invalid), and #DIV/0! (division by zero). Ensure your data types match; for example, a lookup function cannot find a number if the lookup value is stored as text.

Frequently Asked Questions

What is the difference between VLOOKUP and XLOOKUP?

VLOOKUP searches for a value in the first column of a range and returns a value in a specified column to the right. It is rigid and requires the lookup column to be the first column. XLOOKUP is a modern function that can search in any column and return a value from any column, regardless of position, and it is easier to use.

How do I fix a #N/A error in VLOOKUP?

A #N/A error means Excel cannot find the lookup value in the first column of your table array. Check for leading or trailing spaces, ensure the data types match (number vs. text), and confirm that the lookup range is correct.

Can I use a PivotTable with data from multiple sheets?

Yes, you can. When creating a PivotTable, you can select multiple ranges from different sheets. However, it is often cleaner to use the Power Query tool (available in Excel 2016 and later) to combine data from multiple sources into one table before creating the PivotTable.

What does ">$"$ mean in a formula?

The dollar sign ($) is used to create an absolute reference. For example, $A$1 locks both the row and column. When you drag the formula down, it will always refer to cell A1, rather than adjusting to A2, A3, etc.

How do I protect a worksheet so users can't edit formulas?

Go to the Review tab and click Protect Sheet. You can choose which elements users can interact with (like formatting or inserting rows) while locking the cells containing your formulas.