WeCodeAcademy

Excel Function Reference

Excel functions with what they do, their syntax and a worked example. Every example runs in the browser engine used by the Excel course; press Run to see the sheet.

80 of 80
FunctionGroupDescription
SUMMathAdds the numbers in the cells or ranges.
AVERAGEStatisticsThe mean of the numbers.
MINStatisticsThe smallest number.
MAXStatisticsThe largest number.
MEDIANStatisticsThe middle value when the numbers are sorted.
MODEStatisticsThe value that appears most often.
STDEV.SStatisticsStandard deviation of a sample (divides by n - 1).
STDEV.PStatisticsStandard deviation of a whole population (divides by n).
LARGEStatisticsThe k-th largest number: 1 is the biggest, 2 the next.
SMALLStatisticsThe k-th smallest number.
RANKStatisticsThe position of a number in a list, largest first by default.
COUNTStatisticsCounts the cells that hold numbers.
COUNTAStatisticsCounts the cells that are not empty.
COUNTBLANKStatisticsCounts the empty cells in a range.
SUMPRODUCTMathMultiplies matching items of the ranges and adds the results.
ROUNDMathRounds a number to a number of decimals.
ROUNDUPMathRounds a number up, away from zero.
ROUNDDOWNMathRounds a number down, towards zero.
ABSMathThe size of a number without its sign.
INTMathRounds down to the nearest whole number.
SQRTMathThe square root of a number.
POWERMathRaises a number to a power.
MODMathThe remainder after dividing.
PIMathThe number pi, 3.14159...
RANDMathA random decimal between 0 and 1. It changes every time the sheet recalculates.
RANDBETWEENMathA random whole number between two limits, inclusive.
IFLogicalReturns one value when a test is true and another when it is false.
IFSLogicalTests several conditions in order and returns the value for the first one that is true.
IFERRORLogicalReturns a fallback value when a formula gives an error.
ANDLogicalTrue only when every condition is true.
ORLogicalTrue when at least one condition is true.
NOTLogicalReverses true and false.
XORLogicalTrue when an odd number of conditions are true. With two conditions: exactly one.
ISNUMBERLogicalTrue when the value is a number.
ISTEXTLogicalTrue when the value is text.
ISBLANKLogicalTrue when the cell is empty.
ISERRORLogicalTrue when the value is an error such as #DIV/0!.
SUMIFConditionalAdds the cells that meet one condition.
SUMIFSConditionalAdds the cells that meet several conditions.
COUNTIFConditionalCounts the cells that meet one condition.
COUNTIFSConditionalCounts the cells that meet several conditions.
AVERAGEIFConditionalThe average of the cells that meet one condition.
AVERAGEIFSConditionalThe average of the cells that meet several conditions.
MAXIFSConditionalThe largest value among the cells that meet the conditions.
MINIFSConditionalThe smallest value among the cells that meet the conditions.
VLOOKUPLookupFinds a value in the first column of a table and returns a value from the same row.
HLOOKUPLookupFinds a value in the top row of a table and returns a value from the same column.
XLOOKUPLookupFinds a value in one range and returns the matching value from another. It can look to the left and can give a fallback.
MATCHLookupThe position of a value in a range.
INDEXLookupThe value at a position in a range.
INDEX MATCHLookupINDEX and MATCH together: find the position of a value, then return a cell from another column. It works in any direction.
SORTDynamic arraysReturns a table sorted by a column (1 for smallest first, -1 for largest first). The result fills the empty cells below and beside the formula.
FILTERDynamic arraysReturns only the rows that meet a condition.
UNIQUEDynamic arraysReturns each different value once.
LEFTTextThe first characters of a text.
RIGHTTextThe last characters of a text.
MIDTextCharacters from the middle of a text.
LENTextThe number of characters in a text.
UPPERTextConverts text to capital letters.
LOWERTextConverts text to small letters.
PROPERTextCapitalises the first letter of each word.
TRIMTextRemoves extra spaces from the ends and between words.
CONCATTextJoins texts and ranges into one.
TEXTJOINTextJoins a range of texts with a separator, optionally skipping empty cells.
SUBSTITUTETextReplaces text inside a text.
FINDTextThe position of one text inside another (case sensitive).
SEARCHTextThe position of one text inside another (ignores capitals).
VALUETextConverts text that looks like a number into a number.
REPTTextRepeats a text a number of times. Handy for text bars.
TEXTTextTurns a number or date into text with a format.
DATEDateBuilds a date from a year, month and day.
YEARDateThe year of a date.
MONTHDateThe month of a date, 1 to 12.
DAYDateThe day of the month of a date.
TODAYDateToday's date. It changes every day.
DATEDIFDateComplete years ("Y"), months ("M") or days ("D") between two dates.
NETWORKDAYSDateThe number of working days (Monday to Friday) between two dates, both included.
PMTFinancialThe regular payment on a loan with a fixed rate. The result is negative because it is money paid out.
FVFinancialThe future value of regular payments at a fixed rate.
NPVFinancialThe present value of future cash flows at a discount rate. Add an initial investment (paid now) separately.