Function guides

The 60 functions that come up most in employer Excel tests. Each guide has the syntax, worked examples on a small grid, the mistakes that cost points, and what a test is likely to ask.

More guides: what each Excel error means, how-to guides for menu tasks and 25 sample test questions with answers.

Math

Totals, rounding and the arithmetic helpers behind every budget and invoice.

FunctionWhat it does
SUMAdds numbers, cell references and ranges.
SUMIFAdds the values in a range that meet one condition.
SUMIFSAdds the values in a range that meet every one of several conditions.
ROUNDRounds a number to a set number of decimal places.
ROUNDUPRounds a number up, away from zero, to a set number of digits.
ROUNDDOWNRounds a number toward zero to a set number of digits.
ABSReturns the absolute value of a number, its distance from zero.
INTRounds a number down to the nearest integer.
MODReturns the remainder after one number is divided by another.
SUMPRODUCTMultiplies matching items in ranges and adds the products.

Statistical

Counting, averaging, ranking and the conditional versions of each.

FunctionWhat it does
AVERAGEReturns the arithmetic mean of numbers.
MAXReturns the largest number in a set. MIN returns the smallest.
COUNTCounts the cells that contain numbers.
COUNTACounts the cells that are not empty.
COUNTIFCounts the cells in a range that meet one condition.
COUNTIFSCounts the rows that meet every one of several conditions.
MINReturns the smallest number in a set.
COUNTBLANKCounts the empty cells in a range.
AVERAGEIFAverages the values in a range that meet one condition.
AVERAGEIFSAverages the values in a range that meet every one of several conditions.
LARGEReturns the k-th largest value in a range.
SMALLReturns the k-th smallest value in a range.
RANK.EQReturns the rank of a number within a list, with ties sharing the same rank.
MEDIANReturns the middle value of a set of numbers.

Logical

Decisions: IF and its relatives, plus error handling.

FunctionWhat it does
IFReturns one value if a condition is true and another if it is false.
ANDReturns TRUE only if every condition is true.
IFSChecks conditions in order and returns the value for the first one that is true.
IFERRORReturns a value you choose when a formula results in an error.
IFNAReturns a value you choose when a formula results in
NOTReverses TRUE to FALSE and FALSE to TRUE.
ORReturns TRUE if any one of the conditions is true.

Lookup

Finding a value in a table and returning something from the same row.

FunctionWhat it does
VLOOKUPFinds a value in the first column of a table and returns a value from another column in the same row.
XLOOKUPFinds a value in one range and returns the matching item from another range.
INDEXReturns the value at a given row and column position in a range.
MATCHReturns the position of a value within a row or column.
HLOOKUPFinds a value in the top row of a table and returns a value from a row below it.
FILTERReturns the rows of a range that meet a condition, spilling the results into neighboring cells.
SORTReturns a sorted copy of a range, spilling the results into neighboring cells.
UNIQUEReturns the distinct values in a range, removing duplicates.

Text

Cleaning, splitting, joining and reformatting text.

FunctionWhat it does
TRIMRemoves extra spaces from text, leaving single spaces between words.
LEFTReturns a number of characters from the start of text.
CONCATJoins text from several cells or ranges into one string.
TEXTJOINJoins text from a range with a delimiter between each item, optionally skipping blanks.
MIDReturns characters from the middle of text, starting at a position you choose.
RIGHTReturns a number of characters from the end of text.
LENReturns the number of characters in text.
FINDReturns the position of one text string inside another, matching case exactly.
SEARCHReturns the position of one text string inside another, ignoring case and allowing wildcards.
SUBSTITUTEReplaces specific text inside a string with new text.
UPPERConverts text to uppercase.
TEXTConverts a number or date to text in a number format you specify.
VALUEConverts text that looks like a number into a real number.

Date

Dates, deadlines, working days and the gaps between them.

FunctionWhat it does
TODAYReturns the current date, updated every time the workbook recalculates.
DATEBuilds a date from separate year, month and day numbers.
YEARReturns the year of a date as a four-digit number.
MONTHReturns the month of a date as a number from 1 to 12.
EOMONTHReturns the last day of the month, a given number of months before or after a date.
EDATEReturns the date that is a given number of months before or after a start date.
NETWORKDAYSCounts the working days between two dates, excluding weekends and optionally holidays.
DATEDIFReturns the number of complete years, months or days between two dates.