Skip to content

Function cheat sheet

Every function used in the course, with its syntax and the lessons where you practise it.

Math

SUM

SUM(number1, [number2], …)

Adds all the numbers in a range.

SUMIFS

SUMIFS(sum_range, criteria_range1, criteria1, …)

Adds the cells that meet several conditions.

SUMPRODUCT

SUMPRODUCT(array1, [array2], …)

Multiplies matching items and returns the sum of those products.

ROUND

ROUND(number, num_digits)

Rounds a number to a given number of digits.

ROUNDUP

ROUNDUP(number, num_digits)

Rounds a number up, away from zero.

ROUNDDOWN

ROUNDDOWN(number, num_digits)

Rounds a number down, toward zero.

FLOOR

FLOOR(number, significance)

Rounds down to the nearest multiple of significance.

CEILING

CEILING(number, significance)

Rounds up to the nearest multiple of significance.

ODD

ODD(number)

Rounds up to the nearest odd integer.

EVEN

EVEN(number)

Rounds up to the nearest even integer.

ABS

ABS(number)

Returns the absolute value of a number.

SUBTOTAL

SUBTOTAL(function_num, ref1, …)

Sum, count, average… that skips filtered-out rows (109 = SUM).

MOD

MOD(number, divisor)

The remainder after dividing number by divisor.

Statistical

COUNT

COUNT(value1, [value2], …)

Counts cells that contain numbers.

COUNTA

COUNTA(value1, [value2], …)

Counts cells that are not empty.

COUNTBLANK

COUNTBLANK(range)

Counts empty cells in a range.

COUNTIFS

COUNTIFS(criteria_range1, criteria1, …)

Counts cells that meet several conditions.

AVERAGE

AVERAGE(number1, [number2], …)

Returns the arithmetic mean.

AVERAGEIF

AVERAGEIF(range, criteria, [average_range])

Averages cells that meet a condition.

MIN

MIN(number1, [number2], …)

Returns the smallest value.

MEDIAN

MEDIAN(number1, [number2], …)

Returns the middle value.

MODE

MODE(number1, [number2], …)

Returns the most frequent value.

AVERAGEIFS

AVERAGEIFS(average_range, criteria_range1, criteria1, …)

Averages cells that meet several conditions.

MAXIFS

MAXIFS(max_range, criteria_range1, criteria1, …)

Largest value among cells that meet conditions.

MINIFS

MINIFS(min_range, criteria_range1, criteria1, …)

Smallest value among cells that meet conditions.

RANK.EQ

RANK.EQ(number, ref, [order])

Position of a number in a list (0 = largest first).

PERCENTILE

PERCENTILE(array, k)

The k-th percentile (k between 0 and 1).

STDEV.S

STDEV.S(number1, [number2], …)

Standard deviation of a sample: how far values usually sit from the average.

STDEV.P

STDEV.P(number1, [number2], …)

Standard deviation of a whole population.

VAR.S

VAR.S(number1, [number2], …)

Variance of a sample (the standard deviation squared).

Logical

IF

IF(logical_test, value_if_true, [value_if_false])

Returns one value if a test is TRUE and another if FALSE.

IFS

IFS(test1, value1, [test2, value2], …)

Checks conditions in order and returns the first TRUE match.

IFERROR

IFERROR(value, value_if_error)

Returns a fallback when a formula errors.

IFNA

IFNA(value, value_if_na)

Returns a fallback only for #N/A errors.

SWITCH

SWITCH(expression, value1, result1, …, [default])

Matches an expression against a list of values.

AND

AND(logical1, [logical2], …)

TRUE if all arguments are TRUE.

OR

OR(logical1, [logical2], …)

TRUE if any argument is TRUE.

XOR

XOR(logical1, [logical2], …)

TRUE if an odd number of arguments are TRUE.

NOT

NOT(logical)

Reverses TRUE and FALSE.

ISNUMBER

ISNUMBER(value)

TRUE if the value is a number.

ISTEXT

ISTEXT(value)

TRUE if the value is text.

ISBLANK

ISBLANK(value)

TRUE if the cell is empty.

ISERROR

ISERROR(value)

TRUE if the value is any error.

Lookup

VLOOKUP

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Looks down the first column of a table and returns a value from another column.

