Excel Formula Cheat Sheet: Quick Reference Guide
In this article
A cheat sheet for Microsoft Excel formulas gives you a fast way to look up the exact syntax for the calculations you use most, without digging through menus or help files. The core idea is to group formulas by what they do—math, text, dates, logic, lookup—and to remember the small rules that trip people up: every formula starts with an equals sign (=), arguments go inside parentheses and are separated by commas (or semicolons in some regional settings), and text values need double quotes around them. You do not need to memorize everything; keep this reference open while you work and copy the patterns that fit your data.
What You'll Need
- Microsoft Excel installed on your computer (desktop version works best for practicing; the web and mobile versions support most but not all functions).
- A blank worksheet or a sample table with a few rows of data so you can try each formula.
- Basic familiarity with cells, rows, and columns—knowing that A1 refers to column A, row 1 is enough.
Step-by-Step
- Start every formula with =. Click a cell, type =, and then type the formula. Without the equals sign Excel treats your entry as text. For example, =2+2 displays 4, while 2+2 displays the text “2+2”.
- Use cell references instead of typing numbers. If A1 contains 10 and B1 contains 5, =A1+B1 returns 15. When you change A1 to 20, the result updates automatically. Relative references (A1) shift when you copy the formula; absolute references ($A$1) stay fixed. Press F4 after typing a reference to cycle through the $ combinations.
- Master the basic math operators. Addition +, subtraction -, multiplication *, division /. Use ^ for exponents (e.g., =2^3 gives 8). Parentheses control the order: = (A1+B1)*2 adds first, then multiplies.
- Learn the core functions for summing and averaging. =SUM(A1:A10) adds a range. =AVERAGE(A1:A10) returns the mean. =MIN(A1:A10) and =MAX(A1:A10) give the smallest and largest values. =COUNT(A1:A10) counts numeric cells; =COUNTA(A1:A10) counts non-empty cells. These accept multiple ranges separated by commas, e.g., =SUM(A1:A10, C1:C10).
- Handle conditions with IF. The pattern is =IF(logical_test, value_if_true, value_if_false). For example, =IF(A1>50, "Pass", "Fail"). You can nest IFs, but for more than two or three conditions consider IFS (available in Excel 2019 and later, and Microsoft 365): =IFS(A1>90, "A", A1>80, "B", TRUE, "C"). The final TRUE acts as a catch-all.
- Combine text with & or CONCAT. =A1 & " " & B1 joins the contents of A1 and B1 with a space. =CONCAT(A1, " ", B1) does the same. Use =TEXTJOIN(" ", TRUE, A1:A5) to join a range with a delimiter, ignoring empty cells when the second argument is TRUE. To extract parts, use =LEFT(A1, 3), =RIGHT(A1, 3), or =MID(A1, 2, 4) (start at character 2, take 4 characters). =LEN(A1) counts characters.
- Work with dates using TODAY and DATE. =TODAY() returns the current date and updates each time the sheet recalculates. =DATE(2025, 12, 25) builds a specific date. =DATEDIF(start, end, "d") returns days between two dates; replace "d" with "m" for months or "y" for years. Note that DATEDIF is an older function and may not appear in autocomplete, but it still works.
- Look up values with VLOOKUP or XLOOKUP. =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) searches the first column of a range and returns a value from a specified column. The FALSE at the end forces an exact match—always use it unless you deliberately want an approximate match. XLOOKUP (Microsoft 365 and Excel 2021+) is more flexible: =XLOOKUP(lookup_value, lookup_array, return_array, "Not found"). It searches any column and returns from any column, and the fourth argument sets a custom message when no match is found.
- Count and sum with criteria using COUNTIF and SUMIF. =COUNTIF(A1:A10, ">5") counts cells greater than 5. =SUMIF(A1:A10, ">5", B1:B10) adds the corresponding values in B1:B10 where A1:A10 is greater than 5. For multiple criteria, use COUNTIFS and SUMIFS, which accept pairs of range and criteria: =SUMIFS(B1:B10, A1:A10, ">5", C1:C10, "Yes").
- Round numbers deliberately. =ROUND(A1, 2) rounds to two decimal places. =ROUNDUP(A1, 0) always rounds up to the nearest whole number; =ROUNDDOWN(A1, 0) always rounds down. =INT(A1) drops the decimal part entirely (for positive numbers). Use these when you need clean output for reports or further calculations.
- Check for errors with IFERROR. Wrap a formula that might fail: =IFERROR(VLOOKUP(A1, B:C, 2, FALSE), "Not found"). This returns your chosen text instead of #N/A or #DIV/0!. IFNA is a narrower version that only catches #N/A errors.
- Use the formula bar and function wizard when unsure. Click the fx button next to the formula bar to open the Insert Function dialog. It lists functions by category and shows argument prompts. You can also start typing = and the first few letters of a function; Excel’s autocomplete list appears, and pressing Tab inserts the function name and opens a tooltip with the argument order.
Common Mistakes
- Forgetting the equals sign. A formula typed without = becomes plain text. If you see the formula itself in the cell instead of a result, check the cell’s format—it may be set to Text. Change it to General and re-enter the formula.
- Mismatched parentheses. Excel colors parentheses as you type to help you match them. If you get an error about the formula, count opening and closing parentheses; they must be equal.
- Using commas vs. semicolons. In some regional settings, the list separator is a semicolon instead of a comma. If =SUM(A1;A2) works but =SUM(A1,A2) does not, your system uses semicolons. The same applies to decimal points vs. commas.
- Relative references when you need absolute. Copying =A1+B1 down a column works because references shift. But if you copy =VLOOKUP(A1, $B$1:$C$10, 2, FALSE) without the dollar signs, the table range will shift and return wrong results. Lock the lookup range with $.
- VLOOKUP with a column index that is off. The col_index_num counts from the first column of table_array, not from column A of the sheet. If your table starts in column B, a col_index_num of 2 returns column C.
- Text that looks like numbers. Numbers stored as text (often left-aligned) won’t sum correctly. Use =VALUE(A1) to convert, or select the range and use Data > Text to Columns > Finish to coerce them.
Tips
- Press Ctrl+` (the grave accent key, usually below Esc) to toggle showing formulas instead of results—handy for auditing a sheet.
- Use F2 to edit a cell in place, or click the formula bar to edit without overwriting the cell.
- Name ranges (Formulas > Define Name) to make formulas readable: =SUM(Sales) instead of =SUM(B2:B100).
- When you copy a formula, use Paste Special > Formulas to avoid overwriting formatting.
- Keep a personal cheat sheet worksheet in your workbook with the formulas you use most, and update it as you learn new ones.
Troubleshooting
If a formula returns an error, read the error code. #DIV/0! means you are dividing by zero or an empty cell—wrap the divisor in IFERROR or check the cell. #VALUE! usually means a text value is where a number is expected; check for stray spaces or non-numeric characters. #NAME? means Excel does not recognize a function name—often a typo or a function not available in your version (XLOOKUP, for example, requires Microsoft 365 or Excel 2021+). #REF! means a reference is invalid, often because you deleted a column or row that the formula pointed to. #N/A from a lookup means no match was found; verify the lookup value exists and that both columns are formatted the same way (text vs. number). If a formula worked before but now returns a wrong result, check for hidden rows or filters that might be excluding data, and confirm that calculation is set to Automatic (Formulas > Calculation Options > Automatic). If the formula bar shows the formula but the cell shows text, the cell is formatted as Text—change it to General and press F2 then Enter to re-evaluate.
Frequently Asked Questions
What is the difference between a formula and a function?
A formula is any calculation you type that starts with =. A function is a built-in preset formula, such as SUM or AVERAGE, that takes arguments. You can mix both in one formula.
Do I need to type formulas in uppercase?
No. Excel converts function names to uppercase automatically, and formulas are not case-sensitive. However, text inside double quotes is case-sensitive for comparisons in some functions like EXACT.
Why does my VLOOKUP return the wrong value?
The most common causes are a missing FALSE (exact match) argument, a column index that is off by one, or a lookup range that is not locked with dollar signs when copied. Also check that the first column of the table contains the lookup value and that both are the same data type.
Can I use formulas on Excel for the web or mobile?
Yes, most common functions work in Excel for the web and the mobile app, but some newer or specialized functions may be limited. For full compatibility, use the desktop version.
How do I fix a formula that shows #NAME?
Check for a misspelled function name or a missing quotation mark around text. Also confirm the function exists in your Excel version; if not, use an alternative or update your software.
What does the $ sign do in a cell reference?
It makes the reference absolute, so it does not change when you copy the formula to another cell. $A$1 locks both column and row; A$1 locks only the row; $A1 locks only the column.