toolrota

The 30 most used Excel formulas: examples, explanations and when to use each

Knowing which Excel formula to use when is half the job. Maths, logic, lookup, text, date and dynamic-array formulas gathered in one guide with examples.

Serkan Akyürek··4 min read
The 30 most used Excel formulas: examples, explanations and when to use each – Excel

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 largest

ROUND

=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 cells

COUNTIF 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

  1. Don't type cell references by hand; click the cell.
  2. Use F4 for absolute/mixed references.
  3. Evaluate the formula: follow it step by step with Formulas > Evaluate Formula.
  4. Match parentheses by their colours.
  5. Break nested formulas up: put intermediate results in separate columns and combine later.
  6. If there's an error, see our Excel errors guide to understand the cause.

Which formula when?

NeedFormula
TotalsSUM, SUMIF, SUMIFS
AveragesAVERAGE, MEDIAN, AVERAGEIF
CountingCOUNTIF, COUNTIFS
ConditionsIF, IFS, AND, OR
List lookupVLOOKUP, XLOOKUP, INDEX+MATCH
Text clean-upTRIM, SUBSTITUTE, LEFT/RIGHT
DatesTODAY, EDATE, NETWORKDAYS
Filter and sortFILTER, 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.

Share
Published:
Author
Serkan Akyürek

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.

Related guides

Excel
Excel6 min read

How to build a dashboard in Excel: a step-by-step guide with pivot tables, charts and slicers

A dashboard is an interactive page that shows a summary of your data at a glance. Every step from preparing data to adding pivot tables, charts and slicers.

Excel3 min read

Protect an Excel sheet and password-protect a workbook: locking cells explained

Stop colleagues deleting your formulas by accident and keep a salary sheet away from the wrong eyes. Excel has three layers of protection, and each does a different job.

Excel3 min read

Excel XLOOKUP explained: a more powerful replacement for VLOOKUP

XLOOKUP is the most flexible way to find a value in Excel and return its match. Look left, right and even for the last match with a single formula, without VLOOKUP's limits.

Excel3 min read

Excel error codes and how to fix them: #N/A, #VALUE!, #REF!, #DIV/0! and more

Seeing a code starting with # instead of a result is annoying, but every error code tells you what went wrong. Here are the most common Excel errors and their reliable fixes.

Excel3 min read

How to create a PivotTable in Excel: a step-by-step beginner's guide

Want to summarise thousands of sales rows by region, product and month in a few clicks? A PivotTable is the fastest way to do it without writing a single formula.

AI5 min read

AI tools guide: choosing by category for writing, images, audio, video, code and productivity

There are hundreds of AI tools; which does what? We grouped them by category and collected what each does, how to choose and what to watch for in a long guide.