Smart Systems for Home

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

Most Helpful Excel Functions and How to Use Them

· 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

The most helpful Excel functions are the ones you will actually use every week: SUM, AVERAGE, COUNT, IF, VLOOKUP or XLOOKUP, SUMIF, COUNTIF, TEXT, TRIM, and CONCAT. Learning these ten covers the vast majority of everyday spreadsheet work, from adding up expenses to pulling data from another table. No add-ins are needed; everything here is built into Excel on Windows, Mac, and the web, though menu labels can differ slightly by version and region.

What You'll Need

  • Excel for Microsoft 365, Excel 2021 or later, or Excel for the web. Older versions may lack XLOOKUP.
  • A blank workbook or a practice sheet with a few columns of numbers and text.
  • Basic familiarity with typing in cells and pressing Enter.

Step-by-Step

  1. Start with SUM. Click an empty cell below a column of numbers and type =SUM(B2:B10). Press Enter. The colon means "through," so B2:B10 includes every cell from B2 to B10. You can also click the AutoSum button on the Home tab, which inserts the formula for you. Use SUM instead of adding cells one by one so the total updates when numbers change.
  2. Use AVERAGE for the mean. In an empty cell type =AVERAGE(B2:B10). This adds the numbers and divides by how many cells contain numbers. Blank cells are ignored, but cells containing zero are counted, which can pull the average down. If you want to exclude zeros, use =AVERAGEIF(B2:B10,"<>0").
  3. Count entries with COUNT and COUNTA. =COUNT(B2:B10) counts only cells with numbers. =COUNTA(B2:B10) counts any non-empty cell, including text. Use COUNT when you want to know how many values were entered and COUNTA when you want to know how many rows have any content at all.
  4. Make decisions with IF. Type =IF(C2>=60,"Pass","Fail"). The first part is the test, the second is what to show if true, the third is what to show if false. Text results must be in double quotes; numbers do not need quotes. You can nest IFs, but more than two levels gets hard to read, so consider IFS or a lookup table instead.
  5. Look up data with VLOOKUP or XLOOKUP. VLOOKUP searches the first column of a range and returns a value from a column you specify: =VLOOKUP(A2,Sheet2!A:D,3,FALSE). The FALSE at the end means exact match, which is almost always what you want. XLOOKUP is simpler and works in both directions: =XLOOKUP(A2,Sheet2!A:A,Sheet2!C:C). If XLOOKUP is not available in your version, VLOOKUP is the fallback.
  6. Add with conditions using SUMIF and SUMIFS. =SUMIF(D2:D100,"North",B2:B100) adds the values in B only where column D says North. For two conditions use SUMIFS, where the sum range comes first: =SUMIFS(B2:B100,D2:D100,"North",E2:E100,">100"). COUNTIF and COUNTIFS work the same way but count rows instead of adding values.
  7. Clean text with TRIM and CONCAT. =TRIM(A2) removes extra spaces from the start, end, and between words, which fixes lookups that fail because of invisible spaces. =CONCAT(A2," ",B2) joins first and last names with a space. In newer versions you can also use =TEXTJOIN(" ",TRUE,A2,B2), which skips empty cells.
  8. Format numbers and dates with TEXT. =TEXT(B2,"$#,##0.00") turns a number into a formatted text string, useful when building labels. =TEXT(C2,"dd/mm/yyyy") formats a date. Remember the result is text, so it will not work in further calculations.
  9. Round results deliberately. =ROUND(B2,2) rounds to two decimal places. Use ROUNDUP or ROUNDDOWN when you need a specific direction. Avoid the Increase Decimal button for final figures, because it only changes display, not the stored value.
  10. Lock references before copying. When you copy a formula down or across, relative references shift. Add dollar signs to fix a cell: $B$2 locks both column and row, B$2 locks the row only. Press F4 after clicking a reference to cycle through the options. This is the single biggest cause of formulas that work in one row and break in the next.

Common Mistakes

  • Using VLOOKUP with TRUE (approximate match) when you meant exact match, which returns wrong values from nearby rows.
  • Forgetting that VLOOKUP cannot look to the left of the search column. Use XLOOKUP or INDEX/MATCH instead.
  • Leaving stray spaces in lookup values. Wrap the search value in TRIM or clean the source data.
  • Mixing text and numbers in the same column. A number stored as text will not be counted by SUM or COUNT.
  • Copying formulas without locking the reference range, so later rows point at the wrong cells.
  • Typing values directly into formulas instead of referencing cells, which means the formula does not update when data changes.

Tips

  • Press Ctrl+` (the key left of 1) to show all formulas on the sheet, which makes errors easy to spot. Press it again to hide them.
  • Use the Evaluate Formula tool under Formulas to step through a calculation one piece at a time.
  • Name ranges (Formulas > Define Name) so formulas read as =SUM(Sales) instead of =SUM(B2:B500).
  • Convert data to an Excel Table (Insert > Table) so ranges expand automatically as you add rows.
  • Keep one idea per column and one record per row. Clean layout prevents most formula problems before they start.

Troubleshooting

If a formula shows #N/A, the lookup value was not found. Check for extra spaces, mismatched data types, or a search range that does not include the value. If you see #VALUE!, a cell that should be a number contains text. #REF! means a referenced cell or sheet was deleted. #DIV/0! means you divided by zero or by an empty cell; wrap the formula in IFERROR, for example =IFERROR(A2/B2,0), to show a fallback instead. If a formula displays as text rather than calculating, the cell is formatted as Text: change the format to General, then re-enter the formula. If results look wrong after copying, check for missing dollar signs. If a total is lower than expected, confirm no numbers are stored as text by selecting the column and looking for a green triangle warning.

Frequently Asked Questions

What is the difference between VLOOKUP and XLOOKUP?

VLOOKUP only searches the first column of a range and returns a value to its right. XLOOKUP can search any column and return from any column, handles missing values more gracefully, and works left to right or right to left. XLOOKUP is available in Microsoft 365 and Excel 2021 and later.

Why does my SUM return zero?

The numbers are probably stored as text. Select the column, use Data > Text to Columns and finish, or multiply the range by 1 in a helper column, then re-sum. Check also that the range includes the cells you expect.

Can I use these functions in Excel for the web?

Yes. SUM, AVERAGE, COUNT, IF, VLOOKUP, SUMIF, COUNTIF, TRIM, CONCAT and TEXT all work in Excel for the web. XLOOKUP support depends on your version, so fall back to VLOOKUP if it is not offered.

How do I stop a formula from changing when I copy it?

Add dollar signs to the parts you want fixed. $B$2 locks the whole cell, B$2 locks the row, and $B2 locks the column. Press F4 while editing to cycle through the options.

What does the FALSE at the end of VLOOKUP mean?

It tells Excel to find an exact match. If you omit it or use TRUE, Excel assumes the list is sorted and returns the closest match, which often produces incorrect results.

Is there a way to count only visible rows?

Yes. Use SUBTOTAL with function number 109, for example =SUBTOTAL(109,B2:B100), which ignores rows hidden by a filter. COUNTA and COUNT include hidden rows.