Excel Formulas and Functions Cheat Sheet
Excel Formulas and Functions Cheat Sheet
Courtesy: ExcelDemy.com
IS FUNCTIONS CONDITIONAL MATHEMATICAL FIND & SEARCH LOOKUP REFERENCE DATE & TIME MISC. RANK
ISBLANK AVERAGEIF SUM FIND MATCH ADDRESS DATE AREAS RANK
ISERR SUMIF AVERAGE SEARCH LOOKUP CHOOSE DATEVALUE CHAR RANK.AVG
ISERROR COUNTIF AVERAGEA SUBSTITUTE HLOOKUP INDEX TIME CODE RANK.EQ
ISEVEN AVERAGEIFS COUNT REPLACE VLOOKUP INDIRECT TIMEVALUE CLEAN
ISODD SUMIFS COUNTA OFFSET NOW TRIM
ISFORMULA COUNTIFS MEDIAN TODAY LEN
ISLOGICAL IF SUMPRODUCT YEAR COLUMN
ISNA IFERROR SUMSQ MONTH ROW
ISNUMBER IFNA COUNTBLANK DAY EXACT
ISREF EVEN HOUR FORMULATEXT
ISTEXT ODD MINUTE LEFT
ISNONTEXT INT SECOND RIGHT
LARGE WEEKDAY MID
SMALL DAYS LOWER
MAX NETWORKDAYS PROPER
MAXA WORKDAY UPPER
MIN REPT
MINA SHEET
MOD SHEETS
RAND TRANSPOSE
RANDBETWEEN TYPE
SQRT VALUE
SUBTOTAL
Courtesy: ExcelDemy.com
LOGICAL
AND
NOT
OR
XOR
ISBLANK(value)
If a cell is blank, it returns TRUE.
If a cell is not blank, it returns FALSE.
ISERR(value)
Checks whether a value is an error (#VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!) excluding #N/A, and returns TRUE or F
ISERROR(value)
Checks whether a value is an error (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!), and returns TRUE or FALSE
ISEVEN(value)
Retursn TRUE if the number is even
ISODD(value)
Retursn TRUE if the number is odd
ISFORMULA(value)
Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE
ISLOGICAL(value)
Checks whether a values is a logical value (TRUE or FALSE), and returns TRUE or FALSE
ISNA(value)
Checks whether a value is #N/A, and returns TRUE or FALSE
ISREF(value)
Checks whether a value is a reference, and returns TRUE or FALSE
ISTEXT(value)
Checks whether a value is text, and returns TRUE or FALSE
ISNONTEXT(value)
Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE
Remarks
Cell B7 is not blank, so returns FALSE
Cell B8 is not blank, so returns FALSE
Cell B9 is not blank, so returns FALSE
Cell B10 is blank, so returns TRUE
Cell B11 is not blank, it has a space character in it; so returns FALSE
Cell B12 is not blank, so it returns FALSE
Remarks
Cell B19 has #VALUE! type error, so the formula returns TRUE
Cell B20 has #REF! type error, so the formula returns TRUE
Cell B21 has #DIV/0!! type error, so the formula returns TRUE
Cell B22 has #NUM! type error, so the formula returns TRUE
Cell B23 has #NAME? type error, so the formula returns TRUE
Cell B24 has #NULL! type error, so the formula returns TRUE
Cell B19 has #N/A type error, so the formula returns FALSE
Cell 25 has a text, so the formula returns FALSE
Remarks
Cell B33 has #VALUE! type error, so the formula returns TRUE
Cell B34 has #REF! type error, so the formula returns TRUE
Cell B35 has #DIV/0!! type error, so the formula returns TRUE
Cell B36 has #NUM! type error, so the formula returns TRUE
Cell B37 has #NAME? type error, so the formula returns TRUE
Cell B38 has #NULL! type error, so the formula returns TRUE
Cell B39 has #N/A type error, so the formula returns TRUE
Cell 40 has a text, so the formula returns FALSE
Remarks
The number is not even, so the formula returns FALSE.
The number is even, so the formula returns TRUE.
The cell has a text value, so the formula returns the #VALUE! type error.
The cell has a text value, so the formula returns the #VALUE! type error.
Remarks
The number is odd, so the formula returns FALSE.
The number is not odd, so the formula returns TRUE.
The cell has a text value, so the formula returns the #VALUE! type error.
The cell has a text value, so the formula returns the #VALUE! type error.
Remarks
The cell B72 holds formula =TODAY(), so the formula returns TRUE.
The cell B73 holds a date value, so the formula returns FALSE.
The cell B74 holds =NOW() formula, so the formula returns TRUE.
The cell B75 holds a text, so the formula returns FALSE.
The cell B76 holds a text, so the formula returns FALSE.
Remarks
The cell B84 holds logical value TRUE, so the formula returns TRUE.
The cell B85 holds logical value FALSE, so the formula returns TRUE.
The cell B86 holds a text value, so the formula returns FALSE.
B1=B2 will return either TRUE or FALSE, so the formula will return TRUE.
Remarks
Cell B95 holds #VALUE! type error, so the formula returns FALSE.
Cell B96 holds #REF! type error, so the formula returns FALSE.
Cell B97 holds #NAME? type error, so the formula returns FALSE.
Cell B98 holds #N/A type error, so the formula returns TRUE.
Remarks
Cell B106 holds a text value, so the formula returns FALSE.
Cell B107 holds value 15, so the formula returns TRUE.
Cell B108 holds #VALUE! type error, so the formula returns FALSE.
Cell B109 holds value 89 (though it is formatted as a text value), so the formula returns TRUE.
Cell B110 holds a date value and a date is a number in Excel system, so the formula returns TRUE.
Remarks
B1 is a cell reference, so the formula returns TRUE.
B1: B10 is range reference, so the formula returns TRUE.
B1: D4 C1: C5 results in an intersection, so the formula returns TRUE.
As 'B1' is not a cell reference.
As INDIRECT() function returns a reference specified by the text string you use as the argument.
Remarks
Cell B130 holds a text value, so the formula returns TRUE.
Cell B131 holds a text value, so the formula returns TRUE.
Cell B132 holds an error value, so the formula returns FALSE.
Cell B133 holds a number value, so the formula returns FALSE.
Remarks
Cell B141 holds a non-text value, so the formula returns TRUE.
Cell B142 holds a text value, so the formula returns FALSE.
Cell B143 holds a non-text value, so the formula returns TRUE.
Cell B144 holds a non-text value, so the formula returns TRUE.
=AVERAGEIF(range, criteria, [average_range])
Finds average (arithmetic mean) for the cells specified by a given condition or criteria
Region Sales
East 500
West 50
North 100
South 25
Mid West 200
South New Office 30
East 35
West 50
South 15
North 25
North New Office 40 Cells in range that contain TRUE or FALSE are ignored.
5 50 If a cell in average_range is an empty cell, AVERAGEIF ignores it.
5 100 If range is a blank or text value, AVERAGEIF returns the #DIV0! erro
2 200 If a cell in criteria is empty, AVERAGEIF treats it as a 0 value.
4 35 If no cells in the range meet the criteria, AVERAGEIF returns the #D
You can use the wildcard characters, question mark (?) and asterisk
2 45 characters. If you want to find an actual question mark or asterisk, typ
4 50 Average_range does not have to be the same size and shape as ra
1 90 beginning cell, and then including cells that correspond in size and sh
0 100
1 125
1 115
0 55
Region Sales
East 500
West 50
North 100
South 25
Mid West 200
South New Office 30
East 35
West 50
South 15
North 25
North New Office 40 The SUMIF function returns incorrect results when you use it to ma
5 50
5 100 The sum_range argument does not have to be the same size and sh
in the sum_range argument as the beginning cell, and then including
The SUMIF function returns incorrect results when you use it to ma
COUNTIF(range, criteria)
Counts the number of cells within a range that meet the given condition
Region Sales
East 500
West 50
North 100
South 25
Mid West 200
Orange Jon 4
Apple Marissa 12
Carrot Kawser 5
Banana Khan 13
Apple Tom 15
Banana Jon 14 If average_range is a blank or text value, AVERAGEIFS returns the #
Carrot Kawser 12 If a cell in a criteria range is empty, AVERAGEIFS treats it as a 0 valu
Cells in range that contain TRUE evaluate as 1; cells in range that co
Orange Jon 8
neglected.
Carrot Marissa 9 Each cell in average_range is used in the average calculation only if
Apple Tom 15 Unlike the range and criteria arguments in the AVERAGEIF function
Banana Jon 20 If cells in average_range cannot be translated into numbers, AVERA
Carrot Marissa 25 If there are no cells that meet all the criteria, AVERAGEIFS returns t
You can use the wildcard characters, question mark (?) and asterisk
characters. If you want to find an actual question mark or asterisk, typ
Back to LIST OF FUNCTIONS
Orange Jon 4
Apple Marissa 12
Carrot Kawser 5
Banana Khan 13
Apple Tom 15
Banana Jon 14
Carrot Kawser 12
Orange Jon 8
Carrot Marissa 9
Apple Tom 15
Banana Jon 20
Carrot Marissa 25
Apple Tom 10
Orange Jon 4
Apple Marissa 12
Carrot Kawser 5
Banana Khan 13
Apple Tom 15
Banana Jon 14 Each range's criteria is applied one cell at a time. If all of the first ce
criteria, the count increases by 1 again, and so on until all of the cells
Carrot Kawser 12
If the criteria argument is a reference to an empty cell, the COUNT
Orange Jon 8
You can use the wildcard characters— the question mark (?) and as
Carrot Marissa 9 of characters. If you want to find an actual question mark or asterisk,
Apple Tom 15
Banana Jon 20
Carrot Marissa 25
500 900
525 925
IFERROR(value, value_if_error)
Returns value_if_error if expression is an error and the value of the expression itself otherwise
55 0
25
Rampura 1219
Gulshan 1217
Dhamrai 1203
Motijheel 1200
If Value or Value_if_na is an empty cell, IFNA treats it as an empty s
Khilgaon 1000 If Value is an array formula, IFNA returns an array of results for each
Courtesy: ExcelDemy.com
teria, [average_range])
specified by a given condition or criteria
Formula Result
=AVERAGEIF(B6:B27, "East", C6:C27) 267.5
=AVERAGEIF(B6:B27, "North", C6:C27) 62.5
=AVERAGEIF(B6:B27, "North*", C6:C27) 55
=AVERAGEIF(B6:B27, "*New Office", C6:C27) 35
=AVERAGEIF(B6:B27, ">=4", C6:C27) 58.75
=AVERAGEIF(C6:C27,">100") 228
=AVERAGEIF(B6:B27, 1, C6:C27) 110
=AVERAGEIF(B6:B27, 0, C6:C27) 77.5
Warnings
Cells in range that contain TRUE or FALSE are ignored.
If a cell in average_range is an empty cell, AVERAGEIF ignores it.
If range is a blank or text value, AVERAGEIF returns the #DIV0! error value.
If a cell in criteria is empty, AVERAGEIF treats it as a 0 value.
If no cells in the range meet the criteria, AVERAGEIF returns the #DIV/0! error value.
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria. A question mark matches any single cha
characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.
Average_range does not have to be the same size and shape as range. The actual cells that are averaged are determined b
beginning cell, and then including cells that correspond in size and shape to range.
[sum_range])
Formula Result
=SUMIF(B36:B57, "East", C36:C57) 535
=SUMIF(B36:B57, "North", C36:C57) 125
=SUMIF(B36:B57, "North*", C36:C57) 165
=SUMIF(B36:B57, "*New Office", C36:C57) 70
=SUMIF(B36:B57, ">=4", C36:C57) 235
=SUMIF(B36:B57, 5, C36:C57) 150
=SUMIF(B36:B57, 1, C36:C57) 330
=SUMIF(B36:B57, 0, C36:C57) 155
Warnings
The SUMIF function returns incorrect results when you use it to match strings longer than 255 characters or to the string #
The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are ad
in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range arg
Warnings
The SUMIF function returns incorrect results when you use it to match strings longer than 255 characters or to the string #
The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are ad
in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range arg
Formula Result
=COUNTIF(B66:B87, "East") 2
=COUNTIF(B66:B87, "North") 2
=COUNTIF(C66:C87,">=100") 8
=COUNTIF(C66:C87, "<="&C68) 17
=COUNTIF(B66:B87, "No*") 3
=COUNTIF(B66:B87, "Ea??") 2
Warnings
The COUNTIF function returns incorrect results when you use it to match strings longer than 255 characters.
Warnings
If average_range is a blank or text value, AVERAGEIFS returns the #DIV0! error value.
If a cell in a criteria range is empty, AVERAGEIFS treats it as a 0 value.
Cells in range that contain TRUE evaluate as 1; cells in range that contain FALSE evaluate as 0 (zero). *Remember in AVERAG
neglected.
Each cell in average_range is used in the average calculation only if all of the corresponding criteria specified are true for th
Unlike the range and criteria arguments in the AVERAGEIF function, in AVERAGEIFS each criteria_range must be the same s
If cells in average_range cannot be translated into numbers, AVERAGEIFS returns the #DIV0! error value.
If there are no cells that meet all the criteria, AVERAGEIFS returns the #DIV/0! error value.
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria. A question mark matches any single cha
characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.
Formula Result
=SUMIFS(D119:D131, B119:B131, "Apple", C119:C131, "Tom") 40
Warnings
Each range's criteria is applied one cell at a time. If all of the first cells meet their associated criteria, the count increases by
criteria, the count increases by 1 again, and so on until all of the cells are evaluated.
If the criteria argument is a reference to an empty cell, the COUNTIFS function treats the empty cell as a 0 value.
You can use the wildcard characters— the question mark (?) and asterisk (*) — in criteria. A question mark matches any sin
of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.
_true], [value_if_false]
ns one value if TRUE, and another value is FALSE
Formula Result
=IF(B163>C163, "Over Budget", "OK") OK
f_error)
or and the value of the expression itself otherwise
Formula Result
=IFERROR(B173/C173, "Error in Calculations?") 6
Formula Result
Warnings
If Value or Value_if_na is an empty cell, IFNA treats it as an empty string value ("").
If Value is an array formula, IFNA returns an array of results for each cell in the range specified in value.
Remarks
Average of all the Sales for East region.
Average of all the Sales for North region.
Average of all the Sales for North region (including North (New Office) region).
Average of all the Sales for the New Offices.
Average of all the Sales for the values greater than or equal to 4.
Average of all the Sales for the values equal to 5.
Average of all the Sales for the values equal to TRUE statement.
Average of all the Sales for the values equal to FALSE statement.
rnings
question mark matches any single character; an asterisk matches any sequence of
e the character.
ls that are averaged are determined by using the top, left cell in average_range as the
Remarks
Sum of all the Sales for East region.
Sum of all the Sales for North region.
Sum of all the Sales for North region (including North (New Office) region).
Sum of all the Sales for the New Offices.
Sum of all the Sales for the values greater than or equal to 4.
Sum of all the Sales for the values equal to 5.
Sum of all the Sales for the values equal to TRUE statement.
Sum of all the Sales for the values equal to FALSE statement.
rnings
than 255 characters or to the string #VALUE!.
argument. The actual cells that are added are determined by using the upper leftmost cell
nd in size and shape to the range argument.
rnings
than 255 characters or to the string #VALUE!.
argument. The actual cells that are added are determined by using the upper leftmost cell
nd in size and shape to the range argument.
Remarks
Count the number of cells with East in cells B66 through B87.
Count the number of cells with North in cells B66 through B87.
Count the number of cells with values greater than and equal to 100.
Count the number of cells with values less than and equal to the value of cell C68.
Count the number of cells with values that start with "No" characters.
Count the number of cells with values that start with "Ea" characters and then have
any two characters.
rnings
er than 255 characters.
[criteria_range3, criteria3], …)
Remarks
Average Quantity Sold of Apple product by Sales Person Tom.
Average Quantity Sold of Banana product by Sales Person Marissa. Marissa didn't sell
Banana. So #DIV/0! error is showing in the cell.
Average Quantity Sold of Carrot product by Sales Person Marissa.
rnings
_range3, criteria3], …)
Remarks
Sums the Quantity Sold of Apple product by Sales Person Tom.
Sums the Quantity Sold of Banana product by Sales Person Marissa. Marissa didn't sell
Banana. So #DIV/0! error is showing in the cell.
Sums the Quantity Sold of Carrot product by Sales Person Marissa.
criteria3], …)
Remarks
Count the number of cells in the range D142: D154 that have values greater than or
equal to 10, and less than or equal to 25.
Count the number of rows from the ranges B142: B154 and C142: C154 that have
Apple and Tom values in them respectively.
Count the number of rows from the ranges D142: D154 and C142: C154 that have a
value greater than or equal to cell D142 and a value Marissa respectively.
rnings
ciated criteria, the count increases by 1. If all of the second cells meet their associated
Remarks
Simple IF formula.
Nested IF Formula. At first calculate the return value of the deepest IF function.
Deepest IF function means that IF function that does not have no more function
inside it.
Remarks
Returns 6 as the value argument does not return any error.
rnings
pecified in value.
SUM(number1, [number2], [number3], [number4], …)
Adds all the numbers in a range of cells
Values
-5
15
30
5
1
If an argument is a cell range or reference, only numeric value
0
Values
-5
15
30
5
1 Arguments can either be numbers or names, ranges, or cell re
0 Logical values and text representations of numbers that you t
If a range or cell reference argument contains text, logical val
Arguments that are error values or text that cannot be transla
If you want to include logical values and text representations
If you want to calculate the average of only the values that m
Values
-5
15
30
5
1
Arguments can be the following: numbers; names, arrays, or
0 a reference.
Logical values and text representations of numbers that you t
Arguments that contain TRUE evaluate as 1; arguments that c
Array or reference arguments that contain text evaluate as 0
If an argument is an array or reference, only values in that arr
Arguments that are error values or text that cannot be transla
If you do not want to include logical values and text represen
Values
-5
15
30
5
1
Arguments that are numbers, dates, or a text representation
0 Logical values and text representations of numbers that you t
Arguments that are error values or text that cannot be transla
If an argument is an array or reference, only numbers in that
counted.
If you want to count logical values, text, or error values, use t
If you want to count only numbers that meet certain criteria,
Values
-5
15
30
5
1
0 The COUNTA function counts cells containing any type of info
empty string, the COUNTA function counts that value. The COU
If you do not need to count logical values, text, or error value
If you want to count only cells that meet certain criteria, use
The COUNTA function counts cells containing any type of info
empty string, the COUNTA function counts that value. The COU
If you do not need to count logical values, text, or error value
If you want to count only cells that meet certain criteria, use
Data 1 Data 2
1 15
2 10
3 5
4 8
5 12
6 25
7 13
8 5 If there is an even number of numbers in the set, then MEDIA
Arguments can either be numbers or names, arrays, or refere
Logical values and text representations of numbers that you t
If an array or reference argument contains text, logical values
Back to LIST OF FUNCTIONS
Arguments that are error values or text that cannot be transla
COUNTBLANK(range)
Counts the number of empty cells in a range
Values
5
12
8
98 Cells with formulas that return "" (empty text) are also counte
To run this formula, you need to turn off iterative calculation.
1) Click the File tab, and then click Options.
Marissa 2) Click Formulas, and under Calculation options, clear the
EVEN(number)
Rounds a positive number up and negative number down to the nearest even integer
ODD(number)
Rounds a positive number up and negative number down to the nearest odd integer.
INT(number)
Rounds a number down to the nearest integer
LARGE(array, k)
Returns the k-th largest value in a data set. For example, the fifth largest number
Values Values
5 3
4 5
3 7
5 7
10 6
If array is empty, LARGE returns the #NUM! error value.
If k ≤ 0 or if k is greater than the number of data points, LARG
Back to LIST OF FUNCTIONS If n is the number of data points in a range, then LARGE(array
SMALL(array, k)
Returns the k-th smallest value in a data set. For example, the fifth smallest number
Values Values
5 3
4 5
3 7
5 7
10 6
If array is empty, SMALL returns the #NUM! error value.
If k ≤ 0 or if k exceeds the number of data points, SMALL retu
If n is the number of data points in array, SMALL(array,1) equ
Back to LIST OF FUNCTIONS
Values Values
0.5 1
-2 0.9
Marissa 0
10 0.78
8 0.95
15 0.25
6 0.6 Arguments can either be numbers or names, arrays, or refere
Logical values and text representations of numbers that you t
If an argument is an array or reference, only numbers in that
If the arguments contain no numbers, MAX returns 0 (zero).
Arguments that are error values or text that cannot be transla
If you want to include logical values and text representations
Values Values
0.5 1
-2 0.9
Marissa 0
10 0.78
8 0.95
15 0.25
6 0.6 Arguments can either be numbers or names, arrays, or refere
Logical values and text representations of numbers that you t
If an argument is an array or reference, only numbers in that
If the arguments contain no numbers, MIN returns 0.
Arguments that are error values or text that cannot be transla
If you want to include logical values and text representations
MOD(number, divisor)
Returns the remainder after a number is divided by a divisor
Back to LIST OF FUNCTIONS
RAND()
Retursn a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation)
RANDBETWEEN(bottom, top)
Return a random number between the numbers you specify
SQRT(number)
Returns the square root of a number
function_num function_num
(Includes Hidden (Ignores Hidden If there are other subtotals within ref1, ref2,… (or nested subt
Values) Values) function For the function_num constants from 1 to 11, the SUBTOTAL f
1 101 AVERAGE the Format command in the Cells group on theHome tab in the
list. For the function_Num constants from 101 to 111, the SUBTO
2 102 COUNT
subtotal only nonhidden numbers in a list.
3 103 COUNTA The SUBTOTAL function ignores any rows that are not included
4 104 MAX The SUBTOTAL function is designed for columns of data, or ve
5 105 MIN horizontal range using a function_num of 101 or greater, such as
range does affect the subtotal.
If any of the references are 3-D references, SUBTOTAL returns
list. For the function_Num constants from 101 to 111, the SUBTO
subtotal only nonhidden numbers in a list.
The SUBTOTAL function ignores any rows that are not included
The SUBTOTAL function is designed for columns of data, or ve
horizontal range using a function_num of 101 or greater, such as
6 106 PRODUCT
range does affect the subtotal.
If any of the references are 3-D references, SUBTOTAL returns
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP
Values
15
45
78
89
65
78
45
50
65
12
Formula Result
=SUM(B6:B11) 40
=SUM(B6:B8, "5", 1, 0) 46
Warnings
If an argument is a cell range or reference, only numeric values in the reference or range can be added. Empty cells, logical
Formula Result
=AVERAGE(B21:B26) 13.333333
Warnings
Arguments can either be numbers or names, ranges, or cell references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If a range or cell reference argument contains text, logical values, or empty cells, those values are ignored; however, cells w
Arguments that are error values or text that cannot be translated into numbers cause errors.
If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the A
If you want to calculate the average of only the values that meet certain criteria, use the AVERAGEIF function or the AVERA
Formula Result
=AVERAGEA(B40:B45) 6.8333333
=AVERAGEA(B40:B42, "5", 1, 0) 7.6666667
Warnings
Arguments can be the following: numbers; names, arrays, or references that contain numbers; text representations of num
a reference.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
Arguments that contain TRUE evaluate as 1; arguments that contain FALSE evaluate as 0 (zero).
Array or reference arguments that contain text evaluate as 0 (zero). Empty text ("") evaluates as 0 (zero).
If an argument is an array or reference, only values in that array or reference are used. Empty cells and text values in the ar
Arguments that are error values or text that cannot be translated into numbers cause errors.
If you do not want to include logical values and text representations of numbers in a reference as part of the calculation, us
value3], …)
Formula Result
=COUNT(B60:B65) 4
=COUNT(B60:B62, "5", 1, 0) 6
Warnings
Arguments that are numbers, dates, or a text representation of numbers (for example, a number enclosed in quotation ma
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
Arguments that are error values or text that cannot be translated into numbers are not counted.
If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, tex
counted.
If you want to count logical values, text, or error values, use the COUNTA function.
If you want to count only numbers that meet certain criteria, use the COUNTIF function or the COUNTIFSfunction.
[value3], …)
Formula Result
=COUNTA(B78:B83) 6
=COUNTA(B78:B80, "5", 1, 0) 6
Warnings
The COUNTA function counts cells containing any type of information, including error values and empty text (""). For exam
empty string, the COUNTA function counts that value. The COUNTA function does not count empty cells.
If you do not need to count logical values, text, or error values (in other words, if you want to count only cells that contain n
If you want to count only cells that meet certain criteria, use the COUNTIF function or the COUNTIFS function.
Warnings
The COUNTA function counts cells containing any type of information, including error values and empty text (""). For exam
empty string, the COUNTA function counts that value. The COUNTA function does not count empty cells.
If you do not need to count logical values, text, or error values (in other words, if you want to count only cells that contain n
If you want to count only cells that meet certain criteria, use the COUNTIF function or the COUNTIFS function.
er2], [number3], …)
of the set of given numbers
Formula Result
=MEDIAN(B96:B102) 4
=MEDIAN(B96:B103) 4.5
=MEDIAN(C96:C102) 12
=MEDIAN(C96:C103) 11
Warnings
If there is an even number of numbers in the set, then MEDIAN calculates the average of the two numbers in the middle. S
Arguments can either be numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with
Arguments that are error values or text that cannot be translated into numbers cause errors.
ray2], [array3], …)
ranges or arrays
Formula Result
=SUMPRODUCT({4,5,6}, {10,20,10}) 200
=SUMPRODUCT(--(B114:B125="Jon"), --(C114:C125="West"), E114:E125) 235
Warnings
The array arguments must have the same dimensions. If they do not, SUMPRODUCT returns the #VALUE! error value.
SUMPRODUCT treats array entries that are not numeric as if they were zeros.
r2], [number3], …)
The arguments can be numbers, arrays, names, or references to cells that contain numbers
Formula Result
=SUMSQ(3, 4, 5) 50
Warnings
Arguments can either be numbers or names, arrays, or references that contain numbers.
Numbers, logical values, and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, tex
ignored.
Arguments that are error values or text that cannot be translated into numbers cause errors.
Formula Result
=COUNTBLANK(B147:B153) 1
Warnings
Cells with formulas that return "" (empty text) are also counted. Cells with zero values are not counted.
To run this formula, you need to turn off iterative calculation. Here's how:
1) Click the File tab, and then click Options.
2) Click Formulas, and under Calculation options, clear the Enable iterative calculation check box, then clickOK.
Formula Result
=EVEN(1.5) 2
=EVEN(3) 4
=EVEN(2) 2
=EVEN(-1) -2
Warnings
If number is nonnumeric, EVEN returns the #VALUE! error value.
Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an even integer, no rou
If number is nonnumeric, EVEN returns the #VALUE! error value.
Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an even integer, no rou
Formula Result
=ODD(1.5) 3
=ODD(3) 3
=ODD(2) 3
=ODD(-1) -1
Warnings
If number is nonnumeric, ODD returns the #VALUE! error value.
Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an odd integer, no rou
Formula Result
=INT(8.9) 8
=INT(-8.9) -9
=INT(19.5) 19
Formula Result
=LARGE(B205:C209,4) 6
=LARGE(B205:C209, 8) 4
Warnings
If array is empty, LARGE returns the #NUM! error value.
If k ≤ 0 or if k is greater than the number of data points, LARGE returns the #NUM! error value.
If n is the number of data points in a range, then LARGE(array,1) returns the largest value, and LARGE(array,n) returns the s
xample, the fifth smallest number
Formula Result
=SMALL(B221:C225, 5) 5
=SMALL(B221:C225, 8) 7
Warnings
If array is empty, SMALL returns the #NUM! error value.
If k ≤ 0 or if k exceeds the number of data points, SMALL returns the #NUM! error value.
If n is the number of data points in array, SMALL(array,1) equals the smallest value, and SMALL(array,n) equals the largest v
, [number3], [number4], …)
s logical values and text
alue3], [value4], …)
ot ignore logical values and text. MAXA function evaluates TRUE as 1, FALSE as 0 and any Text value as 0. Empty cells are ignored
Formula Result
=MAX(C239:C246) 0.95
=MAXA(C239:C246) 1
=MAX(B239:C246) 15
=MAXA(B239:C246) 15
Warnings (MAX)
Arguments can either be numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text
If the arguments contain no numbers, MAX returns 0 (zero).
Arguments that are error values or text that cannot be translated into numbers cause errors.
If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the M
Warnings (MAXA)
Arguments can be the following: numbers; names, arrays, or references that contain numbers; text representations of num
a reference.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only values in that array or reference are used. Empty cells and text values in the ar
Arguments that are error values or text that cannot be translated into numbers cause errors.
Arguments that contain TRUE evaluate as 1; arguments that contain text or FALSE evaluate as 0 (zero).
If the arguments contain no values, MAXA returns 0 (zero).
If you do not want to include logical values and text representations of numbers in a reference as part of the calculation, us
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only values in that array or reference are used. Empty cells and text values in the ar
Arguments that are error values or text that cannot be translated into numbers cause errors.
Arguments that contain TRUE evaluate as 1; arguments that contain text or FALSE evaluate as 0 (zero).
If the arguments contain no values, MAXA returns 0 (zero).
If you do not want to include logical values and text representations of numbers in a reference as part of the calculation, us
, [number3], [number4], …)
nores logical values and text
alue3], [value4], …)
not ignore logical values and text. MAXA function evaluates TRUE as 1, FALSE as 0 and any Text value as 0. Empty cells are ignored
Formula Result
=MIN(C274:C281) 0.25
=MINA(C274:C281) 0
=MIN(B274:C281) -2
=MINA(B274:C281) -2
Warnings (MIN)
Arguments can either be numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text
If the arguments contain no numbers, MIN returns 0.
Arguments that are error values or text that cannot be translated into numbers cause errors.
If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the M
Warnings (MINA)
Arguments can be the following: numbers; names, arrays, or references that contain numbers; text representations of num
a reference.
If an argument is an array or reference, only values in that array or reference are used. Empty cells and text values in the ar
Arguments that contain TRUE evaluate as 1; arguments that contain text or FALSE evaluate as 0 (zero).
Arguments that are error values or text that cannot be translated into numbers cause errors.
If the arguments contain no values, MINA returns 0.
If you do not want to include logical values and text representations of numbers in a reference as part of the calculation, us
Formula Result
=MOD(25, 8) 1
=MOD(25, -8) -7
=MOD(-25, 8) 7
=MOD(-25, -8) -1
Formula Result
=RAND() 0.7422398
=RAND() 0.5445481
=RAND() 0.7759105
=RANDBETWEEN(100, 200) 147
=RANDBETWEEN(100, 200) 105
=RANDBETWEEN(100, 200) 200
Formula Result
=SQRT(49) 7
=SQRT(625) 25
=SQRT(50) 7.0710678
=SQRT(-49) Err:502
Warnings
If there are other subtotals within ref1, ref2,… (or nested subtotals), these nested subtotals are ignored to avoid double cou
For the function_num constants from 1 to 11, the SUBTOTAL function includes the values of rows hidden by theHide Rows c
the Format command in the Cells group on theHome tab in the Excel desktop application. Use these constants when you wan
list. For the function_Num constants from 101 to 111, the SUBTOTAL function ignores values of rows hidden by the Hide Rows
subtotal only nonhidden numbers in a list.
The SUBTOTAL function ignores any rows that are not included in the result of a filter, no matter which function_num value
The SUBTOTAL function is designed for columns of data, or vertical ranges. It is not designed for rows of data, or horizontal r
horizontal range using a function_num of 101 or greater, such as SUBTOTAL(109,B2:G2), hiding a column does not affect the su
range does affect the subtotal.
If any of the references are 3-D references, SUBTOTAL returns the #VALUE! error value.
list. For the function_Num constants from 101 to 111, the SUBTOTAL function ignores values of rows hidden by the Hide Rows
subtotal only nonhidden numbers in a list.
The SUBTOTAL function ignores any rows that are not included in the result of a filter, no matter which function_num value
The SUBTOTAL function is designed for columns of data, or vertical ranges. It is not designed for rows of data, or horizontal r
horizontal range using a function_num of 101 or greater, such as SUBTOTAL(109,B2:G2), hiding a column does not affect the su
range does affect the subtotal.
If any of the references are 3-D references, SUBTOTAL returns the #VALUE! error value.
Formula Result
Warnings
he reference or range can be added. Empty cells, logical values like TRUE, or text are ignored.
Remarks
When you take a range as the AVERAGE function's argument, it neglects Text values, and TRUE or FALSE
statements.
In this formula, "5" is first translated into a number, TRUE is translated into 1, and FALSE is translated
into 0. Total 46 is divided by 6.
Warnings
ces that contain numbers.
rectly into the list of arguments are counted.
r empty cells, those values are ignored; however, cells with the value zero are included.
nto numbers cause errors.
mbers in a reference as part of the calculation, use the AVERAGEA function.
rtain criteria, use the AVERAGEIF function or the AVERAGEIFS function.
Remarks
In AVERAGEA function when you use a range as the arguments, text and FALSE in the range are
evaluated as 0, TRUE is evaluated as 1.
But, in this formula, "5" is first translated into a number, TRUE is translated into 1, and FALSE is
translated into 0. Total is 46 and when divided by 6 results in like AVERAGE function.
Warnings
nces that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in
Remarks
When you pass a whole range as the argument of the COUNT function, it only counts the cells that have
numbers.
But, in this formula, text value "5", TRUE and FALSE statements are also counted as numbers. So showing
total 6 numbers.
Warnings
mbers (for example, a number enclosed in quotation marks, such as "1") are counted.
rectly into the list of arguments are counted.
nto numbers are not counted.
or reference are counted. Empty cells, logical values, text, or error values in the array or reference are not
UNTA function.
he COUNTIF function or the COUNTIFSfunction.
Remarks
There are total 6 number of cells that are not empty.
There are total 6 number of cells that are not empty.
Warnings
on, including error values and empty text (""). For example, if the range contains a formula that returns an
unction does not count empty cells.
ther words, if you want to count only cells that contain numbers), use the COUNT function.
OUNTIF function or the COUNTIFS function.
Warnings
on, including error values and empty text (""). For example, if the range contains a formula that returns an
unction does not count empty cells.
ther words, if you want to count only cells that contain numbers), use the COUNT function.
OUNTIF function or the COUNTIFS function.
Remarks
From number 1 to 7, median is 4.
From number 1 to 8, median is (4+5)/2 = 4.5
For this data set median is 12. Arrange the data set in ascending order, you will get the median.
For this data set median is 12. Arrange the data set in ascending order, you will get the median.
Warnings
culates the average of the two numbers in the middle. See the second formula in the example.
hat contain numbers.
rectly into the list of arguments are counted.
mpty cells, those values are ignored; however, cells with the value zero are included.
nto numbers cause errors.
Remarks
4*10 + 5*20 + 6*10 = 200
Finds the total Sales by Sales Person Jon in the West Region.
Warnings
t, SUMPRODUCT returns the #VALUE! error value.
ere zeros.
Remarks
3^2 + 4^2 + 5^2 = 50
Warnings
hat contain numbers.
you type directly into the list of arguments are counted.
or reference are counted. Empty cells, logical values, text, or error values in the array or reference are
Remarks
Cell B134 holds a space character, so only one blank cell is available in the range.
Warnings
ls with zero values are not counted.
s how:
Remarks
Greater than 1.5 and nearest even number is 2
Greater than 3 and nearest even number is 4
Rounds 2 to the nearest even integer
Less than -1 and nearest even integer is -2
Warnings
Remarks
Greater than 1.5 and nearest odd number is 2
Rounds 3 to the nearest odd number
Greater than 2 and nearest odd number is 3.
Nearest odd number of number -1
Warnings
Remarks
Rounds 8.9 down to the nearest integer
Rounds -8.9 down to the nearest integer
Rounds 19.5 down to the nearest integer
Remarks
If we arrange the numbers in the range, we get: 10, 7, 7, 6, 5, 5, 5, 4, 3, 3. 5-th largest value in this data
set is 5.
In the above data set, the 8-th largest value is 4.
Warnings
Warnings
Remarks
In the range C221: C228, MAX function returns 0.95. It ignores the TRUE, FALSE and Text
values.
In the same range C221: C228, MAXA function returns 1. It evaluates TRUE statement as 1 and
it is the highest value in the range.
In the range B221: C228, highest value is 15.
In the range B221: C228, highest value is 15.
Warnings (MAX)
hat contain numbers.
rectly into the list of arguments are counted.
or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
Warnings (MAXA)
nces that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in
Remarks
In the range C256: C263, MIN function returns 0.25. It ignores the TRUE, FALSE and Text values.
In the same range C256: C263, MINA function returns 0. It evaluates FALSE or TEXT values as 0,
and it is the smallest value in the range.
In the range B256: C263, the smallest value is -2.
In the range B256: C263, the smallest value is -2.
Warnings (MIN)
hat contain numbers.
rectly into the list of arguments are counted.
or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
Warnings (MINA)
nces that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in
reference are used. Empty cells and text values in the array or reference are ignored.
n text or FALSE evaluate as 0 (zero).
nto numbers cause errors.
Remarks
The formula returns a random number between 0 and 1.
The formula returns a random number between 0 and 1.
The formula returns a random number between 0 and 1.
The formula returns a random number between 100 and 200.
The formula returns a random number between 100 and 200.
The formula returns a random number between 100 and 200.
Remarks
Returns the square root of number 49
Returns the square root of number 625
Returns the square root of number 50
Returns #NUM! type error as you cannot find out the square root of a negative number.
Warnings
these nested subtotals are ignored to avoid double counting.
n includes the values of rows hidden by theHide Rows command under the Hide & Unhide submenu of
desktop application. Use these constants when you want to subtotal hidden and nonhidden numbers in a
unction ignores values of rows hidden by the Hide Rows command. Use these constants when you want to
Remarks
This formula ignores the hidden values (row 344 and 345 are hidden) and calculates the sum of the
visible rows.
This formula includes the hidden values (row 344 abd 345 are hidden) and calculates the sum of all the
values in the range.
Ignores the hidden values when calculating the average of range B337: B348.
Includes the hidden values when calculating the average of range B337: B348.
Courtesy: ExcelDemy.com
FIND(find_text, within_text, [start_num])
Returns the starting position of one text string within another text string. FIND is case-sensitive
Warnings
FIND is case sensitive and don't allow wildcard characters. If you don't want to do a
If find_text is "" (empty text), FIND matches the first character in the search string (
Find_text cannot contain any wildcard characters.
If find_text does not appear in within_text, FIND returns the #VALUE! error value.
If start_num is not greater than zero, FIND returns the #VALUE! error value.
If start_num is greater than the length of within_text, FIND returns the #VALUE! err
Use start_num to skip a specified number of characters. Using FIND as an example,
"AYF0093.YoungMensApparel". To find the number of the first "Y" in the descriptive pa
number portion of the text is not searched. FIND begins with character 8, finds find_te
returns the number of characters from the start of within_text, counting the characte
=SEARCH("R", B33) 3
=SEARCH(" ", B34) 6
=SEARCH("""",B35) 5
Warnings
The SEARCH functions is not case sensitive. If you want to do a case sensitive search
You can use the wildcard characters — the question mark (?) and asterisk (*) — in t
an asterisk matches any sequence of characters. If you want to find an actual question
If the value of find_text is not found, the #VALUE! error value is returned.
If the start_num argument is omitted, it is assumed to be 1.
If start_num is not greater than 0 (zero) or is greater than the length of the within_
Use start_num to skip a specified number of characters. Using the SEARCH function
"AYF0093.YoungMensApparel". To find the position of the first "Y" in the descriptive p
number portion of the text (in this case, "AYF0093") is not searched. The SEARCH func
the character that is specified in the find_text argument at the next position, and retu
characters from the start of the within_textargument, counting the characters you ski
You can use the wildcard characters — the question mark (?) and asterisk (*) — in t
an asterisk matches any sequence of characters. If you want to find an actual question
If the value of find_text is not found, the #VALUE! error value is returned.
If the start_num argument is omitted, it is assumed to be 1.
If start_num is not greater than 0 (zero) or is greater than the length of the within_
Use start_num to skip a specified number of characters. Using the SEARCH function
"AYF0093.YoungMensApparel". To find the position of the first "Y" in the descriptive p
number portion of the text (in this case, "AYF0093") is not searched. The SEARCH func
the character that is specified in the find_text argument at the next position, and retu
characters from the start of the within_textargument, counting the characters you ski
Warnings
s. If you don't want to do a case sensitive search or use wildcard characters, you can use SEARCH.
acter in the search string (that is, the character numbered start_num or 1).
Remarks
Returns the position of the first "r" counting from position 1.
Returns the position of the first "r" counting from position 1.
Returns the position of the first "r" counting from position 2.
Returns the position of the first "r" counting from position 3.
Returns the position of the first "r" counting from position 4.
Returns the position of the first "R" counting from position 1. "R"
and "r" are same here. As SEARCH is not case-sensitive.
Position of the first space in the cell B34.
Position of the first double quotes in the cell B35.
Warnings
o do a case sensitive search, you can use FIND.
k (?) and asterisk (*) — in the find_text argument. A question mark matches any single character;
t to find an actual question mark or asterisk, type a tilde (~) before the character.
value is returned.
e 1.
n the length of the within_text argument, the #VALUE! error value is returned.
Using the SEARCH function as an example, suppose you are working with the text string
rst "Y" in the descriptive part of the text string, set start_num equal to 8 so that the serial
earched. The SEARCH function starts the search operation at the eighth character position, finds
the next position, and returns the number 9. The SEARCH function always returns the number of
nting the characters you skip if the start_num argument is greater than 1.
k (?) and asterisk (*) — in the find_text argument. A question mark matches any single character;
t to find an actual question mark or asterisk, type a tilde (~) before the character.
value is returned.
e 1.
n the length of the within_text argument, the #VALUE! error value is returned.
Using the SEARCH function as an example, suppose you are working with the text string
rst "Y" in the descriptive part of the text string, set start_num equal to 8 so that the serial
earched. The SEARCH function starts the search operation at the eighth character position, finds
the next position, and returns the number 9. The SEARCH function always returns the number of
nting the characters you skip if the start_num argument is greater than 1.
Remarks
"Sold" text is replaced by "Bought" text in every instance.
"Sold" text is replaced by "Bought" text for the first instance.
"Sold" text is replaced by "Bought" text for the second stance.
"08" text is replaced by "13" text.
Remarks
9th letter K is replaced by new_text Kawser.
9th and 10th letter Kh is replaced by new_text Kawser. 2014
9th 10th and 11th letter Kha is replaced by new_text Kawser.
9th 10th 11th and 12th letter Khan is replaced by new_text Kawser.
Try to guess what is happening here.
Try to guess what is happening here.
Try to guess what is happening here.
Try to guess what is happening here.
MATCH(lookup_value, lookup_array, [match_type])
Returns the relative position of an item in an array that matches a specified value in a specified order
match_type behavior
Apple 35 45 25
Orange 38 40 30
Banana 40 38 28
Pears 45 35 15
Jan 4 7 9
Feb 5 8 10
Mar 6 9 11
Formula Result
=MATCH(41, C11:C14, 1) 3
=MATCH(41, C11:C14, 0) #N/A
=MATCH(28, E11:E14, 0) 3
[result_vector])
array. Provided for backward compatibility
Formula Result
Warnings
If the LOOKUP function can't find the lookup_value, the function matches the largest value in lookup_vectorthat is less tha
to lookup_value.
If lookup_value is smaller than the smallest value in lookup_vector, LOOKUP returns the #N/A error value.
ow_index_num, [range_lookup])
he value in the same column from a row you specify
Formula Result
=HLOOKUP("Axles", B41:E44, 2, 1) 4
=HLOOKUP("Bearings", C41:E44, 3, 0) 8
=HLOOKUP("B", B41:E44, 3, 1) 5
Warnings
If HLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than lookup_value.
If lookup_value is smaller than the smallest value in the first row of table_array, HLOOKUP returns the #N/A error value.
If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters, question mark (?) and asterisk (*), in
lookup_value. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to fi
actual question mark or asterisk, type a tilde (~) before the character.
ol_index_num, [range_lookup])
n the same row from a column you specify. By default, the table must be sorted in an ascending order
Formula Result
Remarks
Looking up value A003 in the range B22: B27 and then showing result
from range D22: D27.
Looking up value 20 in the range C22: C27 and then showing result from
range D22: D27.
Looking up value 25 in the range C22: C27. No value 25. The function
matches the nearest smaller values; it is 20. So the formula returns 500
as the result.
Looking up value 5 in the range C22: C27. No value 5. The function tries
to match the nearest smaller values; it does not find. So the formula
shows error.
Warnings
value, the function matches the largest value in lookup_vectorthat is less than or equal
Remarks
Looks up "Axles" in row 1, and returns the value from row 2 that's in the
same column (column C).
Looks up "Bearings" in row 1, and returns the value from row 3 that's in
the same column (column D).
Looks up "B" in row 1, and should return the value from row 3 that's in
the same column. Because an exact match for "B" is not found, the
largest value in row 1 that is less than "B" is used: "Axles," in column C.
Warnings
_lookup is TRUE, it uses the largest value that is less than lookup_value.
ue in the first row of table_array, HLOOKUP returns the #N/A error value.
ext, you can use the wildcard characters, question mark (?) and asterisk (*), in
e character; an asterisk matches any sequence of characters. If you want to find an
before the character.
Remarks
In the range C59: F64, the formula looks up "Leal" in the first column,
when found it shows the Title of Leal at 3rd column in the same row.
FALSE returns an exact match.
In the range B59: F64, the formula looks up value 111 in the frist column,
when found it shows the Birth Date at 5th column in the same row.
FALSE returns an exact match.
There is no ID as 110 in the first column of range B59: F64 and the
VLOOKUP function will return an exact match. So the function returns
#N/A.
There is no ID as 114 in the first column of range B59: F64, but the
VLOOKUP function will return an appropriate match, VLOOKUP function
returns the Title of ID 111. 111 is the nearest value of 114 and less than
114.
ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])
Creates a cell reference as text, given specified row and column numbers
4 Relative
a1 Reference Style
TRUE or Omitted A1 Style
0 R1C1 Style
Data
Marissa
Excel
Excel BI
Power Query
Power Pivot
Power Map
If index_num is an array, every value
The value arguments to CHOOSE can
For example, the formula:
=SUM(CHOOSE(2,A1:A10,B1:B10,C1:C1
evaluates to:
=SUM(B1:B10)
Bananas Pears
Apples $ 0.69 40
Bananas $ 0.34 38
Lemons $ 0.55 15
Oranges $ 0.25 25
Pears $ 0.59 40
INDIRECT(ref_text, [a1])
Returns the reference specified by a text string
Data Values
C89 Marissa
C90 Kawser
C91 Excel
Sales_Data $ 90,000.00
93 $ 850.00
15 25 8
20 31 7
25 12 9
9 18 15
11 18 14
18 10 16
18 20 17 If rows and cols offset reference over
15 15 36 If height or width is omitted, it is assu
OFFSET doesn't actually move any ce
expecting a reference argument. For ex
range that is 1 row below and 2 column
Formula Result
=ADDRESS(2,3) $C$2
=ADDRESS(2,3,2) C$2
=ADDRESS(2,3,2,0) R2C[3]
=ADDRESS(2,3,1,0,"[Book1]Sheet1") [Book1]Sheet1!R2C3
alue3], …)
Formula Result
=CHOOSE(3, B21, B22, B23, B24, B25, B26) Excel BI
=CHOOSE(5, B21, B22, B23, B24, B25, B26) Power Pivot
Warnings
If index_num is an array, every value is evaluated when CHOOSE is evaluated.
The value arguments to CHOOSE can be range references as well as single values.
For example, the formula:
=SUM(CHOOSE(2,A1:A10,B1:B10,C1:C10))
evaluates to:
=SUM(B1:B10)
_num, [column_num])
Formula Result
=INDEX(B64:D68, 3, 3) $ 15.00
=SUM(D64:INDEX(B64:D68,5,3)) $ 158.00
Formula Result
=INDIRECT(B89) Marissa
=INDIRECT("C90") Kawser
=INDIRECT(B91) Excel
=INDIRECT(B92) $ 90,000.00
=INDIRECT("C"&B93) $ 850.00
=SUM(INDIRECT("C92:C93")) $ 90,850.00
width])
rom a given reference
Formula Result
=OFFSET(B104, -2, 2, 1, 1) 7
=SUM(OFFSET(B106, -3, 1, 2,2)) 54
=SUM(OFFSET(B101, 0, 0, 8, 3)) 402
Warnings
If rows and cols offset reference over the edge of the worksheet, OFFSET returns the #REF! error value.
If height or width is omitted, it is assumed to be the same height or width as reference.
OFFSET doesn't actually move any cells or change the selection; it just returns a reference. OFFSET can be used with any fun
expecting a reference argument. For example, the formula SUM(OFFSET(C2,1,2,3,1)) calculates the total value of a 3-row by 1
range that is 1 row below and 2 columns to the right of cell C2.
Remarks
Absolute and A1-style reference
Absolute Row, Relative Column and A1-style cell
reference.
Absolute Row, Relative Column and R1C1 style cell
reference.
Absolute and R1C1 style cell reference with
workbook and sheet name.
Relative and R1C1 style cell referecne with
Worksheet name.
Remarks
Value of the 3rd list argument (value of cell B23)
Value of the 5th list argument (value of cell B25)
Warnings
CHOOSE is evaluated.
es as well as single values.
Remarks
INDEX function in Array format.
returns the array of values for the entire column or row, respectively.
ction as an array formula in a horizontal range of cells for a row, and in a vertical
ss CTRL+SHIFT+ENTER.
ormulas.
n array; otherwise, INDEX returns the #REF! error value.
Remarks
Remarks
Remarks
Warnings
orksheet, OFFSET returns the #REF! error value.
me height or width as reference.
election; it just returns a reference. OFFSET can be used with any function
a SUM(OFFSET(C2,1,2,3,1)) calculates the total value of a 3-row by 1-column
ell C2.
DATE(year, month, day)
Returns the number that represents the date in Microsoft Excel date-time code
2015 10 15
2010 5 25
1805 8 23
DATEVALUE(date_text)
Converts a date in the form of text to a number that represents the date in the Microsoft Excel date-time code
12 2/8/1900 30
16 1/24/1900 30
16 2/16/1900 15
TIMEVALUE(time_text)
Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988424 (11:59:59 PM). Form
NOW()
Returns the current date and time formatted as a date and time
TODAY()
Returns the current date formatted as a date
WEEKDAY(serial_number, [return_type])
Returns a number from 1 to 7 identifying the day of the week from a date
1 or omitted Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.
DAYS(end_date, start_date)
Returns the number of days between the two dates
Date Description
ate-time code
Formula Result
Formula Result
=DATEVALUE("25/10/2015") 10/25/2015
=DATEVALUE("22-May-2015") 5/22/2015
Formula Result
=TIME(B27,C27,D27) 04:25:30 PM
=TIME(B28,C28,D28) 04:48:15 PM
Warnings
Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented
half of a day).
er from 0 (12:00:00 AM) to 0.999988424 (11:59:59 PM). Format the number with a time format after entering the formula
Formula Result
Warnings
Date information in time_text is ignored.
Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented
half of a day).
Formula Result
=NOW() 12/15/2021 0:28
=NOW()+7 12/22/2021 0:28
Warnings
Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is se
and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.
Numbers to the right of the decimal point in the serial number represent the time; numbers to the left represent the da
the serial number 0.5 represents the time 12:00 noon.
The results of the NOW function change only when the worksheet is calculated or when a macro that contains the func
not updated continuously.
Formula Result
=TODAY() 12/15/2021
=TODAY()+7 12/22/2021
Warnings
Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 190
1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
Values returned by the YEAR, MONTH and DAY functions will be Gregorian values regardless of the display format for th
value. For example, if the display format of the supplied date is Hijri, the returned values for the YEAR, MONTH and DAY fu
values associated with the equivalent Gregorian date.
=WEEKDAY(NOW(), 16)
Warnings
Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 190
1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
If serial_number is out of range for the current date base value, a #NUM! error is returned.
If return_type is out of the range specified in the table above, a #NUM! error is returned.
Formula Result
=DAYS(B122, C122) 12531
=DAYS("2 Nov, 2015", "12 July, 1981") 12531
Warnings
If both date arguments are numbers, DAYS uses EndDate–StartDate to calculate the number of days in between both da
If either one of the date arguments is text, that argument is treated as DATEVALUE(date_text) and returns an integer da
time component.
If date arguments are numeric values that fall outside the range of valid dates, DAYS returns the #NUM! error value.
If date arguments are strings that cannot be parsed as valid dates, DAYS returns the #VALUE! error value.
If both date arguments are numbers, DAYS uses EndDate–StartDate to calculate the number of days in between both da
If either one of the date arguments is text, that argument is treated as DATEVALUE(date_text) and returns an integer da
time component.
If date arguments are numeric values that fall outside the range of valid dates, DAYS returns the #NUM! error value.
If date arguments are strings that cannot be parsed as valid dates, DAYS returns the #VALUE! error value.
ate, [holidays])
Formula Result
Warnings
Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 190
1, and January 1, 2012 is serial number 40909 because it is 40,909 days after January 1, 1900.
If any argument is not a valid date, NETWORKDAYS returns the #VALUE! error value.
umber of workdays
Formula Result
Warnings
Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 190
1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
If any argument is not a valid date, WORKDAY returns the #VALUE! error value.
If start_date plus days yields an invalid date, WORKDAY returns the #NUM! error value.
If days is not an integer, it is truncated.
Remarks
Remarks
Converts the date 25/ 10 / 2015 into the Excel Date-
Time system equivalent number
Converts the date 22 May, 2015 into the Excel Date-
Time system equivalent number.
Converts the date 22-May-2015 into the Excel Date-
Time system equivalent number.
Remarks
Warnings
resented by a decimal number (for example, 12:00 PM is represented as 0.5 because it is
mber with a time format after entering the formula
Remarks
This formula only extracts the time part from the text
and converts it into Excel Date-Time format. The cell
is formatted as General.
Warnings
Remarks
Shows the current date and time.
Returns the date and time 7 days in the future.
Warnings
o that they can be used in calculations. By default, January 1, 1900 is serial number 1,
e it is 39,447 days after January 1, 1900.
serial number represent the time; numbers to the left represent the date. For example,
on.
en the worksheet is calculated or when a macro that contains the function is run. It is
Remarks
Returns the current date.
Returns the current date plus 5 days.
Result
2021
12
15
0
28
18
Warnings
umbers so they can be used in calculations. By default, January 1, 1900 is serial number
use it is 39,448 days after January 1, 1900.
nctions will be Gregorian values regardless of the display format for the supplied date
plied date is Hijri, the returned values for the YEAR, MONTH and DAY functions will be
e.
Result Remarks
No return type is passed. So it evaluates
4 Sunday as 1, Monday as 2 and so on.
Return type is 16, so the function evaluates
5 Saturday as 1, Sunday as 2 and so on.
Warnings
umbers so they can be used in calculations. By default, January 1, 1900 is serial number
use it is 39,448 days after January 1, 1900.
ate base value, a #NUM! error is returned.
table above, a #NUM! error is returned.
Remarks
Returns the difference between two dates in days.
Returns the difference between two dates in days.
Warnings
ndDate–StartDate to calculate the number of days in between both dates.
rgument is treated as DATEVALUE(date_text) and returns an integer date instead of a
side the range of valid dates, DAYS returns the #NUM! error value.
ed as valid dates, DAYS returns the #VALUE! error value.
ndDate–StartDate to calculate the number of days in between both dates.
rgument is treated as DATEVALUE(date_text) and returns an integer date instead of a
side the range of valid dates, DAYS returns the #NUM! error value.
ed as valid dates, DAYS returns the #VALUE! error value.
Remarks
The total days you will get to finish the project
without considering the holidays.
The total days you will get to finish the project
considering the holidays.
Warnings
umbers so they can be used in calculations. By default, January 1, 1900 is serial number
use it is 40,909 days after January 1, 1900.
S returns the #VALUE! error value.
Remarks
The finishing date of the work is 7 August, 2015 if you
don't consider the holidays.
The finishing date of the work is 10 August, 2015 if
you consider the holidays.
Warnings
umbers so they can be used in calculations. By default, January 1, 1900 is serial number
use it is 39,448 days after January 1, 1900.
urns the #VALUE! error value.
RKDAY returns the #NUM! error value.
Courtesy: ExcelDemy.com
AREAS(reference)
Returns the number of areas in a reference. An area is range of contiguous cells or a single cell
Formula
=AREAS(B2:D4)
=AREAS((B2:D4~E5,F6:I9))
Back to LIST OF FUNCTIONS =AREAS(B2:D4!B2)
CHAR(number)
Returns the character specified by the code number from the character set for your computer
Formula
=CHAR(65)
CODE(text)
Returns a numeric code for the first character in a text string, in the character set used by your computer
Formula
=CODE("A")
=CODE("Marissa")
=CODE("!")
Back to LIST OF FUNCTIONS =CODE("?")
CLEAN(text)
Removes all non-printable characters from text
Examples of Non-Printable Characters are: Tab, New Line characters. Their codes are 9 and 10
Data Formula
Sales Data
=CLEAN(B32)
TRIM(text)
Removes all spaces from a text string except for single spaces between words
Data Formula
LEN(text)
Returns the number of characters in a text string
Data Formula
Microsoft Excel =LEN(B50)
=LEN(B51)
=LEN(B52)
One =LEN(B54)
Marissa
COLUMN([reference])
Returns the column number of a reference
ROW([reference])
Returns the row number of a reference
Formula
=COLUMN()
=COLUMN(B30)
=ROW()
Back to LIST OF FUNCTIONS =ROW(B30)
EXACT(text1, text2)
Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive
FORMULATEXT(reference)
Returns a formula as a string
Formulas Formula
80 =FORMULA(B84)
12/15/2021 =FORMULA(B86)
LEFT(text, [num_chars])
Returns the specified number of characters from the start of a text string
RIGHT(text, [num_chars])
Returns the specified number of characters from the end of a text string
Data Formula
Excel Dashboard =LEFT(B116, 5)
Marissa Kawser =LEFT(B116, 30)
Excel BI Tools =MID(B116, 7, 25)
=MID(B116, 50, 5)
=RIGHT(B116, 25)
=RIGHT(B118, 5)
LOWER(text)
Converts all letters in a text string to lowercase
PROPER(text)
Converts a text string to proper case; the first letter in each word in uppercase, and all other letters to lowercase
UPPER(text)
Converts a text string to all uppercase letters
Data Formula
Excel Dashboard =LOWER(B152)
REPT(text, number_times)
Repeats text a given number of times. Use REPT to fill a cell with a number of instances of a text string
Formula
=REPT("*-", 3)
=REPT("-",10)
SHEET([value])
Returns the sheet number of the referenced sheet
Sheet Formula
RANK =SHEET(Sales_Data)
SHEETS([reference])
Returns the number of sheets in a reference
n Reference Optional. Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitt
Formula
=SHEETS()
TRANSPOSE(array)
Converts a vertical range of cells to a horizontal range, or vice versa
Data1
1
2
3
Data2 1 2 3
TYPE(value)
Returns an integer represnting the data type of a value: number = 1, text = 2; logical value = 4, error value = 16; array = 64
Data Formula
Marissa =TYPE(B236)
=TYPE("Ms. "&B236)
=TYPE(100/0)
=TYPE({1,2;3,4})
Data Formula
$ 1,000.00 =VALUE(B255)
02:45:30 AM =VALUE(B256)
Result Remarks
Displays the character represented by 65 in the
A computer's character set.
Displays the character represented by 33 in the
! computer's character set.
Result Remarks
65 Returns the numeric code of character A.
Returns the numeric code of the first character M of
77 Marissa text.
33 Returns the numeric code of character !
63 Returns the numeric code of character ?
Result Remarks
This formula cleans up the TAB and NEW LINE non-
Sales Data printable characters from the text.
Result Remarks
Removes all the spaces except for single spaces between
Excel Dashboard words
Removes all the spaces except for single spaces between
Titas Gas words
Result Remarks
15 Total 15 characters in the cell B30
0 No characters in the cell B31
4 4 Space characters in the cell B32
10 Before Marissa there are 3 space characters.
Result Remarks
Result Remarks
0 Not exactly same.
0 Not exactly same.
Looks exactly same. But second string has a space
0 character in it.
1 They are exactly same.
Result Remarks
The formula returns the formula in cell B74 as a text
=SUM(5, 10, 15, 50) string
The formula returns the formula in cell B75 as a text
=NOW() string
The formula returns the formula in cell B76 as a text
=TODAY() string
Warnings
XT function returns what is displayed in the formula bar if you select the referenced cell.
gument can be to another worksheet or workbook.
rgument is to another workbook that is not open, FORMULATEXT returns the #N/A error value.
rgument is to an entire row or column, or to a range or defined name containing more than one cell, FORMULATEXT
the upper leftmost cell of the row, column, or range.
ases, FORMULATEXT returns the #N/A error value:
he Reference argument does not contain a formula.
e cell is longer than 8192 characters.
be displayed in the worksheet; for example, due to worksheet protection.
book that contains the formula is not open in Excel.
used as inputs will produce a #VALUE! error value.
nce to the cell in which you are entering the function as the argument won't result in a circular reference warning.
successfully return the formula as text in the cell.
Results Remarks
Excel Shows the first 5 characters from the cell B106.
Excel Dashboard Shows all the characters from the cell B106.
Dashboard Shows only the Dashboard part of cell B106.
Tools Shows the Tools part from the string in the cell B108.
Warnings (MID)
eater than the length of text, MID returns "" (empty text).
ss than the length of text, but start_num plus num_chars exceeds the length of text, MID returns the characters up to the
Warnings (RIGHT)
be greater than or equal to zero.
eater than the length of text, RIGHT returns all of text.
mitted, it is assumed to be 1.
to lowercase
Result Remarks
excel dashboard Converts all letters to lowercase.
Converts the text strings to proper case. M and K are now
Marissa Kawser in uppercase.
EXCEL BI TOOLS Coverts the text string to all uppercase letters.
Result Remarks
Warnings
is 0 (zero), REPT returns "" (empty text).
is not an integer, it is truncated.
REPT function cannot be longer than 32,767 characters, or REPT returns #VALUE!.
Warnings
is 0 (zero), REPT returns "" (empty text).
is not an integer, it is truncated.
REPT function cannot be longer than 32,767 characters, or REPT returns #VALUE!.
he sheet number. If value is omitted, SHEET returns the number of the sheet that contains the function.
Result Remarks
Showing the Sheet number of "LIST OF FUNCTIONS"
2 worksheet.
10 Showing the Sheet number of the current worksheet.
Showing the Sheet number where the Sales_Data named
8 range available.
Warnings
l worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).
ment is not a valid value, SHEET returns the #REF! error value. For example, =SHEET(Sheet1!#REF) will return the #REF!
ment is a sheet name that is not valid, SHEET returns the #NA error value. For example =SHEET(“badSheetName”) will
r value.
able in the Object Model (OM) because the Object Model already includes similar functionality.
it contains. If Reference is omitted, SHEETS returns the number of sheets in the workbook that contains the function.
Result Remarks
The formula returns the total number of worksheets in
12 this workbook.
Warnings
all worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).
a valid value, SHEETS returns the #REF! error value.
ilable in the Object Model (OM) because the Object Model already includes similar functionality.
Warnings
all worksheets (visible, hidden, or very hidden) in addition to all other sheet types (macro, chart, or dialog sheets).
a valid value, SHEETS returns the #REF! error value.
ilable in the Object Model (OM) because the Object Model already includes similar functionality.
Result Remarks
Returns the type of the value in B236. The Text type is
2 indicated by 2.
2 Returns the type of "Mrs. Marissa", which is a Text.
Warnings
ul when you are using functions that can accept different types of data, such as ARGUMENT and INPUT. Use TYPE to find
ta is returned by a function or formula.
YPE to determine whether a cell contains a formula. TYPE only determines the type of the resulting, or displayed, value. If
nce to a cell that contains a formula, TYPE returns the type of the formula's resulting value.
Result Remarks
1000 Converts the value in cell B255 into a number.
0.114930555555556 Converts the value in cell B256 into a number.
Warnings
y of the constant number, date, or time formats recognized by Microsoft Excel. If text is not in one of these formats,
VALUE! error value.
ally need to use the VALUE function in a formula because Excel automatically converts text to numbers as necessary. This
for compatibility with other spreadsheet programs.
s reading order, in a reference
ULATEXT
ning.
ers up to the
ers up to the
ets).
the #REF!
me”) will
eets).
eets).
TYPE to find
yed, value. If
rmats,
cessary. This
Courtesy: ExcelDemy.com
RANK(number, ref, [order])
This function is available for compatibility with Excel 2007 and other.
Returns the rank of a number in a list of numbers: its size relative to other values in the list
90 =RANK.EQ(B48, B42:B49, 1) 1
87 =RANK.EQ(B49, B42:B49, 1) 7
98 7
96
85
85
98 If Order is 0 (zero) or omitted, Excel ranks Number as
If Order is any nonzero value, Excel ranks Number as
RANK.EQ gives duplicate numbers the same rank. Ho
numbers. For example, in a list of integers sorted in asc
would have a rank of 7 (no number would have a rank o
Back to LIST OF FUNCTIONS
Remarks
Order is 0 or omitted, the values are arranged in descending order.
RANK function gives duplicate numbers same rank.
Order is 1, the values are arranged in ascending order.
Order is 0 or omitted, the values are arranged in descending order.
Warnings
mbers the same rank. However, the presence of duplicate numbers affects the ranks of subsequent
a list of integers sorted in ascending order, if the number 10 appears twice and has a rank of 5, then 11
number would have a rank of 6).
an one value has the same rank, the average rank is returned
Remarks
Numbers are arranged in descending order and 90 ranks 4.
You get the average rank of number 85 when the numbers are in ascending
order.
You get the average rank of number 98 when the numbers are in ascending
order.
Warnings
itted, Excel ranks number as if ref were a list sorted in descending order.
alue, Excel ranks number as if ref were a list sorted in ascending order.
an one value has the same rnak, the top rank of that set of values is returned
Remarks
Numbers are arranged in descending order and 90 ranks 4.
You get the top rank of number 85 when the numbers are in ascending
order.
You get the top rank of number 98 when the numbers are in ascending
order.
You get the top rank of number 98 when the numbers are in ascending
order.
Warnings
itted, Excel ranks Number as if Ref were a list sorted in descending order.
alue, Excel ranks Number as if Ref were a list sorted in ascending order.
numbers the same rank. However, the presence of duplicate numbers affects the ranks of subsequent
a list of integers sorted in ascending order, if the number 10 appears twice and has a rank of 5, then 11
number would have a rank of 6).
AND(logical1, [logical2], [logical3], [logical4], …)
Checks whether all arguments are TRUE, and returns TRUE when all arguments are TRUE
W
The arguments must evaluate to logical values, such as TRUE or FAL
values.
If an array or reference argument contains text or empty cells, those
If the specified range contains no logical values, the AND function r
W
The arguments must evaluate to logical values such as TRUE or FALS
If an array or reference argument contains text or empty cells, those
If the specified range contains no logical values, OR returns the #VA
You can use an OR array formula to see if a value occurs in an array.
Back to LIST OF FUNCTIONS
NOT(logical)
Changes FALSE to TRUE, or TRUE to FALSE
W
The arguments must evaluate to logical values such as TRUE or FALS
If an array or reference argument contains text or empty cells, those
If the specified range contains no logical values, XOR returns the #V
You can use an XOR array formula to see if a value occurs in an array
The result of XOR is TRUE when the number of TRUE inputs is odd a
Warnings
The arguments must evaluate to logical values, such as TRUE or FALSE, or the arguments must be arrays or references that c
values.
If an array or reference argument contains text or empty cells, those values are ignored.
If the specified range contains no logical values, the AND function returns the #VALUE! error value.
[logical3], [logical4], …)
RUE, and returns TRUE or FALSE. Returns FALSE only when all arguments are FALSE
Warnings
The arguments must evaluate to logical values such as TRUE or FALSE, or in arrays or references that contain logical values.
If an array or reference argument contains text or empty cells, those values are ignored.
If the specified range contains no logical values, OR returns the #VALUE! error value.
You can use an OR array formula to see if a value occurs in an array. To enter an array formula, press CTRL+SHIFT+ENTER.
Warnings
The arguments must evaluate to logical values such as TRUE or FALSE, or in arrays or references that contain logical values.
If an array or reference argument contains text or empty cells, those values are ignored.
If the specified range contains no logical values, XOR returns the #VALUE! error value.
You can use an XOR array formula to see if a value occurs in an array. To enter an array formula, press Ctrl+Shift+Enter.
The result of XOR is TRUE when the number of TRUE inputs is odd and FALSE when the number of TRUE inputs is even.
arrays or references that contain logical
ss CTRL+SHIFT+ENTER.
at contain logical values.
ess Ctrl+Shift+Enter.
TRUE inputs is even.