Skip to content
Pricing

Excel & Sheets Formula Cheat Sheet

The formulas analysts reach for: syntax, a worked example, and what each is actually for.

  • Free
  • 16 formulas
  • Excel and Google Sheets

Lookup & reference

XLOOKUP

=XLOOKUP(lookup, lookup_range, return_range, [if_not_found])

The modern replacement for VLOOKUP: looks left or right, no column counting, built-in not-found handling.

VLOOKUP

=VLOOKUP(lookup, table, col_index, FALSE)

Finds a value in the first column and returns a value from another column. Always pass FALSE for an exact match.

INDEX + MATCH

=INDEX(return_range, MATCH(lookup, lookup_range, 0))

The flexible lookup: works in any direction and doesn't break when columns are inserted.

IFERROR

=IFERROR(value, value_if_error)

Catches #N/A and other errors and shows something readable instead.

Aggregation & counting

SUMIFS

=SUMIFS(sum_range, crit_range1, crit1, ...)

Sums rows that meet multiple conditions. It is the workhorse of spreadsheet analysis.

COUNTIFS

=COUNTIFS(crit_range1, crit1, ...)

Counts rows meeting several conditions at once.

AVERAGEIFS

=AVERAGEIFS(avg_range, crit_range1, crit1, ...)

Averages only the rows that match your conditions.

SUMPRODUCT

=SUMPRODUCT(range1, range2)

Multiplies ranges element-wise and sums the result. Great for weighted totals.

Text & cleaning

TEXTSPLIT

=TEXTSPLIT(text, delimiter)

Splits one cell into several by a delimiter: the fastest way to break up a messy column.

TRIM

=TRIM(text)

Removes stray leading, trailing and repeated spaces, the number-one cause of failed lookups.

CONCAT / TEXTJOIN

=TEXTJOIN(delimiter, ignore_empty, range)

Joins several cells into one, skipping blanks if you ask it to.

SUBSTITUTE

=SUBSTITUTE(text, old, new)

Replaces text. Handy for stripping symbols before converting to a number.

Logic & dates

IF

=IF(condition, value_if_true, value_if_false)

The basic branch. Nest sparingly, and reach for IFS when you have many conditions.

IFS

=IFS(cond1, val1, cond2, val2, ...)

Cleaner than nested IFs. End with TRUE for the catch-all case.

DATEDIF

=DATEDIF(start, end, unit)

Difference between two dates in days, months or years.

EOMONTH

=EOMONTH(date, months)

Returns the last day of a month, the basis for monthly bucketing.

Works the same in Excel and Google Sheets unless noted. Newer functions (XLOOKUP, TEXTSPLIT) need a recent version.

Other free tools

Spreadsheets to SQL to a new job

Real analyst roles scraped daily from company career pages.

Browse analyst jobs
Raj