Functions

What are Functions in Excel?

Functions in Excel are predefined formulas that perform specific calculations or operations on data. Here are the key points about Excel functions:

Basic Concept

Excel functions are preset formulas that help perform mathematical, statistical, and logical operations. They allow you to quickly and easily perform complex calculations that would be time-consuming to do manually.

Structure

  • Functions start with an equal sign (=) followed by the function name and parentheses containing the arguments

What are types of Functions exist in Excel?

  • Mathematical functions (e.g., SUM, PRODUCT)
  • Statistical functions (e.g., AVERAGE, STDEV)
  • Logical functions (e.g., IF, AND, OR)
  • Text functions (e.g., CONCATENATE, LEFT, RIGHT)
  • Date and time functions (e.g., NOW, DATE, YEAR)
  • Lookup and reference functions (e.g., VLOOKUP, INDEX, MATCH)

Using Functions

To use a function:

  1. Select the cell where you want the result
  2. Type = followed by the function name
  3. Enter the arguments in parentheses
  4. Press Enter to calculate the result

Functions are a powerful feature of Excel that can significantly enhance your data analysis and calculation capabilities.

A Comprehensive List of Functions by Category

Math and Trigonometry Functions

Statistical Functions

FunctionDescription
MEDIANReturns the median (middle value) of a set of numbers
MODEReturns the most frequently occurring value in a range
STDEVCalculates the standard deviation of a sample
VARCalculates the variance of a sample
LARGEReturns the k-th largest value in a dataset
SMALLReturns the k-th smallest value in a dataset
PERCENTILEReturns the k-th percentile of a range of data
QUARTILEReturns the specified quartile of a dataset
RANKReturns the rank of a number in a list of numbers
CORRELCalculates the correlation coefficient between two datasets
FORECASTPredicts a future value based on existing values

Logical Functions

FunctionDescription
IFPerforms a logical test and returns one value for TRUE, another for FALSE
ANDReturns TRUE if all arguments are TRUE, FALSE otherwise
ORReturns TRUE if any argument is TRUE, FALSE otherwise
NOTReverses the logical value of its argument
XORReturns TRUE if an odd number of arguments are TRUE, FALSE otherwise
IFERRORReturns a specified value if a formula evaluates to an error, otherwise returns the formula’s result
IFSChecks multiple conditions and returns a value corresponding to the first TRUE condition
SWITCHEvaluates an expression against a list of values and returns the result corresponding to the first matching value

Text Functions

FunctionDescription
LENReturns the number of characters in a text string
LEFTReturns a specified number of characters from the start of a text string
RIGHTReturns a specified number of characters from the end of a text string
MIDReturns a specific number of characters from a text string, starting at a specified position
CONCATENATEJoins two or more text strings into one string
TEXTJOINCombines text from multiple ranges with a specified delimiter
TRIMRemoves all spaces from text except for single spaces between words
UPPERConverts text to uppercase
LOWERConverts text to lowercase
PROPERCapitalizes the first letter of each word in a text string
SUBSTITUTEReplaces old text with new text in a string
FINDFinds one text string within another (case-sensitive)
SEARCHFinds one text string within another (not case-sensitive)

Date and Time Functions

FunctionDescription
TODAYReturns the current date
NOWReturns the current date and time
YEARReturns the year of a date value
MONTHReturns the month of a date value
DAYReturns the day of a date value
WEEKDAYReturns the day of the week for a date value
WORKDAYReturns a date that is a specified number of workdays before or after a given date
NETWORKDAYSReturns the number of whole working days between two dates
DATEDIFCalculates the number of days, months, or years between two dates
EDATEReturns a date that is a specified number of months before or after a start date
EOMONTHReturns the last day of the month, a specified number of months before or after a start date

Lookup and Reference Functions

FunctionDescription
VLOOKUPLooks up a value in the first column of a table and returns a value in the same row from a specified column
HLOOKUPLooks up a value in the top row of a table and returns a value in the same column from a specified row
INDEXReturns a value or reference of the cell at the intersection of a particular row and column in a range
MATCHSearches for a specified item in a range of cells and returns its relative position
OFFSETReturns a reference to a range that is offset from a given cell or range by a specified number of rows and columns
INDIRECTReturns the reference specified by a text string
ADDRESSCreates a cell reference as text, given row and column numbers
ROWReturns the row number of a reference
COLUMNReturns the column number of a reference

Financial Functions

