Excel Codes Cheat Sheet: Formulas & Shortcuts
In this article
A practical Excel cheat sheet is a short list of the formulas, functions and keyboard shortcuts you actually use, written down so you stop hunting through menus. The quickest way to build one is to start from the functions that cover most everyday work (SUM, IF, XLOOKUP, COUNTIF, TEXT, and a handful of shortcuts), test each one on a blank sheet, then save the tested list where you can reach it. Nothing needs installing first: every item below works in current Excel for Microsoft 365, Excel 2021 and Excel 2019, and most also work in Excel for the web and mobile. Menu names and shortcut behaviour can differ slightly by version, platform and region, so treat the labels as a guide rather than gospel.
What You'll Need
- A computer with Excel installed (desktop gives you the full shortcut set; the web version has fewer).
- A blank workbook you can experiment in, so a mistake never touches real data.
- About 20 minutes to type each formula once and see what it returns.
- A place to keep the finished sheet: OneDrive, a shared team folder, or a printed page taped near your desk.
Step-by-Step
- Create the cheat sheet workbook. Open Excel, press Ctrl+N (Cmd+N on Mac) for a new workbook, and save it immediately as something like Excel-Cheat-Sheet.xlsx. Give yourself three tabs: Formulas, Shortcuts and Examples. Keeping examples on their own tab means you can test a formula without disturbing the reference list.
- Add the core maths and counting functions first. On the Formulas tab, list these with a one-line description and a live example in the next column:
=SUM(B2:B20)adds a range.=AVERAGE(B2:B20)returns the mean.=COUNT(B2:B20)counts numbers only;=COUNTA(B2:B20)counts any non-empty cell.=COUNTIF(B2:B20,">100")counts cells matching one condition;=COUNTIFShandles several.=SUMIF(B2:B20,"North",C2:C20)adds only the rows where the region is North.=MINand=MAXfor the smallest and largest values.
- Add the logic and text functions. These do most of the day-to-day work:
=IF(C2>=60,"Pass","Fail")returns one value or another. Nest a second IF inside for three outcomes.=IFERROR(A2/B2,0)hides divide-by-zero and #N/A errors.=AND(...)and=OR(...)combine conditions inside IF.=TEXT(A2,"dd/mm/yyyy")formats a date as text;=TEXT(A2,"0.00")fixes decimals.=TRIM(A2)strips stray spaces, and=PROPER(A2)fixes capitalisation.=LEFT,=RIGHTand=MIDpull out parts of a string;=LENcounts characters.=CONCAT(A2," ",B2)or the&operator joins text.
- Add the lookup functions. Lookups are where most people get stuck, so write the syntax carefully:
=XLOOKUP(A2,Sheet2!A:A,Sheet2!B:B,"Not found")is the modern replacement for VLOOKUP and works left-to-right or right-to-left. It is available in Microsoft 365 and Excel 2021; older versions need VLOOKUP.=VLOOKUP(A2,Sheet2!A:C,3,FALSE)still works everywhere. The final FALSE means exact match, and leaving it out is the single most common cause of wrong answers.=INDEX(C2:C20,MATCH(A2,B2:B20,0))for older files that cannot use XLOOKUP.=HLOOKUPfor data laid out in rows rather than columns.
- Add date and rounding helpers. Include
=TODAY(),=NOW(),=EDATE(A2,3)for three months on,=DATEDIF(A2,B2,"d")for days between dates,=ROUND(A2,2),=ROUNDUPand=ROUNDDOWN. Note in the description that TODAY and NOW update every time the workbook recalculates. - Record the keyboard shortcuts you will actually use. On the Shortcuts tab, group them by task:
- Navigation: Ctrl+Arrow jumps to the edge of data; Ctrl+Home returns to A1; Ctrl+End goes to the last used cell.
- Selection: Shift+Arrow extends a selection; Ctrl+Shift+Arrow selects to the edge; Ctrl+Space selects the column, Shift+Space the row.
- Editing: F2 edits the active cell; Ctrl+Enter fills the selection with what you typed; Alt+Enter starts a new line inside a cell.
- Structure: Ctrl+; inserts today's date; Ctrl+Shift+; inserts the time; Ctrl+D fills down; Ctrl+R fills right.
- Formatting: Ctrl+1 opens Format Cells; Ctrl+Shift+$ applies currency; Ctrl+Shift+% applies percentage.
- View: Ctrl+` (the key left of 1) shows all formulas on the sheet, which is the fastest way to audit a workbook.
- Test every entry against sample data. On the Examples tab, build a small table with names, regions, dates and amounts, then point each formula at it. If a formula returns an error, read the error type before changing anything: #N/A usually means no match, #VALUE! usually means text where a number was expected, and #REF! means a deleted cell reference.
- Add a quick-reference column for error meanings. Write one line each for #N/A, #VALUE!, #REF!, #DIV/0!, #NAME? and #SPILL!. The last one appears when a dynamic array formula has no room to expand; deleting the blocking cells fixes it.
- Format the sheet for fast reading. Bold the function names, put the syntax in one column and a plain-English description in the next, and use Ctrl+1 to set a monospace font for the formula column. Freeze the header row with View > Freeze Panes so it stays visible as you scroll.
- Save and share it. Save to OneDrive or a team folder so the sheet syncs, then share it read-only with anyone who needs it. If you print it, set the page to landscape in Page Layout and use Fit to One Page Wide so the columns do not split across sheets.
Common Mistakes
- Leaving the last argument off VLOOKUP, which turns an exact match into an approximate one and returns wrong values.
- Typing numbers stored as text. A cell that looks like 100 but is left-aligned will not add up; use
=VALUE(A2)or Text to Columns to convert it. - Forgetting the equals sign, so Excel treats the entry as text.
- Mixing commas and semicolons as argument separators. Some regional settings use semicolons; if a formula fails with a syntax error, check your region's list separator.
- Copying a formula without locking references. Press F4 to cycle a reference to $A$1 (absolute) before filling down.
- Assuming a shortcut from Windows works identically on Mac or in Excel for the web. Test it before relying on it.
Tips
- Keep the cheat sheet to one screen per tab. A long list you never read is worse than a short one you use.
- Add your own most-used formula at the top, even if it is not on any official list.
- Use named ranges (Formulas > Define Name) for frequently referenced blocks; formulas become far easier to read.
- Press Ctrl+` to toggle formula view when you inherit an unfamiliar workbook, then press it again to return to values.
- Review the sheet once a quarter and remove anything you have not used.
Troubleshooting
- A formula shows as text. The cell is probably formatted as Text. Select it, press Ctrl+1, choose General, then re-enter the formula.
- XLOOKUP is not recognised. Your Excel version is older than 2021 or the file is in an older format. Use INDEX and MATCH instead, or save as .xlsx in a current version.
- Results do not update. Calculation may be set to Manual. Go to Formulas > Calculation Options and choose Automatic.
- #SPILL! appears. A dynamic array formula has no empty space to expand into. Clear the cells below and to the right, or wrap the formula in a single-cell function.
- A shortcut does nothing. Another program may have claimed it, or your keyboard layout differs. Check the Excel shortcut list for your platform rather than assuming the Windows combination applies.
- The file opens with broken references. Linked workbooks may have moved. Use Data > Edit Links to repoint them, and avoid deleting source files other sheets depend on.
Frequently Asked Questions
Do these formulas work in Excel for the web?
Most do, including SUM, IF, COUNTIF, VLOOKUP and the text functions. XLOOKUP and dynamic arrays are supported in current browsers, but some legacy functions and many keyboard shortcuts are not. Check the function list in the web app if a formula fails.
What is the difference between COUNT and COUNTA?
COUNT counts cells containing numbers. COUNTA counts any cell that is not empty, including text and errors. Use COUNTA for lists of names and COUNT for numeric columns.
Should I learn VLOOKUP or XLOOKUP first?
Learn XLOOKUP if your version supports it, because it handles exact matches by default and can look to the left. Learn VLOOKUP as well, since files shared by others often still use it.
Why does my formula return #N/A?
The lookup value was not found in the source range. Check for trailing spaces with TRIM, confirm both values are the same data type, and make sure the range includes the row you expect.
Can I use these shortcuts on a Mac?
Many map directly by swapping Ctrl for Cmd, but not all. Function-key combinations and a few editing shortcuts differ, so verify each one on your own keyboard before adding it to the sheet.
How often should I update the cheat sheet?
Whenever you find yourself looking up the same function twice. A short review every few months keeps it accurate and stops it filling with entries you never use.