
Excel has hundreds of functions but most everyday jobs are solved with a small share of them. In this guide we explain the 30 most used formulas in categories, with examples. Function names can differ by version and language; in some language versions arguments are separated by semicolons.
1. Maths and totalling formulas
SUM
=SUM(B2:B50)Adds the numbers in a range. You can give several ranges: =SUM(B2:B10,D2:D10).
SUMIF and SUMIFS
=SUMIF(A2:A50,"London",C2:C50)
=SUMIFS(C2:C50,A2:A50,"London",B2:B50,">=1000")The total of rows that meet a condition. For several conditions use SUMIFS (see our SUMIFS guide).
AVERAGE and AVERAGEIF
=AVERAGE(B2:B50)
=AVERAGEIF(A2:A50,"London",B2:B50)With outliers, MEDIAN gives a better summary (see our average guide).
MAX, MIN, LARGE, SMALL
=MAX(B2:B50) largest
=MIN(B2:B50) smallest
=LARGE(B2:B50,3) third largestROUND
=ROUND(A2,2)Rounds the real value (see our rounding guide).
SUMPRODUCT
=SUMPRODUCT(B2:B10,C2:C10)Ideal for quantity × price totals or a weighted average.
2. Counting formulas
COUNT and COUNTA
=COUNT(B2:B50) cells containing numbers
=COUNTA(A2:A50) non-empty cellsCOUNTIF and COUNTIFS
=COUNTIF(A2:A50,"London")
=COUNTIFS(A2:A50,"London",C2:C50,">1000")Count records that meet a condition (see our COUNTIF guide).
COUNTBLANK
=COUNTBLANK(A2:A50)The number of empty cells; useful to find missing data.
3. Logical formulas
IF
=IF(B2>=50,"Pass","Fail")Gives one of two results by condition. It can be nested but gets hard to read at many levels.
AND, OR
=IF(AND(B2>=50,C2>=50),"Pass","Fail")
=IF(OR(A2="London",A2="Leeds"),"Big city","Other")Combine several conditions (see our IF, AND, OR guide).
IFERROR
=IFERROR(B2/C2,0)Shows the given value if an error occurs. Remember to fix the cause first.
IFS
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"D")More readable than many nested IFs (Microsoft 365 and newer versions).
4. Lookup and reference formulas
VLOOKUP
=VLOOKUP(A2,$E$2:$G$100,3,FALSE)Searches the first column of a list and returns a value from the same row (see our VLOOKUP guide).
XLOOKUP
=XLOOKUP(A2,E:E,G:G,"Not found")Can also look left and does an exact match by default (see our XLOOKUP guide).
INDEX and MATCH
=INDEX(G2:G100,MATCH(A2,E2:E100,0))A flexible lookup that doesn't break when columns are inserted (see our INDEX MATCH guide).
Presence check with COUNTIF
=IF(COUNTIF(E:E,A2)>0,"Present","Missing")5. Text formulas
LEFT, RIGHT, MID
=LEFT(A2,3)
=RIGHT(A2,4)
=MID(A2,4,5)TRIM and SUBSTITUTE
=TRIM(A2)
=SUBSTITUTE(A2,"-","/")Remove extra spaces and replace text (see our text functions guide).
TEXTJOIN
=TEXTJOIN(" ",TRUE,A2:C2)Joins cells with a separator and skips blank cells.
TEXT
=TEXT(A2,"dd/mm/yyyy")Converts a number or date to text in the format you want.
6. Date formulas
TODAY and NOW
=TODAY()
=NOW()EDATE, NETWORKDAYS
=EDATE(A2,3)
=NETWORKDAYS(A2,B2)Adding months and working-day counts (see our date functions and working days guides).
7. Modern and dynamic-array formulas (Microsoft 365)
FILTER
=FILTER(A2:C100,B2:B100="London")SORT and UNIQUE
=SORT(A2:C100,3,-1)
=UNIQUE(B2:B100)Results spill into neighbouring cells and update when the source changes (see our sorting and filtering guide).
TEXTSPLIT
=TEXTSPLIT(A2," ")Explained in detail in our text splitting guide.
Tips when writing formulas
- Don't type cell references by hand; click the cell.
- Use F4 for absolute/mixed references.
- Evaluate the formula: follow it step by step with Formulas > Evaluate Formula.
- Match parentheses by their colours.
- Break nested formulas up: put intermediate results in separate columns and combine later.
- If there's an error, see our Excel errors guide to understand the cause.
Which formula when?
| Need | Formula |
|---|---|
| Totals | SUM, SUMIF, SUMIFS |
| Averages | AVERAGE, MEDIAN, AVERAGEIF |
| Counting | COUNTIF, COUNTIFS |
| Conditions | IF, IFS, AND, OR |
| List lookup | VLOOKUP, XLOOKUP, INDEX+MATCH |
| Text clean-up | TRIM, SUBSTITUTE, LEFT/RIGHT |
| Dates | TODAY, EDATE, NETWORKDAYS |
| Filter and sort | FILTER, SORT, UNIQUE |
Summary
Learning these 30 formulas is enough to solve most of your daily Excel work. First settle sums, counts and IF; then move to lookup formulas and dynamic arrays. Try each formula on your own data and verify the results by hand in a row or two.
Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.