Excel’s HB20 (Home & Business 2021) includes all core formulas you need for everyday tasks, like summing numbers, calculating averages, or checking conditions. These formulas work out of the box—no add-ins or macros required. Jump to the quick setup if you’re ready to type your first formula.
What You’ll Need
- Excel HB20 installed on Windows or macOS (version 2108 or later)
- A spreadsheet with data to test formulas (even a simple table works)
- Basic keyboard navigation (arrow keys, Enter, Tab)
Step-by-Step: 10 Essential Excel Formulas
Start with these formulas to handle 80% of real-world tasks. All examples use the Home tab (Ribbon) or keyboard shortcuts.
-
SUM: Add Values
Adds numbers in a range or single cells. Example: Calculate total sales.
- Type
=SUM(or click the Σ button in the Home > Editing group. - Drag-select numbers (e.g.,
A1:A10orB2,B4) - Close parentheses and press Enter. Result:
=SUM(A1:A10).
Tip: Use
=SUM(A1:A1000)to auto-fill ranges. For negative numbers, SUM ignores them but use=SUMIF(A:A, "<0")to count negatives. - Type
-
AVERAGE: Find the Mean
Calculates the average of selected cells. Example: GPA calculation.
- Type
=AVERAGE(or go to Home > Editing > AVERAGE. - Select cells (e.g.,
C2:C15orD1,D3,D5). - Press Enter. Result:
=AVERAGE(C2:C15).
Warning: AVERAGE ignores text/cells with errors. For conditional averages (e.g., only scores ≥70), use
=AVERAGEIF(C2:C15,">=70"). - Type
-
IF: Conditional Logic
Tests a condition and returns a value. Example: "Pass/Fail" grades.
- Type
=IF(in any cell. - Enter the test (e.g.,
=IF(B2>=60for scores ≥60). - Add true value (e.g.,
"Pass"), comma. - Add false value (e.g.,
"Fail"), then close parentheses:=IF(B2>=60,"Pass","Fail"). - Press Enter. Formula changes to "Pass" or "Fail" based on B2.
Common Use: Combine with AND/OR for complex checks (e.g.,
=IF(AND(A2>50,B2<10), "Error", "OK")). - Type
-
VLOOKUP: Find Data Vertically
Searches a column for a value and returns data from the same row. Example: Pull a product price by SKU.
- Open your table (e.g., column A has SKUs, column C has prices).
- In a new cell, type
=VLOOKUP(. - Specify the value to find (e.g.,
"SKU123"), comma. - Enter the lookup column number (column A = 1, B = 2, etc.), comma.
- Choose the column to return (e.g., 3 for prices), comma.
- Set
FALSEfor exact matches:=VLOOKUP("SKU123",A2:C100,3,FALSE). - Press Enter. Returns the price from the matching row.
Fix for Errors:
#N/A= No match found. Check spelling or expand the lookup range.#REF!= Column reference is wrong. Verify your column numbers.
-
COUNT: Count Cells with Numbers
Counts how many cells in a range contain numbers. Example: Track how many orders were placed.
- Type
=COUNT(or use Home > Editing > COUNT. - Select cells (e.g.,
D2:D50). - Press Enter. Result:
=COUNT(D2:D50).
Counterpart: Use
=COUNTA(to count non-blank cells (text/errors too) or=COUNTIF(for conditional counts (e.g.,=COUNTIF(B2:B20,">100")). - Type
-
TODAY: Dynamic Date
Displays the current date and updates automatically. Example: Track due dates.
- Type
=TODAY()in a cell. - Press Enter. Shows today’s date (e.g.,
15-Jun-2025). - Press F9 to force an update (or close/reopen the file).
Pro Tip: Subtract days for deadlines:
=TODAY()+7(7 days from now). Use=TODAY()-DATE(2025,1,1)to calculate age. - Type
-
CONCATENATE/TEXTJOIN: Combine Text
Merges cells or text strings. Example: Combine first/last names into "John Doe".
- Old Method (
CONCATENATE):- Type
=CONCATENATE(A2,&",B2) (add ampersand + space). - Press Enter. Returns "John Doe".
- Type
- New Method (
TEXTJOIN):- Type
=TEXTJOIN(", ",TRUE,A2:A10,B2:B10). - Press Enter. Joins lists with commas (e.g., "John Doe, Alice Smith").
- Type
Fix: If
TEXTJOINerrors, ensure cell ranges contain text-only (no blanks). - Old Method (
-
ROUND: Format Numbers
Rounds numbers to a specified decimal place. Example: Display $12.3456 as $12.35.
- Type
=ROUND(C2,2)(2 = 2 decimal places). - Press Enter. Shows 12.35 (truncates, not rounds down).
Alternatives:
=ROUNDDOWN(C2,1)for 1 decimal place downward.=ROUNDUP(C2,0)for whole numbers upward.
- Type
-
MIN/MAX: Find Extremes
=MIN(range)returns the smallest value;=MAX(range)returns the largest. Example: Track lowest/highest stock levels.- Type
=MIN(A2:A10)or=MAX(B2:B10). - Press Enter. Returns the extreme value.
Use Case: Combine with IF for conditional extremes:
=MAXIFS(C2:C100,A2:A100,"Active"). - Type
-
ERROR.HANDLER: Debug Formulas
Displays "Error" if a formula fails (e.g., #DIV/0!). Example: Prevent crashes in dashboards.
- Wrap risky formulas in
=IFERROR(. - Example:
=IFERROR(VLOOKUP("Invalid",A2:B100,2,FALSE),"N/A"). - Press Enter. Returns "N/A" if VLOOKUP fails.
- Wrap risky formulas in
Common Mistakes
- Forgetting the equals sign (=) in formulas. Excel treats
SUM(A1:A10)as text, not a formula. - Incorrect ranges (e.g.,
A1:A100includes hidden rows). Use=$A$1:$A$100to lock absolute references. - Mismatched parentheses break formulas. Use the Formulas > Formula Auditing > Trace Precedents tool to spot errors.
- Ignoring cell references when copying formulas.
=SUM(A1:A10)becomes=SUM(B1:B10)if dragged right. - Overusing nested IFs (more than 6–7 layers). Replace with
SWITCHor tables for readability. - Assuming VLOOKUP always works with text. Use
=VLOOKUP(TRUE,for approximate matches or=XLOOKUP(Excel 365) for flexibility.
Tips for Faster Work
- Keyboard Shortcuts:
- Ctrl+C / Ctrl+V copies/formula pastes (use Ctrl+Shift to paste values only).
- F4 toggles absolute/relative references (e.g.,
$A$1→=$A$1). - F9 forces a formula recalculation.
- Use Flash Fill (Data > Flash Fill) to auto-extract data (e.g., split "John Doe" into two columns).
- Name Ranges for clarity. Select a column, go to Formulas > Define Name, and name it (e.g., "SalesData"). Use
=SUM(SalesData)instead of=SUM(A2:A100). - Freeze Panes (View > Freeze Panes) to keep headers visible while scrolling.
- Check Spell Check (Review > Spell Check) for formula typos (e.g.,
SUMIFvs.SUMIFS). - Enable Calculation Options (Formulas > Calculation Options > Automatic) to avoid delays in large sheets.
Troubleshooting
If formulas don’t work:
- Check for #DIV/0! or #VALUE! errors:
- Divide by zero? Replace
=B2/A2with=IF(A2=0,0,B2/A2). - Wrong data type? Convert text to numbers with
=VALUE(A2).
- Divide by zero? Replace
- Verify ranges:
- Drag-select the range in the formula bar to see if cells are included/excluded.
- Use
=ISNUMBER(range)to check for valid numbers.
- Enable formula calculation:
- Go to Formulas > Calculation Options > Automatic.
- Restart Excel if changes don’t apply.
- Update Excel:
- Go to File > Account > Update Options > Update Now.
- Newer versions may fix bugs in older formulas (e.g.,
XLOOKUPreplacesVLOOKUP).
- Reset formula syntax:
- Press Ctrl+; to insert a timestamp (force recalc).
- Delete the cell and retype the formula.
- Last Resort: Repair Workbook:
- Close Excel completely.
- Rename the file extension from
.xlsxto.zip. - Open the zip file, locate
xl/sharedStrings.xml, and check for corrupted entries. - Rename the file back to
.xlsxand reopen. - Warning: Only attempt this if you’re comfortable with file repair. For critical data, use File > Open > Browse > (Select File) > Open and Repair.
Frequently Asked Questions
Why does my VLOOKUP return #N/A?
This means Excel couldn’t find the lookup value. Check for:
- Spelling errors in the search term.
- Hidden spaces (type
=TRIM(A2)to clean text). - Incorrect column range (e.g., searching column B but looking in column A).
- Using
=VLOOKUP("Partial",—try=XLOOKUPfor partial matches.
How do I copy a formula down without changing references?
Lock cell references with dollar signs. Change =SUM(A1:A10) to =SUM($A$1:$A$10), then copy down. The column reference stays fixed while rows update.
Can I use formulas in filtered data?
Yes, but filtered data affects formula results. For example:
=SUM(A1:A100)includes all rows, but if you filter to show only rows 2–5, the sum will be smaller.- Use
=SUBTOTAL(9,A1:A100)(9 = SUM) to ignore filters.
Why does my IF formula return blank instead of "False"?
Excel returns blank if the false value is empty. Fix it by explicitly setting the false value:
- Change
=IF(B2>100to=IF(B2>100,"Pass",""). - Or use
=IF(B2>100,TRUE,FALSE)to force TRUE/FALSE returns.
How do I sort data before using formulas like AVERAGE?
Use Data > Sort to arrange data by a column (e.g., sort by date). For dynamic sorting, add a helper column with:
=RANK(E2,E$2:E$100)to rank values by column E.- Sort by the helper column to reorder results.
What’s the difference between SUMIF and SUMIFS?
=SUMIF(range, criteria, [sum_range]) sums one condition (e.g., sum sales > $100). =SUMIFS(sum_range, range1, criteria1, [range2, criteria2]) sums multiple conditions (e.g., sum sales > $100 in Region A and Q2).
Example:
=SUMIF(D2:D100,">100") vs.
=SUMIFS(D2:D100,B2:B100,"A",C2:C100,"Q2").
Can I use formulas in Excel’s PivotTables?
No, PivotTables use summary functions (Count, Sum, Average) but not custom formulas. To combine both:
- Use PivotTables for high-level summaries.
- Add formulas in adjacent columns for calculations (e.g.,
=PivotTable_Result*1.1for markup).