HLOOKUP

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Looks across the first row of a table and returns a value from another row.

XLOOKUP

XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Finds a value in one range and returns the matching item from another.

MATCH

MATCH(lookup_value, lookup_array, [match_type])

Returns the position of a value in a range.

XMATCH

XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])

Position of a value in a list; exact match by default.

CHOOSE

CHOOSE(index_num, value1, [value2], …)

Picks a value from a list by its position.

Text

MID

MID(text, start_num, num_chars)

Returns characters from the middle of the text.

FIND

FIND(find_text, within_text, [start_num])

Case-sensitive position of text within text.

CONCAT

CONCAT(text1, [text2], …)

Joins text from cells and ranges.

CONCATENATE

CONCATENATE(text1, [text2], …)

Joins text items (legacy).

TEXTJOIN

TEXTJOIN(delimiter, ignore_empty, text1, …)

Joins text with a delimiter.

UPPER

UPPER(text)

Converts text to upper case.

LOWER

LOWER(text)

Converts text to lower case.

PROPER

PROPER(text)

Capitalises the first letter of each word.

CLEAN

CLEAN(text)

Removes non-printable characters.

SUBSTITUTE

SUBSTITUTE(text, old_text, new_text, [instance_num])

Replaces existing text with new text.

TEXTBEFORE

TEXTBEFORE(text, delimiter, [instance_num])

Returns text before a delimiter.

TEXTAFTER

TEXTAFTER(text, delimiter, [instance_num])

Returns text after a delimiter.

VALUE

VALUE(text)

Converts text that looks like a number into a real number.

Date

TODAY

TODAY()

Returns today's date.

DATEDIF

DATEDIF(start_date, end_date, unit)

Difference between two dates in "Y", "M" or "D".

DAYS

DAYS(end_date, start_date)

Number of days between two dates.

EDATE

EDATE(start_date, months)

Date a number of months before or after.

EOMONTH

EOMONTH(start_date, months)

Last day of the month, months away.

WORKDAY

WORKDAY(start_date, days, [holidays])

Date a number of working days away.

YEAR

YEAR(serial_number)

Returns the year of a date.

MONTH

MONTH(serial_number)

Returns the month of a date.

DAY

DAY(serial_number)

Returns the day of a date.

WEEKDAY

WEEKDAY(serial_number, [return_type])

Day of the week as a number (2 = Monday is 1).

NETWORKDAYS

NETWORKDAYS(start_date, end_date, [holidays])

Working days between two dates.

TIME

TIME(hour, minute, second)

Builds a time from hour, minute and second.

HOUR

HOUR(serial_number)

The hour of a time, from 0 to 23.

MINUTE

MINUTE(serial_number)

The minute of a time, from 0 to 59.

Dynamic array

UNIQUE

UNIQUE(array)

Returns the unique values in a range (spills).

FILTER

FILTER(array, include, [if_empty])

Returns rows that meet a condition (spills).

SORT

SORT(array, [sort_index], [sort_order])

Sorts a range (spills).

SEQUENCE

SEQUENCE(rows, [columns], [start], [step])

Generates a list of numbers (spills).

LET

LET(name1, value1, …, calculation)

Names intermediate results inside one formula.

LAMBDA

LAMBDA(parameter1, …, calculation)

Builds a reusable custom function; give it a name in Define Name.

Financial

PMT

PMT(rate, nper, pv, [fv], [type])

Payment for a loan with constant payments and rate.

NPV

NPV(rate, value1, [value2], …)

Net present value of future cash flows.

IRR

IRR(values, [guess])

Internal rate of return for cash flows.

FV

FV(rate, nper, pmt, [pv], [type])

Future value of regular payments.

PV

PV(rate, nper, pmt, [fv], [type])

Present value of regular payments.

NPER

NPER(rate, pmt, pv, [fv], [type])

Number of payment periods.

RATE

RATE(nper, pmt, pv, [fv], [type], [guess])

Interest rate per period.

SLN

SLN(cost, salvage, life)

Straight-line depreciation for one period.

DDB

DDB(cost, salvage, life, period, [factor])

Double-declining-balance depreciation for a given period.

SYD

SYD(cost, salvage, life, per)

Sum-of-years’-digits depreciation for a given period.