FunctionDescription
PVCalculates the present value of an investment
FVCalculates the future value of an investment
PMTCalculates the payment for a loan based on constant payments and a constant interest rate
RATEReturns the interest rate per period of an annuity
NPERReturns the number of periods for an investment
NPVCalculates the net present value of an investment using a discount rate and a series of future payments and income
IRRCalculates the internal rate of return for a series of cash flows
XIRRReturns the internal rate of return for a schedule of cash flows that is not necessarily periodic
XNPVReturns the net present value for a schedule of cash flows that is not necessarily periodic
SLNReturns the straight-line depreciation of an asset for one period
DBReturns the depreciation of an asset for a specified period using the fixed-declining balance method

Information Functions

FunctionDescription
ISBLANKReturns TRUE if the referenced cell is empty
ISERRReturns TRUE if the value is any error value except #N/A
ISERRORReturns TRUE if the value is any error value
ISEVENReturns TRUE if the number is even
ISODDReturns TRUE if the number is odd
ISTEXTReturns TRUE if the value is text
ISNUMBERReturns TRUE if the value is a number
ISNAReturns TRUE if the value is the #N/A error value
ISREFReturns TRUE if the value is a reference
TYPEReturns a number indicating the data type of a value

Web Functions

FunctionDescription
ENCODEURLReturns a URL-encoded string
WEBSERVICERetrieves data from a web service
FILTERXMLReturns specific data from XML content using an XPath expression

Database Functions

FunctionDescription
DSUMAdds the numbers in a field of records in a list or database that match conditions you specify
DCOUNTCounts the cells containing numbers in a field of records in a list or database that match conditions you specify
DMAXReturns the largest number in a field of records in a list or database that match conditions you specify
DMINReturns the smallest number in a field of records in a list or database that match conditions you specify
DAVERAGEAverages the values in a field of records in a list or database that match conditions you specify

Engineering Functions

FunctionDescription
BIN2DECConverts a binary number to decimal
DEC2BINConverts a decimal number to binary
HEX2DECConverts a hexadecimal number to decimal
DEC2HEXConverts a decimal number to hexadecimal
OCT2DECConverts an octal number to decimal
DEC2OCTConverts a decimal number to octal

Cube Functions

FunctionDescription
CUBEKPIMEMBERReturns a key performance indicator (KPI) property and displays the KPI name in the cell
CUBEMEMBERReturns a member or tuple from the cube
CUBEMEMBERPROPERTYReturns the value of a member property from the cube
CUBERANKEDMEMBERReturns the nth ranked member in a set
CUBESETDefines a calculated set of members or tuples by sending a set expression to the cube on the server

Array Functions

FunctionDescription
TRANSPOSEReturns a vertical range of cells as a horizontal range, or vice versa
MMULTReturns the matrix product of two arrays
MUNITReturns the unit matrix for the specified dimension

Compatibility Functions

FunctionDescription
BETADISTReturns the cumulative beta probability density function
BETAINVReturns the inverse of the cumulative beta probability density function
BINOMDISTReturns the individual term binomial distribution probability
CHIDISTReturns the one-tailed probability of the chi-squared distribution
CHIINVReturns the inverse of the one-tailed probability of the chi-squared distribution
CHITESTReturns the test for independence
FDISTReturns the F probability distribution
FINVReturns the inverse of the F probability distribution
FTESTReturns the result of an F-test
GAMMADISTReturns the gamma distribution
GAMMAINVReturns the inverse of the gamma cumulative distribution
GAMMALNReturns the natural logarithm of the gamma function
HYPGEOMDISTReturns the hypergeometric distribution
LOGINVReturns the inverse of the lognormal distribution
LOGNORMDISTReturns the cumulative lognormal distribution
NEGBINOMDISTReturns the negative binomial distribution
NORMDISTReturns the normal cumulative distribution
NORMINVReturns the inverse of the normal cumulative distribution
NORMSDISTReturns the standard normal cumulative distribution
NORMSINVReturns the inverse of the standard normal cumulative distribution
PERCENTRANKReturns the percentage rank of a value in a dataset
POISSONReturns the Poisson distribution
RANKReturns the rank of a number in a list of numbers
STDEVEstimates standard deviation based on a sample
STDEVPCalculates standard deviation based on the entire population
TDISTReturns the Student’s t-distribution
TINVReturns the inverse of the Student’s t-distribution
TTESTReturns the probability associated with a Student’s t-test
VAREstimates variance based on a sample
VARPCalculates variance based on the entire population
WEIBULLReturns the Weibull distribution
ZTESTReturns the two-tailed P-value of a z-test