Advanced Excel Functions Tutorial
Advanced Excel Functions Tutorial
Audience
This tutorial is intended for people who use Excel but are intimidated by the concept of
formulas and functions.
Prerequisites
This tutorial assumes your familiarity with basic fomulas for calculations in Excel.
All the content and graphics published in this e-book are the property of Tutorials Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish
any contents or a part of contents of this e-book in any manner without written consent
of the publisher.
We strive to update the contents of our website and tutorials as timely and as precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our
website or its contents including this tutorial. If you discover any errors on our website or
in this tutorial, please notify us at [email protected]
i
Advanced Excel Functions
Table of Contents
About the Tutorial ............................................................................................................................................ i
Audience ........................................................................................................................................................... i
Prerequisites ..................................................................................................................................................... i
Copyright & Disclaimer ..................................................................................................................................... i
Table of Contents ............................................................................................................................................ ii
COMPATIBILITY FUNCTIONS........................................................................................................ 1
3. BETAINV Function.................................................................................................................................. 6
ii
Advanced Excel Functions
iii
Advanced Excel Functions
iv
Advanced Excel Functions
v
Advanced Excel Functions
vii
Advanced Excel Functions
ix
Advanced Excel Functions
x
Advanced Excel Functions
xi
Advanced Excel Functions
xiv
Advanced Excel Functions
xix
Advanced Excel Functions
Compatibility Functions
1
1. Compatibility Functions – Overview Advanced Excel Functions
In Excel 2010 or later, the functions listed in this category were replaced with new
functions that provide improved accuracy and have names that reflect their usage better.
The new functions can be found in Statistical functions and Math and trigonometry
functions. If backward compatibility is not required, you should start using the new
functions.
You can still use these earlier versions of functions for compatibility with earlier versions
of Excel. If you are using Excel 2007, you will find these functions in the Statistical or
Math & Trig categories on the Formulas tab.
Compatibility Functions
The following table lists all the Compatibility functions-
1 BETADIST
Returns the cumulative beta probability density function
2 BETAINV
Returns the inverse of the cumulative beta probability density function
3 BINOMDIST
Returns the individual term binomial distribution probability
CEILING
4 Rounds a number to the nearest integer or to the nearest multiple of
significance
5 CHIDIST
Returns the one-tailed probability of the chi-squared distribution
CHIINV
6 Returns the inverse of the one-tailed probability of the chi-squared
distribution
7 CHITEST
Returns the test for independence
8 CONFIDENCE
Returns the confidence interval for a population mean
9 COVAR
Returns covariance, the average of the products of paired deviations
CRITBINOM
10 Returns the smallest value for which the cumulative binomial distribution is
less than or equal to a criterion value
11 EXPONDIST
Returns the exponential distribution
12 FDIST
Returns the F probability distribution
2
Advanced Excel Functions
13 FINV
Returns the inverse of the F probability distribution
14 FLOOR
Rounds a number down, toward 0
15 FTEST
Returns the result of an F-Test
16 GAMMADIST
Returns the gamma distribution
17 GAMMAINV
Returns the inverse of the gamma cumulative distribution
18 HYPGEOMDIST
Returns the hypergeometric distribution
19 LOGINV
Returns the inverse of the lognormal distribution
20 LOGNORMDIST
Returns the cumulative lognormal distribution
21 MODE
Returns the most common value in a data set
22 NEGBINOMDIST
Returns the negative binomial distribution
23 NORMDIST
Returns the normal cumulative distribution
24 NORMINV
Returns the inverse of the normal cumulative distribution
25 NORMSDIST
Returns the standard normal cumulative distribution
26 NORMSINV
Returns the inverse of the standard normal cumulative distribution
27 PERCENTILE
Returns the kth percentile of values in a range
28 PERCENTRANK
Returns the percentage rank of a value in a data set
29 POISSON
Returns the Poisson distribution
30 QUARTILE
Returns the quartile of a data set
31 RANK
Returns the rank of a number in a list of numbers
STDEV
32 Estimates standard deviation based on a sample, ignoring text and logical
values
3
Advanced Excel Functions
STDEVP
33 Calculates standard deviation based on the entire population, ignoring text
and logical values
34 TDIST
Returns the student’s t-distribution
35 TINV
Returns the inverse of the student’s t-distribution
36 TTEST
Returns the probability associated with a student’s t-Test
37 VAR
Estimates variance based on a sample, ignoring logical values and text
VARP
38 Calculates variance based on the entire population, ignoring logical values
and text
39 WEIBULL
Returns the Weibull distribution
40 ZTEST
Returns the two-tailed P-value of a z-test
4
2. BETADIST Function Advanced Excel Functions
The BETADIST function replaces the BETA.DIST function from Excel 2010.
Description
This function returns the cumulative beta probability density function. The beta distribution
is commonly used to study variation in the percentage of something across samples.
Syntax
BETADIST(x,alpha,beta,[A],[B])
Arguments
Required
Argument Description
/Optional
The value between A and B at which to evaluate the
X Required
function.
Alpha A parameter of the distribution. Required
Beta A parameter of the distribution. Required
A A lower bound to the interval of x. Optional
B An upper bound to the interval of x. Optional
Notes
If any argument is nonnumeric, BETADIST returns the #VALUE! error value.
If you omit values for A and B, BETADIST uses the standard cumulative beta
distribution, so that A = 0 and B = 1
Example
5
3. BETAINV Function Advanced Excel Functions
The BETAINV function replaces the BETA.INV function from Excel 2010.
Description
The function returns the inverse of the cumulative beta probability density function for a
specified beta distribution. i.e.
The beta distribution can be used in project planning to model probable completion times
given an expected completion time and variability.
Syntax
BETAINV (probability,alpha,beta,[A],[B])
Arguments
Required
Argument Description
/Optional
Probability A probability associated with the beta distribution. Required
Alpha A parameter of the distribution. Required
Beta A parameter the distribution. Required
A A lower bound to the interval of x. Optional
B An upper bound to the interval of x. Optional
Notes
If you omit values for A and B, BETAINV uses the standard cumulative beta
distribution, so that A = 0 and B = 1
Given a value for probability, BETAINV seeks that value x such that BETADIST(x,
alpha, beta, A, B) = probability. Hence, precision of BETAINV depends on precision
of BETADIST
6
Advanced Excel Functions
Example
7
4. BINOMDIST Function Advanced Excel Functions
The BINOMDIST function replaces the BINOM.DIST function from Excel 2010.
Description
The function returns the individual term binomial distribution probability. Use BINOMDIST
in problems with a fixed number of tests or trials, when the outcomes of any trial are only
success or failure, when trials are independent, and when the probability of success is
constant throughout the experiment.
Syntax
BINOMDIST (number_s,trials,probability_s,cumulative)
Arguments
Required
Argument Description
/Optional
Number_s The number of successes in trials. Required
Notes
Number_s and trials are truncated to integers.
If number_s < 0 or number_s > trials, BINOMDIST returns the #NUM! error value.
8
Advanced Excel Functions
Where is COMBIN(n,x).
Example
9
5. CEILING Function Advanced Excel Functions
Description
The CEILING function returns a number rounded up, away from zero, to the nearest
multiple of significance.
Syntax
CEILING (number, significance)
Arguments
Argument Description Required
/Optional
Number The value you want to round. Required
Notes
Regardless of the sign of number, a value is rounded up when adjusted away from
zero. If the number is an exact multiple of significance, no rounding occurs.
If the number is negative, and significance is negative, the value is rounded down,
away from zero.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016.
10
Advanced Excel Functions
Example
11
6. CHIDIST Function Advanced Excel Functions
The CHIDIST function replaces the CHISQ.DIST.RT function from Excel 2010.
Description
The function returns the right-tailed probability of the chi-squared distribution. The χ2
distribution is associated with a χ2 test. Use the χ2 test to compare the observed and the
expected values. By comparing the observed results with the expected ones, you can
decide whether your original hypothesis is valid.
Syntax
CHIDIST(x,deg_freedom)
Arguments
Argument Description Required
/Optional
X The value at which you want to evaluate the Required
distribution.
Deg_freedom The number of degrees of freedom. Required
Notes
CHIDIST is calculated as CHIDIST = P(X>x), where X is a χ 2 random variable.
If deg_freedom is not an integer, it is truncated.
If either argument is nonnumeric, CHIDIST returns the #VALUE! error value.
If x is negative, CHIDIST returns the #NUM! error value.
If deg_freedom < 1 or deg_freedom > 10^10, CHIDIST returns the #NUM! error
value.
Example
12
7. CHIINV Function Advanced Excel Functions
Description
The function returns the inverse of the right-tailed probability of the chi-squared
distribution.
Use this function to compare the observed results with the expected ones in order to decide
whether your original hypothesis is valid.
Syntax
CHIINV (probability,deg_freedom)
Arguments
Argument Description Required
/Optional
Probability A probability associated with the chi-squared Required
distribution.
Deg_freedom The number of degrees of freedom. Required
Notes
If deg_freedom is not an integer, it is truncated.
If probability < 0 or probability > 1, CHIINV returns the #NUM! error value.
Given a value for probability, CHIINV seeks value x such that CHIDIST(x,
deg_freedom) = probability. Hence, precision of CHIINV depends on precision of
CHIDIST. CHIINV uses an iterative search technique. If the search has not
converged after 100 iterations, the function returns the #N/A error value.
13
Advanced Excel Functions
Example
14
8. CHITEST Function Advanced Excel Functions
Description
The function returns the test for independence. CHITEST returns the value from the chi-
squared (χ2) distribution for the statistic and the appropriate degrees of freedom. You can
use χ2 tests to determine whether hypothesized results are verified by an experiment.
Syntax
HITEST (actual_range,expected_range)
Arguments
Required
Argument Description
/Optional
The range of data that contains observations to test
Actual_range Required
against expected values.
The range of data that contains the ratio of the
Expected_range product of row totals and column totals to the grand Required
total.
Notes
The χ2 test first calculates a χ2 statistic using the formula-
Where-
Aij = actual frequency in the i-th row, j-th column
Eij = expected frequency in the i-th row, j-th column
r = number of rows
c = number of columns
CHITEST returns the probability that a value of the χ 2 statistic at least as high as
the value calculated by the above formula could have happened by chance under
the assumption of independence. In computing this probability, CHITEST uses the
χ2 distribution with an appropriate number of degrees of freedom, df. If r > 1 and
c > 1, then df = (r - 1)(c - 1). If r = 1 and c > 1, then df = c - 1 or if r > 1 and c
= 1, then df = r - 1. (r = c= 1) is not allowed and #N/A is returned.
If actual_range and expected_range have a different number of data points,
CHITEST returns the #N/A error value.
15
Advanced Excel Functions
Use of CHITEST is most appropriate when the values of Eij are not too small. Some
statisticians suggest that each Eij should be greater than or equal to 5.
Example
16
9. CONFIDENCE Function Advanced Excel Functions
Description
The CONFIDENCE function returns the confidence interval for a population mean, using a
normal distribution.
The confidence interval is a range of values. Your sample mean, x, is at the center of this
range and the range is x ± CONFIDENCE. For any population mean μ0, in this range, the
probability of obtaining a sample mean further from μ0 than x is greater than alpha.
For any population mean, μ0, not in this range, the probability of obtaining a sample mean
further from μ0 than x is less than alpha.
In other words, assume that we use x, standard_dev, and size to construct a two-tailed
test at significance level alpha of the hypothesis that the population mean is μ 0. Then we
will not reject that hypothesis if μ0 is in the confidence interval and will reject that
hypothesis if μ0 is not in the confidence interval.
The confidence interval does not allow us to infer that there is probability 1 – alpha that
our next package will take a delivery time that is in the confidence interval.
Syntax
CONFIDENCE (alpha,standard_dev,size)
Arguments
Required
Argument Description
/Optional
The significance level used to compute the
confidence level.
The confidence level equals
Alpha Required
00*(1 - alpha)%, or in other words,
an alpha of 0.05 indicates a 95 percent confidence
level.
The population standard deviation for the data
Standard_dev Required
range and is assumed to be known.
Size The sample size. Required
Notes
If we assume Alpha equals 0.05, we need to calculate the area under the standard
normal curve that equals (1 - alpha), or 95 percent. This value is ± 1.96. The
confidence interval is therefore-
17
Advanced Excel Functions
Example
18
10. COVAR Function Advanced Excel Functions
The COVAR function in Excel 2013 replaces the COVARIANCE.P function in Excel 2010.
Description
The function returns covariance, the average of the products of deviations for each data
point pair in two data sets. Use covariance to determine the relationship between two data
sets.
Syntax
COVAR (array1, array2)
Arguments
Argument Description Required
/Optional
Array1 The first cell range of integers. Required
Array2 The second cell range of integers. Required
Notes
Covariance is given by-
Where are the sample means of AVERAGE (array1) and AVERAGE (array2),
and n is the sample size.
The arguments must be either numbers, names, arrays, or references that contain
numbers.
If array1 and array2 have different numbers of data points, COVAR returns the
#N/A error value.
If either of the arrays, array1 or array2 is empty, COVAR returns the #DIV/0! error
value.
19
Advanced Excel Functions
Example
20
11. CRITBINOM Function Advanced Excel Functions
Description
The function returns the smallest value for which the cumulative binomial distribution is
greater than or equal to a criterion value. Use this function for quality assurance
applications.
Syntax
CRITBINOM (trials,probability_s,alpha)
Arguments
Argument Description Required
/Optional
Trials The number of Bernoulli trials. Required
Probability_s The probability of a success on each trial. Required
Alpha The criterion value. Required
Notes
If trials is not an integer, it is truncated.
If any argument is nonnumeric, CRITBINOM returns the #VALUE! error value.
If trials < 0, CRITBINOM returns the #NUM! error value.
If probability_s is < 0 or probability_s > 1, CRITBINOM returns the #NUM! error
value.
If alpha < 0 or alpha > 1, CRITBINOM returns the #NUM! error value.
Example
21
12. EXPONDIST Function Advanced Excel Functions
The EXPONDIST function in Excel 2013 replaces the EXPON.DIST function in Excel 2010.
Description
The function returns the exponential distribution. Use EXPONDIST to model the time
between events, such as how long an automated bank teller takes to deliver cash.
Syntax
EXPONDIST(x,lambda,cumulative)
Arguments
Required
Argument Description
/Optional
X The value of the function. Required
Lambda The parameter value. Required
A logical value that indicates which form of the
exponential function to provide.
Notes
If x or lambda is nonnumeric, EXPONDIST returns the #VALUE! error value.
If x < 0, EXPONDIST returns the #NUM! error value.
If lambda ≤ 0, EXPONDIST returns the #NUM! error value.
The equation for the probability density function is-
22
Advanced Excel Functions
Example
23
13. FDIST Function Advanced Excel Functions
Description
The function returns the (right-tailed) F probability distribution (degree of diversity) for
two data sets. You can use this function to determine whether two data sets have different
degrees of diversity.
Syntax
FDIST(x,deg_freedom1,deg_freedom2)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
Notes
FDIST is calculated as
FDIST=P (F>x)
Where F is a random variable that has an F distribution with deg_freedom1 and
deg_freedom2 degrees of freedom.
If deg_freedom1 or deg_freedom2 is not an integer, it is truncated.
If any argument is nonnumeric, FDIST returns the #VALUE! error value.
If x is negative, FDIST returns the #NUM! error value.
If deg_freedom1 < 1 or deg_freedom1 ≥ 10^10, FDIST returns the #NUM! error
value.
24
Advanced Excel Functions
Example
25
14. FINV Function Advanced Excel Functions
Description
The function returns the inverse of the (right-tailed) F probability distribution.
The F distribution can be used in an F-test that compares the degree of variability in two
data sets.
Syntax
FINV (probability,deg_freedom1,deg_freedom2)
Arguments
Argument Description Required
/Optional
Probability A probability associated with the F cumulative Required
distribution.
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
Notes
If any argument is nonnumeric, FINV returns the #VALUE! error value.
If probability < 0 or probability > 1, FINV returns the #NUM! error value.
Given a value for probability, FINV seeks that value of x such that FDIST(x,
deg_freedom1, deg_freedom2) = probability. Hence, precision of FINV depends on
the precision of FDIST. FINV uses an iterative search technique. If the search has
not converged after 100 iterations, the function returns the #N/A error value.
26
Advanced Excel Functions
Example
27
15. FLOOR Function Advanced Excel Functions
Description
The FLOOR function rounds number down, toward zero, to the nearest multiple of
significance.
Syntax
FLOOR (number, significance)
Arguments
Argument Description Required
/Optional
Number The numeric value you want to round. Required
Significance The multiple to which you want to round. Required
Notes
If the sign of number is positive, a value is rounded down and adjusted toward
zero.
If the sign of number is negative, a value is rounded down and adjusted away from
zero.
If either of the arguments is nonnumeric, FLOOR returns the #VALUE! error value.
If number is positive and significance is negative, FLOOR returns the #NUM! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
28
Advanced Excel Functions
Example
29
16. FTEST Function Advanced Excel Functions
Description
The function returns the result of an F-test. An F-test returns the two-tailed probability
that the variances in array1 and array2 are not significantly different. Use this function to
determine whether two samples have different variances.
Syntax
FTEST (array1, array2)
Arguments
Argument Description Required
/Optional
Array1 The first array or range of data. Required
Array2 The second array or range of data. Required
Notes
The arguments must be either numbers or names, arrays, or references that
contain numbers.
If the number of data points in array1 or array2 is less than 2, or if the variance of
array1 or array2 is zero, FTEST returns the #DIV/0! error value.
The F-test value that is returned by the LINEST function differs from the F-test
value that is returned by the FTEST function. LINEST returns the F statistic,
whereas FTEST returns the probability.
30
Advanced Excel Functions
Example
31
17. GAMMADIST Function Advanced Excel Functions
Description
The function returns the gamma distribution. You can use this function to study variables
that may have a skewed distribution. The gamma distribution is commonly used in queuing
analysis.
Syntax
GAMMADIST(x,alpha,beta,cumulative)
Arguments
Required/
Argument Description
Optional
The value at which you want to evaluate the
X Required
distribution.
Alpha A parameter to the distribution. Required
A parameter to the distribution.
Beta If beta = 1, GAMMADIST returns the standard Required
gamma distribution.
A logical value that determines the form of the
function.
If cumulative is TRUE, GAMMADIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, GAMMADIST returns the
probability density function.
Notes
The equation for the gamma probability density function is-
For a positive integer n, when alpha = n/2, beta = 2, and cumulative = TRUE,
GAMMADIST returns (1 - CHIDIST(x)) with n degrees of freedom
Example
33
18. GAMMAINV Function Advanced Excel Functions
Description
The function returns the inverse of the gamma cumulative distribution.
You can use this function to study a variable whose distribution may be skewed.
Syntax
GAMMAINV (probability,alpha,beta)
Arguments
Required
Argument Description
/Optional
The probability associated with the gamma
Probability Required
distribution.
Alpha A parameter to the distribution. Required
A parameter to the distribution.
Beta If beta = 1, GAMMAINV returns the standard Required
gamma distribution.
Notes
If any argument is text, GAMMAINV returns the #VALUE! error value.
If probability < 0 or probability > 1, GAMMAINV returns the #NUM! error value.
If alpha ≤ 0 or if beta ≤ 0, GAMMAINV returns the #NUM! error value.
Given a value for probability, GAMMAINV seeks that value of x such that
GAMMADIST(x, alpha, beta, TRUE) = probability. Hence, precision of GAMMAINV
depends on precision of GAMMADIST. GAMMAINV uses an iterative search
technique. If the search has not converged after 100 iterations, the function returns
the #N/A error value.
34
Advanced Excel Functions
Example
35
19. HYPGEOMDIST Function Advanced Excel Functions
Description
The function returns the hypergeometric distribution. HYPGEOMDIST returns the
probability of a given number of sample successes, given the sample size, population
successes, and population size.
Use HYPGEOMDIST for problems with a finite population, where each observation is either
a success or a failure, and where each subset of a given size is chosen with equal likelihood.
Syntax
HYPGEOMDIST (sample_s,number_sample,population_s,number_pop)
Arguments
Argument Description Required
/Optional
Sample_s The number of successes in the sample. Required
Number_sample The size of the sample. Required
Population_s The number of successes in the population. Required
Number_pop The population size. Required
Notes
The equation for the hypergeometric distribution is-
Where-
x = sample_s
n = number_sample
M = population_s
N = number_population
36
Advanced Excel Functions
Example
37
20. LOGINV Function Advanced Excel Functions
Description
The function returns the inverse of the lognormal cumulative distribution function of x,
where ln(x) is normally distributed with parameters mean and standard_dev.
Syntax
LOGINV (probability, mean, standard_dev)
Arguments
Argument Description Required
/Optional
Probability A probability associated with the lognormal Required
distribution.
Mean The mean of ln(x). Required
Standard_dev The standard deviation of ln(x). Required
Notes
The inverse of the lognormal distribution function is-
Example
38
21. LOGNORMDIST Function Advanced Excel Functions
Description
The function returns the cumulative lognormal distribution of x, where ln(x) is normally
distributed with parameters mean and standard_dev.
Use this function to analyze data that has been logarithmically transformed.
Syntax
LOGNORMDIST(x,mean,standard_dev)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Mean The mean of ln(x). Required
Standard_dev The standard deviation of ln(x). Required
Notes
The equation for the lognormal cumulative distribution function is-
Example
39
22. MODE Function Advanced Excel Functions
Description
The function returns the most frequently occurring, or repetitive, value in an array or
range of data.
Syntax
MODE (number1,[number2],...)
Arguments
Required
Argument Description
/Optional
The first number argument for which you want to
Number1 Required
calculate the mode.
Number arguments 2 to 255 for which you want to
calculate the mode.
Number2, ... Optional
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Notes
The MODE function measures the central tendency, which is the location of the
center of a group of numbers in a statistical distribution.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If the data set contains no duplicate data points, MODE returns the #N/A error
value.
40
Advanced Excel Functions
Example
41
23. NEGBINOMDIST Function Advanced Excel Functions
Description
The function returns the negative binomial distribution. NEGBINOMDIST returns the
probability that there will be number_f failures before the number_s-th success, when the
constant probability of a success is probability_s.
This function is similar to the binomial distribution, except that the number of successes
is fixed, and the number of trials is variable. Like the binomial, trials are assumed
independent.
Syntax
NEGBINOMDIST (number_f,number_s,probability_s)
Arguments
Argument Description Required
/Optional
Number_f The number of failures. Required
Number_s The threshold number of successes. Required
Probability_s The probability of a success. Required
Notes
The equation for the negative binomial distribution is-
Where-
x is number_f, r is number_s, and p is probability_s.
If number_f < 0 or number_s < 1, NEGBINOMDIST returns the #NUM! error value.
42
Advanced Excel Functions
Example
43
24. NORMDIST Function Advanced Excel Functions
Description
The function returns the normal distribution for the specified mean and standard deviation.
This function has a very wide range of applications in statistics, including hypothesis
testing.
Syntax
NORMDIST(x,mean,standard_dev,cumulative)
Arguments
Required
Argument Description
/Optional
X The value for which you want the distribution. Required
Mean The arithmetic mean of the distribution. Required
Standard_dev The standard deviation of the distribution. Required
A logical value that determines the form of the function.
If cumulative is TRUE, NORMDIST returns the
Cumulative cumulative distribution function. Required
If cumulative is FALSE, NORMDIST returns the
probability mass function.
Notes
The equation for the normal density function (cumulative = FALSE) is-
When cumulative = TRUE, the formula is the integral from negative infinity to x of
the given formula.
44
Advanced Excel Functions
Example
45
25. NORMINV Function Advanced Excel Functions
Description
The function returns the inverse of the normal cumulative distribution for the specified
mean and standard deviation.
Syntax
NORMINV (probability,mean,standard_dev)
Arguments
Required
Argument Description
/Optional
A probability corresponding to the normal
Probability Required
distribution.
Mean The arithmetic mean of the distribution. Required
Standard_dev The standard deviation of the distribution. Required
Notes
If any argument is nonnumeric, NORMINV returns the #VALUE! error value.
If probability <= 0 or if probability >= 1, NORMINV returns the #NUM! error value.
Given a value for probability, NORMINV seeks that value x such that NORMDIST(x,
mean, standard_dev, TRUE) = probability. Hence, precision of NORMINV depends
on precision of NORMDIST. NORMINV uses an iterative search technique. If the
search has not converged after 100 iterations, the function returns the #N/A error
value.
46
Advanced Excel Functions
Example
47
26. NORMSDIST Function Advanced Excel Functions
Description
The function returns the standard normal cumulative distribution function. The distribution
has a mean of 0 (zero) and a standard deviation of one. Use this function in place of a
table of standard normal curve areas.
Syntax
NORMSDIST (z)
Arguments
Argument Description Required
/Optional
Z The value for which you want the distribution. Required
Notes
The equation for the standard normal density function is-
Example
48
27. NORMSINV Function Advanced Excel Functions
Description
The function returns the inverse of the standard normal cumulative distribution. The
distribution has a mean of zero and a standard deviation of one.
Syntax
NORMSINV (probability)
Arguments
Argument Description Required
/Optional
Probability A probability corresponding to the normal Required
distribution.
Notes
If Probability is nonnumeric, NORMSINV returns the #VALUE! error value.
Given a value for Probability, NORMSINV seeks that value z such that NORMSDIST
(z) = probability. Hence, precision of NORMSINV depends on precision of
NORMSDIST. NORMSINV uses an iterative search technique. If the search has not
converged after 100 iterations, the function returns the #N/A error value.
Example
49
28. PERCENTILE Function Advanced Excel Functions
Description
The function returns the k-th percentile of values in a range. You can use this function to
establish a threshold of acceptance.
Syntax
PERCENTILE (array,k)
Arguments
Argument Description Required
/Optional
Array The array or range of data that defines relative Required
standing.
K The percentile value in the range 0...1, inclusive. Required
Notes
If k is not a multiple of 1/(n - 1), PERCENTILE interpolates to determine the value
at the k-th percentile.
Example
50
29. PERCENTRANK Function Advanced Excel Functions
Description
The function returns the rank of a value in a data set as a percentage of the data set. This
function can be used to evaluate the relative standing of a value within a data set.
Syntax
PERCENTRANK (array,x,[significance])
Arguments
Required
Argument Description
/Optional
The array or range of data with numeric values that
Array Required
defines relative standing.
X The value for which you want to know the rank. Required
A value that identifies the number of significant
Significance digits for the returned percentage value. Optional
If omitted, PERCENTRANK uses three digits (0.xxx).
Notes
If x does not match one of the values in array, PERCENTRANK interpolates to return
the correct percentage rank.
51
Advanced Excel Functions
Example
52
30. POISSON Function Advanced Excel Functions
Description
The function returns the Poisson distribution. A common application of the Poisson
distribution is predicting the number of events over a specific time.
Syntax
POISSON(x,mean,cumulative)
Arguments
Required
Argument Description
/Optional
X The number of events. Required
Mean The expected numeric value. Required
A logical value that determines the form of the probability
distribution returned.
If cumulative is TRUE, POISSON returns the cumulative
Poisson probability that the number of random events
Cumulative Required
occurring will be between zero and x inclusive.
If cumulative is FALSE, POISSON returns the Poisson
probability mass function that the number of events
occurring will be exactly x.
Notes
POISSON is calculated as follows-
o For cumulative = FALSE,
53
Advanced Excel Functions
Example
54
31. QUARTILE Function Advanced Excel Functions
Description
The function returns the quartile of a data set. Quartiles often are used in sales and survey
data to divide populations into groups.
Syntax
QUARTILE (array,quart)
Arguments
Argument Description Required
/Optional
Array The array or cell range of numeric values for which you Required
want the quartile value.
Quart Indicates which value to return. Required
Look at the Quart Table below.
Quart Table
Quart QUARTILE returns
0 Minimum value
4 Maximum value
Notes
If quart is not an integer, it is truncated.
MIN, MEDIAN, and MAX return the same value as QUARTILE when quart is equal
to 0 (zero), 2, and 4, respectively.
55
Advanced Excel Functions
Example
56
32. RANK Function Advanced Excel Functions
Description
The function returns the rank of a number in a list of numbers. The rank of a number is
its size relative to other values in a list.
If you sort the list, the rank of the number would be its position.
Syntax
RANK (number,ref,[order])
Arguments
Required
Argument Description
/Optional
Number The number whose rank you want to find. Required
An array of, or a reference to, a list of numbers.
Ref Required
Nonnumeric values in ref are ignored.
A number specifying how to rank number.
If order is 0 (zero) or omitted, Microsoft Excel ranks
Order number as if ref were a list sorted in descending order. Optional
If order is any nonzero value, Microsoft Excel ranks
number as if ref were a list sorted in ascending order.
Notes
RANK gives duplicate numbers the same rank. However, the presence of duplicate
numbers affects the ranks of subsequent numbers.
For some purposes, one might want to use a definition of rank that considers ties.
This can be done by adding the following correction factor to the value returned by
RANK. This correction factor is appropriate both for the case where rank is
computed in descending order (order = 0 or omitted) or ascending order (order =
nonzero value).
57
Advanced Excel Functions
Example
58
33. STDEV Function Advanced Excel Functions
Description
The function estimates standard deviation based on a sample. The standard deviation is a
measure of how widely values are dispersed from the average value (the mean).
Syntax
STDEV (number1,[number2],...)
Arguments
Required
Argument Description
/Optional
The first number argument corresponding to a sample of
Number1 Required
a population.
Number arguments 2 to 255 corresponding to a sample of
a population.
Number2, ... Optional
You can also use a single array or a reference to an array
instead of arguments separated by commas.
Notes
STDEV uses the following formula-
STDEV assumes that its arguments are a sample of the population. If your data
represents the entire population, then compute the standard deviation using
STDEVP
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
59
Advanced Excel Functions
Arguments that are error values or text that cannot be translated into numbers
cause errors.
Example
60
34. STDEVP Function Advanced Excel Functions
Description
The function calculates the standard deviation based on the entire population given as
arguments. The standard deviation is a measure of how widely values are dispersed from
the average value (the mean).
Syntax
STDEVP (number1,[number2],...)
Arguments
Required
Argument Description
/Optional
Notes
STDEVP assumes that its arguments are the entire population. If your data
represents a sample of the population, then compute the standard deviation using
STDEV
For large sample sizes, STDEV and STDEVP return approximately equal values.
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
cause errors.
61
Advanced Excel Functions
Example
62
35. TDIST Function Advanced Excel Functions
The TDIST function replaces the T.DIST.2T & T.DIST.RT functions in Excel 2010.
Description
The function returns the Percentage Points (probability) for the Student t-distribution
where a numeric value (x) is a calculated value of t for which the Percentage Points are to
be computed. The t-distribution is used in the hypothesis testing of small sample data
sets. Use this function in place of a table of critical values for the t-distribution.
Syntax
TDIST(x,deg_freedom,tails)
Arguments
Required
Argument Description
/Optional
The numeric value at which to evaluate the
X Required
distribution.
An integer indicating the number of degrees of
Deg_freedom Required
freedom.
Specifies the number of distribution tails to return.
If Tails = 1, TDIST returns the one-tailed
Tails distribution. Required
If Tails = 2, TDIST returns the two-tailed
distribution.
Notes
If Tails = 1, TDIST is calculated as TDIST = P( X>x ), where X is a random variable
that follows the t-distribution. If Tails = 2, TDIST is calculated as TDIST = P(|X| >
x) = P(X > x or X < -x)
If Tails is any value other than 1 or 2, TDIST returns the #NUM! error value.
Since x < 0 is not allowed, to use TDIST when x < 0, note that TDIST(-x,df,1) = 1
– TDIST(x,df,1) = P(X > -x) and TDIST(-x,df,2) = TDIST(x,df,2) = P(|X| > x)
63
Advanced Excel Functions
Example
64
36. TINV Function Advanced Excel Functions
Description
The function returns the two-tailed inverse of the student's t-distribution.
Syntax
TINV (probability,deg_freedom)
Arguments
Required
Argument Description
/Optional
The probability associated with the two-tailed
Probability Required
Student's t-distribution.
The number of degrees of freedom with which to
Deg_freedom Required
characterize the distribution.
Notes
TINV returns the value t, such that P(|X| > t) = probability where X is a random
variable that follows the t-distribution and P(|X| > t) = P(X < -t or X > t)
If probability <= 0 or if probability > 1, TINV returns the #NUM! error value.
Given a value for probability, TINV seeks that value x such that TDIST(x,
deg_freedom, 2) = probability. Hence, precision of TINV depends on precision of
TDIST. TINV uses an iterative search technique. If the search has not converged
after 100 iterations, the function returns the #N/A error value.
65
Advanced Excel Functions
Example
66
37. TTEST Function Advanced Excel Functions
Description
The function returns the probability associated with a Student's t-Test.
Use TTEST to determine whether two samples are likely to have come from the same two
underlying populations that have the same mean.
Syntax
TTEST (array1,array2,tails,type)
Arguments
Required
Argument Description
/Optional
Array1 The first data set. Required
Array2 The second data set. Required
Specifies the number of distribution tails.
Tails If tails = 1, TTEST uses the one-tailed distribution. Required
If tails = 2, TTEST uses the two-tailed distribution.
The kind of t-Test to perform.
Type Required
Look at the t-Test Table given below.
t-Test Table
Type t-Test to Perform
1 Paired
Notes
TTEST uses the data in array1 and array2 to compute a non-negative t-statistic. If
tails=1, TTEST returns the probability of a higher value of the t-statistic under the
assumption that array1 and array2 are samples from populations with the same
mean. The value returned by TTEST when tails=2 is double that returned when
tails=1 and corresponds to the probability of a higher absolute value of the t-
statistic under the “same population means” assumption.
67
Advanced Excel Functions
If array1 and array2 have a different number of data points, and type = 1 (paired),
TTEST returns the #N/A error value.
If tails is any value other than 1 or 2, TTEST returns the #NUM! error value.
Example
68
38. VAR Function Advanced Excel Functions
Description
The function estimates variance based on a sample.
Syntax
VAR (number1,[number2],...)
Arguments
Argument Description Required
/Optional
Number1 The first number argument corresponding to a Required
sample of a population.
Number2, ... Number arguments 2 to 255 corresponding to a Optional
sample of a population.
Notes
VAR uses the following formula:
VAR assumes that its arguments are a sample of the population. If your data
represents the entire population, then compute the variance by using VARP.
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
cause errors.
69
Advanced Excel Functions
Example
70
39. VARP Function Advanced Excel Functions
Description
The function calculates the variance based on the entire population.
Syntax
VARP (number1,[number2],...)
Arguments
Argument Description Required
/Optional
Number1 The first number argument corresponding to a Required
population.
Number2... Number arguments 2 to 255 corresponding to a Optional
population.
Notes
The equation for VARP is-
VARP assumes that its arguments are the entire population. If your data represents
a sample of the population, then compute the variance by using VAR.
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
cause errors.
71
Advanced Excel Functions
Example
72
40. WEIBULL Function Advanced Excel Functions
Description
The function returns the Weibull distribution. Use this distribution in reliability analysis,
such as calculating a device's mean time to failure.
Syntax
WEIBULL(x,alpha,beta,cumulative)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Alpha A parameter to the distribution. Required
Beta A parameter to the distribution. Required
Cumulative Determines the form of the function. Required
Notes
The equation for the Weibull cumulative distribution function is-
73
Advanced Excel Functions
Example
74
41. ZTEST Function Advanced Excel Functions
Description
The function returns the one-tailed probability-value of a z-test. For a given hypothesized
population mean, μ0, ZTEST returns the probability that the sample mean would be greater
than the average of observations in the data set (array) — that is, the observed sample
mean.
Syntax
ZTEST (array,x,[sigma])
Arguments
Argument Description Required
/Optional
Array The array or range of data against which to test x. Required
X The value to test. Required
Sigma The population (known) standard deviation. Optional
If omitted, the sample standard deviation is used.
Notes
ZTEST is calculated as follows when sigma is not omitted-
Where,
x is the sample mean AVERAGE(array),
s is the sample standard deviation STDEV(array).
n is the number of observations in the sample COUNT(array).
ZTEST represents the probability that the sample mean would be greater than the
observed value AVERAGE (array), when the underlying population mean is μ 0. From
the symmetry of the Normal distribution, if AVERAGE (array) < μ0, ZTEST will
return a value greater than 0.5
The following Excel formula can be used to calculate the two-tailed probability that
the sample mean would be further from μ0 (in either direction) than
AVERAGE(array), when the underlying population mean is μ0-
75
Advanced Excel Functions
Example
76
Advanced Excel Functions
Cube Functions
77
42. Cube Functions – Overview Advanced Excel Functions
The Excel Cube functions enable data from OLAP cubes to be brought into Excel to perform
calculations. These functions are supported with a connection to Microsoft SQL Server
2005 Analysis Services or later data source.
As PowerPivot creates a data source, which is compatible with OLAP cubes, it can also be
used with these functions.
Cube Functions
The following table lists all the Cube functions-
CUBEKPIMEMBER
1 Returns a key performance indicator name, property, and measure, and displays
the name and property in the cell.
CUBEMEMBER
2
Returns a member or tuple in a cube hierarchy.
CUBEMEMBERPROPERTY
3
Returns the value of a member property in the cube.
CUBERANKEDMEMBER
4
Returns the nth, or ranked, member in a set.
CUBESET
5 Defines a calculated set of members or tuples by sending a set expression to the
cube on the server.
CUBESETCOUNT
6
Returns the number of items in a set.
CUBEVALUE
7
Returns an aggregated value from a cube.
78
43. CUBEKPIMEMBER Function Advanced Excel Functions
Description
The function returns a Key Performance Indicator (KPI) property and displays the KPI
name in the cell.
Syntax
CUBEKPIMEMBER (connection, kpi_name, kpi_property, [caption])
Arguments
Argument Description Required /
Optional
connection Name of the connection to the cube - A text string Required
kpi_name Name of the KPI in the cube - A text string Required
kpi_property The KPI component returned and can be one of the Required
given Enumerated Constants as given in the Table below
caption An alternative text string that is displayed in the cell Optional
instead of kpi_name and kpi_property
If you specify KPIValue for kpi_property, only kpi_name is displayed in the cell.
Notes
A KPI is a quantifiable measurement, such as monthly gross profit or quarterly employee
turnover that is used to monitor an organization's performance.
If the connection name is not a valid workbook connection that is stored in the
workbook, CUBEKPIMEMBER returns a #NAME? Error value. If the Online Analytical
Processing (OLAP) server is not running, not available, or returns an error message,
CUBEKPIMEMBER returns a #NAME? Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
80
44. CUBEMEMBER Function Advanced Excel Functions
Description
The CUBEMEMBER function returns a member or tuple from the cube. Use this function to
validate that the member or tuple exists in the cube.
Syntax
CUBEMEMBER (connection, member_expression, [caption])
Arguments
Required /
Argument Description
Optional
connection Name of the connection to the cube - A text string Required
A multidimensional expression (MDX) that
evaluates to a unique member in the cube - A
text string
member_expression Required
OR
A tuple, specified as a cell range or an array
constant
A text string displayed in the cell instead of the
caption, if one is defined, from the cube. When a
caption Optional
tuple is returned, the caption used is the one for
the last member in the tuple.
Notes
When the CUBEMEMBER Function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
When you use CUBEMEMBER as an argument to another CUBE Function, the MDX
expression that identifies the member or tuple is used by that CUBE Function, not
the displayed value in the cell of the CUBEMEMBER Function.
If the connection name is not a valid workbook connection stored in the workbook,
CUBEMEMBER returns a #NAME? Error value. If the Online Analytical Processing
(OLAP) server is not running, not available, or returns an error message,
CUBEMEMBER returns a #NAME? Error value.
If at least one element within the tuple is invalid, CUBEMEMBER returns a #VALUE!
error value.
81
Advanced Excel Functions
o The member specified by the MDX text string does not exist in the cube.
o The tuple is invalid because there is no intersection for the specified values.
(This can occur with multiple elements from the same hierarchy.)
o The set contains at least one member with a different dimension than the
other members.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
82
45. CUBEMEMBERPROPERTY Function Advanced Excel Functions
Description
The CUBEMEMBERPROPERTY function returns the value of a member property from the
cube. Use this Function to validate that a member name exists within the cube and to
return the specified property for this member.
Syntax
CUBEMEMBERPROPERTY (connection, member_expression, property)
Arguments
Argument Description Required
/Optional
connection Name of the connection to the cube. - A text string Required
member_expression A multidimensional expression (MDX) of a Required
member within the cube. - A text string
property The name of the property returned or a reference Required
to a cell that contains the name of the property. -
A text string
Notes
When the CUBEMEMBERPROPERTY function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
If the connection name is not a valid workbook connection stored in the workbook,
CUBEMEMBERPROPERTY returns a #NAME? Error value. If the Online Analytical
Processing (OLAP) server is not running, not available, or returns an error message,
CUBEMEMBERPROPERTY returns a #NAME? Error value.
83
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
=CUBEMEMBERPROPERTY ("Sales","[Time].[Fiscal].[2004]",$A$3)
=CUBEMEMBERPROPERTY("Sales","[Store].[MyFavoriteStore]","[Store].[Store
Name].[Store Sqft]")
84
46. CUBERANKEDMEMBER Function Advanced Excel Functions
Description
The CUBERANKEDMEMBER function returns the nth, or ranked, member in a set.
Use this function to return one or more elements in a set, such as the top sales performer
or the top 10 students.
Syntax
CUBERANKEDMEMBER (connection, set_expression, rank, [caption])
Arguments
Required
Argument Description
/Optional
The name of the connection to the cube. - A text
connection Required
string.
A set expression. - A text string, E.g.
"{[Item1].children}".
OR
set_expression The CUBESET function. Required
OR
A reference to a cell that contains the CUBESET
function.
An integer value specifying the top value to return.
E.g.:
1 - Returns the top value,
rank 2 - Returns the second top value, etc. Required
To return the top 5 values, use this Function five
times, specifying a different rank, 1 through 5, each
time.
A text string displayed in the cell instead of the
caption Optional
caption, if one is defined, from the cube.
Notes
When the CUBERANKEDMEMBER function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
If the connection name is not a valid workbook connection stored in the workbook,
CUBERANKEDMEMBER returns a #NAME? Error value. If the Online Analytical Processing (OLAP)
server is not running, not available, or returns an error message, CUBERANKEDMEMBER returns a
#NAME? Error value.
85
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
86
47. CUBESET Function Advanced Excel Functions
Description
The CUBESET function defines a calculated set of members or tuples by sending a set
expression to the cube on the server, which creates the set, and then returns that set to
Microsoft Excel.
Syntax
CUBESET (connection, set_expression, [caption], [sort_order], [sort_by])
Arguments
Required
Argument Description
/Optional
connection Name of the connection to the cube. - A text string Required
A text string of a set expression that results in a set
of members or tuples.
set_expression OR Required
A cell reference to an Excel range that contains one or
more members, tuples, or sets included in the set.
A text string that is displayed in the cell instead of the
caption Optional
caption, if one is defined, from the cube.
The type of sort, if any, to perform and can be one as
sort_order Optional
given in the Table below.
A text string of the value by which to sort.
Example
To get the city with the highest sales, set_expression
would be a set of cities, and sort_by would be the
sales measure.
sort_by Optional
To get the city with the highest population,
set_expression would be a set of cities, and sort_by
would be the population measure.
If sort_order requires sort_by, and sort_by is omitted,
CUBESET returns the #VALUE! Error message.
Argument -
Integer Enumerated constant Description
Sort_by
Leaves the set in existing
0 SortNone Ignored
order.
Sorts set in ascending order
1 SortAscending Required
by sort_by.
Sorts set in descending order
2 SortDescending Required
by sort_by.
Sorts set in alpha ascending
3 SortAlphaAscending Ignored
order.
87
Advanced Excel Functions
The default value is 0. An alpha sort for a set of tuples sorts on the last element in each
tuple.
Notes
When the CUBESET function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
If the connection name is not a valid workbook connection stored in the workbook,
CUBESET returns a #NAME? Error value. If the Online Analytical Processing (OLAP)
server is not running, not available, or returns an error message, CUBESET returns
a #NAME? Error value.
If the set_expression syntax is incorrect or the set contains at least one member
with a different dimension than the other members, CUBESET returns a #N/A error
value.
If set_expression is longer than 255 characters, which is the limit for an argument
to a function, CUBESET returns a #VALUE! Error value. To use text strings longer
than 255 characters, enter the text string in a cell (for which the limit is 32,767
characters), and then use a cell reference as the argument.
CUBESET may return a #N/A error value if you reference a session-based object,
such as a calculated member or named set, in a PivotTable when sharing a
connection and that PivotTable is deleted or you convert the PivotTable to formulas.
(On the Options tab, in the Tools group, click OLAP Tools, and then click Convert
to Formulas.)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
88
48. CUBESETCOUNT Function Advanced Excel Functions
Description
The CUBESETCOUNT function returns the number of items in a set.
Syntax
CUBESETCOUNT (set)
Arguments
Required
Argument Description
/Optional
A text string of a Microsoft Excel expression that
evaluates to a set defined by the CUBESET function.
OR
set The CUBESET function. Required
OR
A reference to a cell that contains the CUBESET
function.
Notes
When the CUBESETCOUNT function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
89
49. CUBEVALUE Function Advanced Excel Functions
Description
The CUBEVALUE function returns an aggregated value from the cube.
Syntax
CUBEVALUE (connection, [member_expression1], [member_expression2], …)
Arguments
Required
Argument Description
/Optional
The name of the connection to the cube. - A text
connection Required
string
A text string of a multidimensional expression
(MDX) that evaluates to a member or tuple
member_expression within the cube. Optional
OR
A set defined with the CUBESET function.
Use the Argument member_expression as a slicer to define the portion of the cube
for which the aggregated value is returned.
Notes
When the CUBEVALUE function evaluates, it temporarily displays a
"#GETTING_DATA…" message in the cell before all of the data is retrieved.
If a cell reference is used for member_expression, and that cell reference contains
a CUBE function, then member_expression uses the MDX expression for the item
in the referenced cell, and not the value displayed in that referenced cell.
If the connection name is not a valid workbook connection stored in the workbook,
CUBEVALUE returns a #NAME? Error value. If the Online Analytical Processing
(OLAP) server is not running, not available, or returns an error message,
CUBEVALUE returns a #NAME? Error value.
If at least one element within the tuple is invalid, CUBEVALUE returns a #VALUE!
Error value.
90
Advanced Excel Functions
o The tuple is invalid because there is no intersection for the specified values.
(This can occur with multiple elements from the same hierarchy).
o The set contains at least one member with a different dimension than the
other members.
In Excel, if a cell has no data because you never changed it or you deleted the
contents, the cell contains an empty value. In many database systems, an empty
value is called a Null value. An empty or Null value literally means "No value."
However, a formula can never return an empty string or Null value. A formula
always returns one of three values-
o A number value
o A text value, which may be a zero-length string
o An error value, such as #NUM! or #VALUE
=A1+A2+A3
To prevent this, you can test for a zero-length string by using the ISTEXT function.
You can use the IF function to replace the zero-length with a 0 (zero) as follows-
=IF(ISTEXT(A1),0,A1)+IF(ISTEXT(A2),0,A2)+IF(ISTEXT(A3),0,A3)
Alternatively, you can nest the CUBEVALUE function in an IF condition that returns
a 0 value if the CUBEVALUE function evaluates to a zero-length string as follows-
Note: The SUM function does not require this test for a zero-length string because it
automatically ignores zero-length strings when calculating its return value.
91
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
92
Advanced Excel Functions
Database Functions
93
50. Database Functions – Overview Advanced Excel Functions
The Excel Database functions work with an Excel Database. This typically takes the form
of a large table of Data, where each row in the table stores an individual record. Each
column in the Worksheet table stores a different field for each record.
The Database functions perform basic operations, such as Sum, Average, Count, etc., and
additionally use criteria arguments, that allow you to perform the calculation only for a
specified subset of the records in your Database. Other records in the Database are
ignored.
Database Functions
The following table lists all the Database functions-
DCOUNT
2 Counts the cells that contain numbers in a column of a list or database that
match conditions you specify.
DCOUNTA
DGET
DMAX
DMIN
DPRODUCT
8 DSTDEV
94
Advanced Excel Functions
DSTDEVP
DSUM
10 Adds the numbers in a column of a list or database that match conditions you
specify.
DVAR
DVARP
95
51. DAVERAGE Function Advanced Excel Functions
Description
The DAVERAGE function returns the average of the values in a column of a list or database
that match the conditions specified.
Syntax
DAVERAGE (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of
related information are records, and columns of data
database Required
are fields.
The first row of the list contains labels for each
column.
Indicates for which column the Average is calculated.
Enter the column label enclosed between double
quotation marks, such as "Age" or "Yield," or a
field Required
number (without quotation marks) that represents
the position of the column within the list: 1 for the
first column, 2 for the second column, and so on.
The range of cells that contains the conditions you
specify.
You can use any range for the criteria argument, as
criteria Required
long as it includes at least one column label and at
least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount 10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Excel cannot add the new information.
Make sure the criteria range does not overlap the list.
96
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
97
52. DCOUNT Function Advanced Excel Functions
Description
The DCOUNT function returns the count of the cells that contain numbers in a column of
a list or database that match conditions you specify.
Syntax
DCOUNT (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of
database related information are records, and columns of data Required
are fields. The first row of the list contains labels for
each column.
Indicates which column is used in the function.
Enter the column label enclosed between double
quotation marks, such as "Age" or "Yield," or a number
(without quotation marks) that represents the position
field of the column within the list: 1 for the first column, 2 Optional
for the second column, and so on.
If this Argument (field) is omitted, this Function
(DCOUNT) counts all records in the database that
match the criteria.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria
criteria argument, as long as the argument includes at least Required
one column label and at least one cell below the column
label in which you specify a condition for the column .
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
98
Advanced Excel Functions
Make sure that the criteria range does not overlap the list.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
99
53. DCOUNTA Function Advanced Excel Functions
Description
The DCOUNTA function returns the count of the nonblank cells in a column of a list or
database that match conditions you specify.
This function is similar to the DCOUNT function, except that the DCOUNTA function counts
all non-blank cells. The DCOUNT function counts only the cells containing numerical values.
Syntax
DCOUNTA (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of
database related information are records, and columns of data Required
are fields. The first row of the list contains labels for
each column.
Indicates which column is used in the function.
Enter the column label enclosed between double
quotation marks, such as "Age" or "Yield," or a
number (without quotation marks) that represents
field the position of the column within the list: 1 for the Optional
first column, 2 for the second column, and so on.
If this argument (field) is omitted, this Function
(DCOUNTA) counts all records in the database that
match the criteria.
The range of cells that contains the conditions that
you specify.
You can use any range for the criteria argument, as
criteria Required
long as it includes at least one column label and at
least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
100
Advanced Excel Functions
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
101
54. DGET Function Advanced Excel Functions
Description
The DGET function returns a single value from a column of a list or database that matches
the conditions you specify.
Syntax
DGET (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
If no record matches the criteria, DGET returns the #VALUE! Error value.
If more than one record matches the criteria, DGET returns the #NUM! Error value.
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
102
Advanced Excel Functions
Make sure that the criteria range does not overlap the list.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
103
55. DMAX Function Advanced Excel Functions
Description
The DMAX function returns the largest number in a column of a list or database that
matches the conditions you specify.
Syntax
DMAX (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
104
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
105
56. DMIN Function Advanced Excel Functions
Description
The DMIN function returns the smallest number in a column of a list or database that
matches the conditions you specify.
Syntax
DMIN (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
106
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
107
57. DPRODUCT Function Advanced Excel Functions
Description
The DPRODUCT function returns the product of the values in a column of a list or database
that match the conditions you specify.
Syntax
DPRODUCT (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields.
The first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the
column within the list: 1 for the first column, 2 for the
second column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
108
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
109
58. DSTDEV Function Advanced Excel Functions
Description
The DSTDEV function estimates the standard deviation of a population based on a sample
by using the numbers in a column of a list or database that match conditions you specify.
Syntax
DSTDEV (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields.
The first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double
quotation marks, such as "Age" or "Yield," or a number
field Required
(without quotation marks) that represents the position of
the column within the list: 1 for the first column, 2 for the
second column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column Required
label and at least one cell below the column label in which
you specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
110
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
111
59. DSTDEVP Function Advanced Excel Functions
Description
The DSTDEVP function calculates the standard deviation of a population based on the
entire population, using the numbers in a column of a list or database that match
conditions you specify.
Syntax
DSTDEVP (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields.
The first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double
quotation marks, such as "Age" or "Yield," or a number
field Required
(without quotation marks) that represents the position of
the column within the list: 1 for the first column, 2 for the
second column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
112
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
113
60. DSUM Function Advanced Excel Functions
Description
The DSUM function adds the numbers in a column of a list or database that match
conditions you specify.
Syntax
DSUM (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information
Make sure that the criteria range does not overlap the list
114
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
115
61. DVAR Function Advanced Excel Functions
Description
The DVAR function estimates the variance of a population based on a sample by using the
numbers in a column of a list or database that match the conditions you specify.
Syntax
DVAR (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
116
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
117
62. DVARP Function Advanced Excel Functions
Description
The DVARP function calculates the variance of a population based on the entire population
by using the numbers in a field (column) of records in a list or database that match the
conditions you specify.
Syntax
DVARP (database, field, criteria)
Arguments
Required
Argument Description
/Optional
The range of cells that makes up the list or database.
A database is a list of related data in which rows of related
database Required
information are records, and columns of data are fields. The
first row of the list contains labels for each column.
Indicates which column is used in the function.
Enter the column label enclosed between double quotation
marks, such as "Age" or "Yield," or a number (without
field Required
quotation marks) that represents the position of the column
within the list: 1 for the first column, 2 for the second
column, and so on.
The range of cells that contains the conditions that you
specify. You can use any range for the criteria argument,
criteria as long as the argument includes at least one column label Required
and at least one cell below the column label in which you
specify a condition for the column.
Notes
You can use any range for the criteria argument, as long as it includes at least one
column label and at least one cell below the column label for specifying the
condition.
For example, if the range G1:G2 contains the column label Income in G1 and the
amount $10,000 in G2, you could define the range as MatchIncome and use that
name as the criteria argument in the database functions.
Although the criteria range can be located anywhere on the worksheet, do not place
the criteria range below the list. If you add more information to the list, the new
information is added to the first row below the list. If the row below the list is not
blank, Microsoft Excel cannot add the new information.
Make sure that the criteria range does not overlap the list.
118
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
119
Advanced Excel Functions
120
63. Date & Time Functions – Overview Advanced Excel Functions
Excel Date and Time functions can be used to extract information from, and perform
operations on, Excel Dates and Times.
Some of the Excel Date & Time functions are new to Excel 2010 or Excel 2013, so are not
available in earlier versions of Excel. You can find this information in the applicability
section of the function.
1 DATE
Returns the serial number of a particular date.
2 DATEDIF
Calculates the number of days, months, or years between two dates.
3 DATEVALUE
Converts a date in the form of text to a serial number.
4 DAY
Converts a serial number to a day of the month.
5 DAYS
Returns the number of days between two dates.
6 DAYS360
Calculates the number of days between two dates, based on a 360-day year.
EDATE
7 Returns the serial number of the date that is the indicated number of months
before or after the start date.
EOMONTH
8 Returns the serial number of the last day of the month before or after a
specified number of months.
9 HOUR
Converts a serial number to an hour.
10 ISOWEEKNUM
Returns the number of the ISO week number of the year for a given date.
11 MINUTE
Converts a serial number to a minute.
12 MONTH
Converts a serial number to a month.
121
Advanced Excel Functions
13 NETWORKDAYS
Returns the number of whole workdays between two dates.
NETWORKDAYS.INTL
14 Returns the number of whole workdays between two dates (international
version).
15 NOW
Returns the serial number of the current date and time.
16 SECOND
Converts a serial number to a second.
17 TIME
Returns the serial number of a particular time.
18 TIMEVALUE
Converts a time in the form of text to a serial number.
19 TODAY
Returns the serial number of today’s date.
20 WEEKDAY
Converts a serial number to a day of the week.
21 WEEKNUM
Returns the week number in the year.
WORKDAY
22 Returns the serial number of the date before or after a specified number of
workdays.
WORKDAY.INTL
23 Returns the serial number of the date before or after a specified number of
workdays using parameters to indicate which and how many days are weekend
days.
24 YEAR
Converts a serial number to a year.
YEARFRAC
25 Returns the year fraction representing the number of whole days between
start_date and end_date.
122
64. DATE Function Advanced Excel Functions
Description
The DATE function returns the serial number of a particular date.
Syntax
DATE (year, month, day)
Arguments
Required
Argument Description
/Optional
The value of the year argument can include one to
four digits. Excel interprets the year argument
according to the date system your computer is
year using. Required
By default, Microsoft Excel for Windows uses the
1900 date system.
See Notes below.
A positive or negative integer representing the
month of the year from 1 to 12 (January to
month Required
December).
See Notes below.
A positive or negative integer representing the day
day of the month from 1 to 31. Required
See Notes below.
Notes
Excel stores dates as sequential serial numbers so that they can be used in calculations.
January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because
it is 39,447 days after January 1, 1900.
year
Microsoft recommends using four digits for the year argument to prevent unwanted
results. For example, "07" could mean "1907" or "2007." Four digit years prevent
confusion
If year is between 0 (zero) and 1899 (inclusive), Excel adds that value to 1900 to
calculate the year. For example, DATE (108, 1, 2) returns January 2, 2008
(1900+108)
If year is between 1900 and 9999 (inclusive), Excel uses that value as the year.
For example, DATE (2008, 1, 2) returns January 2, 2008
If year is less than 0 or is 10000 or greater, Excel returns the #NUM! Error value
123
Advanced Excel Functions
month
If month is greater than 12, month adds that number of months to the first month
in the year specified. For example, DATE (2008, 14, 2) returns the serial number
representing February 2, 2009
If month is less than 1, month subtracts the magnitude of that number of months,
plus 1, from the first month in the year specified. For example, DATE (2008,-3,
2) returns the serial number representing September 2, 2007
day
If day is greater than the number of days in the month specified, day adds that
number of days to the first day in the month. For example, DATE (2008, 1,
35) returns the serial number representing February 4, 2008.
If day is less than 1, day subtracts the magnitude that number of days, plus one,
from the first day of the month specified. For example, DATE (2008, 1, -15) returns
the serial number representing December 16, 2007.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
124
65. DATEDIF Function Advanced Excel Functions
Description
The DATEDIF function calculates the number of days, months, or years between two dates.
This function is provided for compatibility with Lotus 1-2-3.
Syntax
DATEDIF (start_date,end_date,unit)
Arguments
Required
Argument Description
/Optional
A date that represents the first, or starting, date of
the period.
Dates may be entered as text strings within
quotation marks (E.g. "2001/1/30"), as serial
Start_date Required
numbers (E.g. 36921, which represents January 30,
2001, if you are using the 1900 date system), or as
the results of other formulas or functions (E.g.
DATEVALUE ("2001/1/30")).
A date that represents the last, or ending, date of
End_date Required
the period.
The type of information that you want returned.
Unit Required
Look at the Unit Table given below.
Unit Table
Unit Returns
"MD" The difference between the days in start_date and end_date. The months and
years of the dates are ignored.
"YM" The difference between the months in start_date and end_date. The days and
years of the dates are ignored
"YD" The difference between the days of start_date and end_date. The years of the
dates are ignored.
125
Advanced Excel Functions
Notes
Excel stores dates as sequential serial numbers so that they can be used in
calculations. January 1, 1900 is serial number 1, and January 1, 2008 is serial
number 39448 because it is 39,447 days after January 1, 1900
The DATEDIF function is useful in formulas where you need to calculate age.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
126
66. DATEVALUE Function Advanced Excel Functions
Description
The DATEVALUE function converts a date in the form of text to a serial number (Excel's
date-time code).
The DATEVALUE function converts a date that is stored as text to a serial number that
Excel recognizes as a date. For example,
=DATEVALUE ("1/1/2008")
Note: Your computer's system date setting may cause the results of
a DATEVALUE function to vary from this example.
The DATEVALUE function is helpful in cases where a worksheet contains dates in a text
format that you want to filter, sort, or format as dates, or use in date calculations. To view
a date serial number as a date, you must apply a date format to the cell.
Syntax
DATEVALUE (date_text)
Arguments
Required
Argument Description
/Optional
Text that represents a date in an Excel date format,
or a reference to a cell that contains text that
represents a date in an Excel date format. For
date_text Required
example, "1/30/2008" or "30-Jan-2008" are text
strings within quotation marks that represent dates.
See Notes below.
Notes
date_text Argument
o Using the default date system in Microsoft Excel for Windows,
the date_text argument must represent a date between January 1, 1900
and December 31, 9999
o If the year portion of the date_text argument is omitted, this function uses
the current year from your computer's built-in clock. Time information in
the date_text argument is ignored.
127
Advanced Excel Functions
Excel stores dates as sequential serial numbers so that they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,447 days after January 1, 1900.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
128
67. DAY Function Advanced Excel Functions
Description
The DAY function returns the day of a date, represented by a serial number. The day is
given as an integer ranging from 1 to 31.
Syntax
DAY (serial number)
Arguments
Required
Argument Description
/Optional
The date of the day you are trying to find.
Dates should be entered by using the DATE function,
or as results of other formulas or functions.
serial number Required
For example, use DATE (2008,5,23) for the 23rd day
of May 2008. Problems can occur if dates are entered
as text.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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 are Gregorian values
regardless of the display format for the supplied date value. For example, if the
display format of the supplied date is Hijri, the returned values for the YEAR,
MONTH and DAY functions will be values associated with the equivalent Gregorian
date.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
129
Advanced Excel Functions
Example
130
68. DAYS Function Advanced Excel Functions
Description
The DAYS function returns the number of days between two dates.
Syntax
DAYS (end_date, start_date)
Arguments
Argument Description Required
/Optional
End_date Start_date and End_date are the two dates between Required
which you want to know the number of days.
Start_date Start_date and End_date are the two dates between Required
which you want to know the number of days.
Notes
Excel stores dates as sequential serial numbers so that they can be used in
calculations. By default, Jan 1, 1900 is serial number 1, and January 1, 2008 is
serial number 39448 because it is 39447 days after January 1, 1900
If either one of the date arguments is text, that argument is treated as DATEVALUE
(date_text) and returns an integer date instead of a 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.
Applicability
Excel 2013, Excel 2016
131
Advanced Excel Functions
Example
132
69. DAYS360 Function Advanced Excel Functions
Description
The function DAYS360 returns the number of days between two dates based on a 360-day
year (twelve 30-day months), which is used in accounting calculations.
Syntax
DAYS360 (start_date,end_date,[method])
Arguments
Required
Argument Description
/Optional
The two dates between which you want to know the
Start_date
number of days. Required
Method Table
Method Defined
U.S. (NASD) method. If the starting date is the last day of a month, it
becomes equal to the 30th day of the same month. If the ending date is the
FALSE or last day of a month and the starting date is earlier than the 30th day of a
omitted month, the ending date becomes equal to the 1st day of the next month;
otherwise, the ending date becomes equal to the 30th day of the same
month.
European method. Starting dates and ending dates that occur on the 31st
TRUE
day of a month become equal to the 30th day of the same month.
Notes
Excel stores dates as sequential serial numbers so that they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,447 days after January 1, 1900
133
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
134
70. EDATE Function Advanced Excel Functions
Description
The EDATE function returns the serial number that represents the date that is the indicated
number of months before or after a specified date (the start_date).
Use EDATE to calculate maturity dates or due dates that fall on the same day of the month
as the date of issue.
Syntax
EDATE (start_date, months)
Arguments
Required
Argument Description
/Optional
A date that represents the start date.
Dates should be entered by using the DATE function, or
Start_date Required
as results of other formulas or functions.
Problems can occur if dates are entered as text.
The number of months before or after start_date.
Months A positive value for months yields a future date; a Required
negative value yields a past date.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If start_date is not a valid date, EDATE returns the #VALUE! error value.
If the date resulting from the calculation is not a valid Excel Date, EDATE returns
the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
135
Advanced Excel Functions
Example
136
71. EOMONTH Function Advanced Excel Functions
Description
The EOMONTH function returns the serial number for the last day of the month that is the
indicated number of months before or after start_date.
Syntax
EOMONTH (start_date, months)
Arguments
Required
Argument Description
/Optional
A date that represents the starting date.
Dates should be entered by using the DATE function, or as
Start_date Required
results of other formulas or functions.
Problems can occur if dates are entered as text.
The number of months before or after start_date.
Months A positive value for months yields a future date. Required
A negative value yields a past date.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
If start_date is not a valid date, EOMONTH returns the #NUM! error value.
If start_date plus months yields an invalid date, EOMONTH returns the #NUM! error
value.
If any of the supplied arguments are non-numeric values, EOMONTH returns the
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
137
Advanced Excel Functions
Example
138
72. HOUR Function Advanced Excel Functions
Description
The HOUR function returns the hour of a time value. The hour is given as an integer,
ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Syntax
HOUR (serial_number)
Arguments
Required
Argument Description
/Optional
The time that contains the hour, you want to find.
Times can be entered
as text strings within quotation marks (E.g. "6:45
PM")
Serial_number as decimal numbers (E.g. 0.78125, which Required
represents 6:45 PM)
as results of other formulas or functions (E.g.
TIMEVALUE("6:45 PM"))
Notes
Time values are a portion of a date value and represented by a decimal number
(E.g., 12:00 PM is represented as 0.5 because it is half of a day).
If the supplied serial_number is not a valid Excel time, HOUR returns the #VALUE!
Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
139
73. ISOWEEKNUM Function Advanced Excel Functions
Description
The ISOWEEKNUM function returns number of the ISO week number of the year for a
given date.
Syntax
ISOWEEKNUM (date)
Arguments
Argument Description Required
/Optional
Date Date is the date-time code used by Excel for date and Required
time calculation.
Notes
Microsoft Excel stores dates as sequential numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If the date argument is not a valid number, ISOWEEKNUM returns the #NUM! error
value.
If the date argument is not a valid date type, ISOWEEKNUM returns the #VALUE!
error value.
Applicability
Example
140
74. MINUTE Function Advanced Excel Functions
Description
The MINUTE function returns the minutes of a time value. The minute is given as an
integer, ranging from 0 to 59.
Syntax
MINUTE (serial_number)
Arguments
Required
Argument Description
/Optional
The time that contains the minute, you want to find.
Times can be entered
as text strings within quotation marks (E.g. "6:45
PM")
Serial_number as decimal numbers (E.g. 0.78125, which Required
represents 6:45 PM)
as results of other formulas or functions (E.g.
TIMEVALUE("6:45 PM"))
Notes
Time values are a portion of a date value and represented by a decimal number
(For example, 12:00 PM is represented as 0.5, since it is half of a day).
If the supplied serial_number is not a valid Excel time, MINUTE returns the
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
141
75. MONTH Function Advanced Excel Functions
Description
The MONTH function returns the month of a date represented by a serial number. The
month is given as an integer, ranging from 1 (January) to 12 (December).
Syntax
MONTH (serial_number)
Arguments
Required
Argument Description
/Optional
The date of the month you are trying to find.
Dates should be entered by using the DATE
Serial_number Function, or as results of other formulas or Required
functions.
Problems can occur if dates are entered as text.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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 would be Gregorian values
regardless of the display format for the supplied date value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
142
76. NETWORKDAYS Function Advanced Excel Functions
Description
The NETWORKDAYS function returns the number of whole working days between
start_date and end_date. Working days exclude weekends and any dates identified in
holidays.
Syntax
NETWORKDAYS (start_date, end_date, [holidays])
Arguments
Required
Argument Description
/Optional
Start_date A date that represents the start date. Required
End_date A date that represents the end date. Required
An optional range of one or more dates to exclude from
the working calendar, such as state and federal holidays
and floating holidays.
Holidays Optional
The list can be either a range of cells that contains the
dates or an array constant of the serial numbers that
represent the dates.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
143
77. NETWORKDAYS.INTL Function Advanced Excel Functions
Description
The NETWORKDAY.INTL function returns the number of whole workdays between two
dates using parameters to indicate which and how many days are weekend days. Weekend
days and any days that are specified as holidays are not considered as workdays.
Syntax
NETWORKDAYS.INTL (start_date, end_date, [weekend], [holidays])
Arguments
Required
Argument Description
/Optional
The dates for which the difference is to be computed.
Start_date
Required
The start_date can be earlier than, the same as, or later
end_date Required
than the end_date.
Indicates the days of the week that are weekend days and
are not included in the number of whole working days
between start_date and end_date.
Weekend Weekend is a weekend number or string that specifies Optional
when weekends occur.
Look at Weekend Number - Weekend Days Table given
below.
An optional set of one or more dates that are to be
excluded from the working day calendar.
Holidays shall be
a range of cells that contain the dates
Holidays an array constant of the serial values that represent Optional
those dates
The ordering of dates or serial values in holidays can be
arbitrary.
144
Advanced Excel Functions
Weekend string values are seven characters long and each character in the string
represents a day of the week, starting with Monday. 1 represents a non-workday
and 0 represents a workday. Only the characters 1 and 0 are permitted in the string.
Using 1111111 will always return 0.
Notes
If start_date is later than end_date, the return value will be negative, and the
magnitude will be the number of whole workdays.
If start_date is out of range for the current date base value, NETWORKDAYS.INTL
returns the #NUM! error value.
If end_date is out of range for the current date base value, NETWORKDAYS.INTL
returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
145
Advanced Excel Functions
Example
146
78. NOW Function Advanced Excel Functions
Description
The NOW function returns the serial number of the current date and time.
Syntax
NOW ()
Arguments
The NOW function syntax has no arguments.
Notes
If the cell format was General before the function was entered, Excel changes the
cell format so that it matches the date and time format of your regional settings.
You can change the date and time format for the cell by using the commands in
the Number group of the Home tab on the Ribbon.
The NOW Function is useful when you need to display the current date and time
on a Worksheet or calculate a value based on the current date and time, and have
that value updated each time you open the Worksheet.
If the NOW Function does not update cell values when you expect it to, you might
need to change settings that control when the Workbook or Worksheet recalculates.
These settings can be changed in Control Panel of Excel.
Excel stores dates as sequential serial numbers so that they can be used in
calculations. By default, January 1, 1900 is serial number 1, 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 date. For example, 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 function is run. It is not updated continuously.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
147
Advanced Excel Functions
Example
148
79. SECOND Function Advanced Excel Functions
Description
The SECOND function returns the seconds of a time value. The second is given as an
integer in the range 0 (zero) to 59.
Syntax
SECOND (serial_number)
Arguments
Required
Argument Description
/Optional
The time that contains the seconds, you want to find.
Times can be entered as-
Text strings within quotation marks (E.g. "6:45
PM")
Serial_number Decimal numbers (E.g. 0.78125, which represents Required
6:45 PM)
Results of other formulas or functions (E.g.
TIMEVALUE("6:45 PM"))
Notes
Time values are a portion of a date value and represented by a decimal number
(for example, 12:00 PM is represented as 0.5 because it is half of a day).
If the specified serial_number is not a valid Excel time, SECOND returns the
#VALUE! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
149
Advanced Excel Functions
Example
150
80. TIME Function Advanced Excel Functions
Description
The TIME function returns the decimal number for a particular time. If the cell format was
General before the Function was entered, the result is formatted as a date.
The decimal number returned by TIME is a value ranging from 0 (zero) to 0.99988426,
representing the times from 0:00:00 (12:00:00 AM) to 23:59:59 (11:59:59 P.M.)
Syntax
TIME (hour, minute, second)
Arguments
Argument Description Required
/Optional
Hour A number from 0 (zero) to 32767 representing the hour. Required
Any value greater than 23 will be divided by 24 and the
remainder will be treated as the hour value.
Minute A number from 0 to 32767 representing the minute. Required
Any value greater than 59 will be converted to hours and
minutes.
Second A number from 0 to 32767 representing the second. Required
Any value greater than 59 will be converted to hours,
minutes, and seconds.
Notes
Time values are a portion of a date value and represented by a decimal number
(for example, 12:00 PM is represented as 0.5 because it is half of a day)
If the arguments evaluate to a negative time, TIME returns the #NUM! error value
If any of the supplied arguments are non-numeric values, TIME returns the
#VALUE! error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
151
Advanced Excel Functions
Example
152
81. TIMEVALUE Function Advanced Excel Functions
Description
The TIMEVALUE function returns the decimal number of the time represented by a text
string.
The decimal number is a value ranging from 0 (zero) to 0.99988426, representing the
times from 0:00:00 (12:00:00 AM) to 23:59:59 (11:59:59 P.M.).
Syntax
TIMEVALUE (time_text)
Arguments
Argument Description Required
/Optional
Time_text A text string that represents a time in any one of the Required
Microsoft Excel time formats.
Notes
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 as 0.5 because it is half of a day)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
153
82. TODAY Function Advanced Excel Functions
Description
The TODAY function returns the serial number of the current date. The serial number is
the date-time code used by Excel for date and time calculations. If the cell format was
General before the function was entered, Excel changes the cell format to Date. If you
want to view the serial number, you must change the cell format to General or Number.
Syntax
TODAY ()
Arguments
The TODAY Function syntax has no arguments.
Notes
Excel stores dates as sequential serial numbers so they can be used in calculations.
By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial
number 39448 because it is 39,447 days after January 1, 1900
If the TODAY function does not update the date when you expect it to, you might
need to change the settings that control when the workbook or worksheet
recalculates
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
154
83. WEEKDAY Function Advanced Excel Functions
Description
The WEEKDAY function returns the day of the week corresponding to a date. The day is
given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default
Syntax
WEEKDAY (serial_number, [return_type])
Arguments
Required
Argument Description
/Optional
A sequential number that represents the date of the
day you are trying to find.
Serial_number Required
Dates should be entered by using the DATE function,
or as results of other formulas or functions.
A number that determines the type of return value.
Return_type Optional
Look at the Return Type Table given below.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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, WEEKDAY returns
the #NUM! error value.
If return_type is out of the range specified in the table above, WEEKDAY returns
the #NUM! error value.
If the specified serial_number cannot be recognized as a numeric value, WEEKDAY
returns the #VALUE! error value.
155
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
156
84. WEEKNUM Function Advanced Excel Functions
Description
The WEEKNUM function returns the week number of a specific date. The number
represents where the week falls numerically within a year.
System 1: The week containing January 1 is the first week of the year, and is
numbered week 1.
System 2: The week containing the first Thursday of the year is the first week of
the year, and is numbered as week 1. This system is the methodology specified in
ISO 8601, which is commonly known as the European week numbering system.
Syntax
WEEKNUM (serial_number, [return_type])
Arguments
Required
Argument Description
/Optional
A date within the week.
Dates should be entered by using the DATE function,
Serial_number Required
or as results of other formulas or functions.
Problems can occur if dates are entered as text.
A number that determines on which day the week
begins.
Return_type Optional
The default is 1.
Look at the Week_beginning Day Table given below.
157
Advanced Excel Functions
Notes
Excel stores dates as sequential serial numbers so they can be used in calculations.
By default, January 1, 1900 is serial number 1. 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, WEEKNUM returns
#NUM! error value.
If Return_type is out of the range specified in the table above, WEEKNUM returns
#NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
158
85. WORKDAY Function Advanced Excel Functions
Description
The WORKDAY function returns a number that represents a date that is the indicated
number of working days before or after a date (the starting date). Working days exclude
weekends and any dates identified as holidays.
Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates,
expected delivery times, or the number of days of work performed.
Syntax
WORKDAY (start_date, days, [holidays])
Arguments
Required
Argument Description
/Optional
Start_date A date that represents the start date. Required
The number of nonweekend and nonholiday days before
or after start_date.
Days Required
A positive value for days yields a future date.
A negative value yields a past date.
An optional list of one or more dates to exclude from the
working calendar, such as state and federal holidays and
floating holidays.
Holidays Optional
The list can be either a range of cells that contain the
dates or an array constant of the serial numbers that
represent the dates.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
159
Advanced Excel Functions
Example
160
86. WORKDAY.INTL Function Advanced Excel Functions
Description
The WORKDAY.INTL function returns the serial number of the date before or after a
specified number of workdays with custom weekend parameters. Weekend parameters
indicate which and how many days are weekend days. Weekend days and any days that
are specified as holidays are not considered as workdays.
Syntax
WORKDAY.INTL (start_date, days, [weekend], [holidays])
Arguments
Required
Argument Description
/Optional
Start_date The start date, truncated to integer. Required
The number of workdays before or after the start_date.
A positive value yields a future date
Days A negative value yields a past date Required
A zero value yields the start_date
Day-offset is truncated to an integer.
Indicates the days of the week that are weekend days and
are not considered working days.
Weekend is a weekend number or string that specifies
when weekends occur.
Look at Weekend-Number-Days Table given below.
Weekend Optional
Weekend string values are seven characters long and
each character in the string represents a day of the week,
starting with Monday.
1 represents a non-workday and 0 represents a workday.
Only the characters 1 and 0 are permitted in the string.
An optional set of one or more dates that are to be
excluded from the working day calendar. Holidays shall
be a range of cells that contain the dates, or an array
Holidays Optional
constant of the serial values that represent those dates.
The ordering of dates or serial values in holidays can be
arbitrary.
Notes
If start_date is out of range for the current date base value, WORKDAY.INTL returns
the #NUM! error value.
If any date in holidays is out of range for the current date base value,
WORKDAY.INTL returns the #NUM! error value.
If start_date or any of the values in the holiday’s array are not valid dates,
WORKDAY.INTL returns the #VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
162
87. YEAR Function Advanced Excel Functions
Description
The YEAR function returns the year corresponding to a date. The year is returned as an
integer in the range 1900-9999.
Syntax
YEAR (serial_number)
Arguments
Required
Argument Description
/Optional
The date of the year you want to find.
Dates should be entered by using the DATE function,
Serial_number Required
or as results of other formulas or functions.
Problems can occur if dates are entered as text.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 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 would be Gregorian values
regardless of the display format for the supplied date value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
163
88. YEARFRAC Function Advanced Excel Functions
Description
The YEARFRAC function calculates the fraction of the year represented by the number of
whole days between two dates (the start_date and the end_date).
Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits
or obligations to assign to a specific term.
Syntax
YEARFRAC (start_date, end_date, [basis])
Arguments
Required
Argument Description
/Optional
Start_date A date that represents the start date. Required
End_date A date that represents the end date. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
If start_date or end_date are not valid dates, YEARFRAC returns the #VALUE! error
value.
If basis < 0 or if basis > 4, YEARFRAC returns the #NUM! error value.
164
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
165
Advanced Excel Functions
Engineering Functions
166
89. Engineering Functions – Overview Advanced Excel Functions
The Excel Engineering functions perform the most commonly used Engineering
calculations, many of which relate to Bessel functions, complex numbers, or converting
between different bases.
Engineering Functions
The following table lists all the Engineering functions-
1 BESSELI
Returns the modified Bessel function In(x)
BESSELJ
2
Returns the Bessel function Jn(x)
BESSELK
3 Returns the modified Bessel function Kn(x)
BESSELY
4 Returns the Bessel function Yn(x)
BIN2DEC
5 Converts a binary number to decimal
BIN2HEX
6 Converts a binary number to hexadecimal
BIN2OCT
7 Converts a binary number to octal
BITAND
8 Returns a 'Bitwise And' of two numbers
BITLSHIFT
9 Returns a value number shifted left by shift_amount bits
BITOR
10 Returns a bitwise OR of 2 numbers
BITRSHIFT
11 Returns a value number shifted right by shift_amount bits
BITXOR
12 Returns a bitwise 'Exclusive Or' of two numbers
COMPLEX
13 Converts real and imaginary coefficients into a complex number
167
Advanced Excel Functions
DEC2BIN
15 Converts a decimal number to binary
DEC2HEX
16 Converts a decimal number to hexadecimal
DEC2OCT
17 Converts a decimal number to octal
DELTA
18 Tests whether two values are equal
ERF
19 Returns the error function
ERF.PRECISE
20 Returns the error function
ERFC
21 Returns the complementary error function
ERFC.PRECISE
22 Returns the complementary error function
GESTEP
23 Tests whether a number is greater than a threshold value
HEX2BIN
24 Converts a hexadecimal number to binary
HEX2DEC
25 Converts a hexadecimal number to decimal
HEX2OCT
26 Converts a hexadecimal number to octal
IMABS
27 Returns the absolute value (modulus) of a complex number
IMAGINARY
28 Returns the imaginary coefficient of a complex number
IMARGUMENT
29 Returns the argument theta, an angle expressed in radians
IMCONJUGATE
30 Returns the complex conjugate of a complex number
IMCOS
31 Returns the cosine of a complex number
IMCOSH
32 Returns the hyperbolic cosine of a complex number
168
Advanced Excel Functions
IMCSC
34 Returns the cosecant of a complex number
IMCSCH
35 Returns the hyperbolic cosecant of a complex number
IMDIV
36 Returns the quotient of two complex numbers
IMEXP
37 Returns the exponential of a complex number
IMLN
38 Returns the natural logarithm of a complex number
IMLOG10
39 Returns the base-10 logarithm of a complex number
IMLOG2
40 Returns the base-2 logarithm of a complex number
IMPOWER
41 Returns a complex number raised to an integer power
IMPRODUCT
42 Returns the product of complex numbers
IMREAL
43 Returns the real coefficient of a complex number
IMSEC
44 Returns the secant of a complex number
IMSECH
45 Returns the hyperbolic secant of a complex number
IMSIN
46 Returns the sine of a complex number
IMSINH
47 Returns the hyperbolic sine of a complex number
IMSQRT
48 Returns the square root of a complex number
IMSUB
49 Returns the difference of two complex numbers
IMSUM
50 Returns the sum of complex numbers
IMTAN
51 Returns the tangent of a complex number
169
Advanced Excel Functions
OCT2DEC
53 Converts an octal number to decimal
OCT2HEX
54 Converts an octal number to hexadecimal
170
90. BESSELI Function Advanced Excel Functions
Description
The BESSELI function returns the modified Bessel function In (x), which is equivalent to
the Bessel function evaluated for purely imaginary arguments.
Syntax
BESSELI(X, N)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
N The order of the Bessel function. If n is not an Required
integer, it is truncated.
Notes
If x is nonnumeric, BESSELI returns the #VALUE! Error value.
If n is nonnumeric, BESSELI returns the #VALUE! Error value.
If n < 0, BESSELI returns the #NUM! Error value.
The n-th order modified Bessel function of the variable x is:
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
171
91. BESSELJ Function Advanced Excel Functions
Description
The BESSELJ function returns the Bessel function Jn(x).
Syntax
BESSELJ(X, N)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Notes
If x is nonnumeric, BESSELJ returns the #VALUE! Error value.
If n is nonnumeric, BESSELJ returns the #VALUE! Error value.
If n < 0, BESSELJ returns the #NUM! Error value.
The n-th order Bessel function of the variable x is-
Where-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
172
92. BESSELK Function Advanced Excel Functions
Description
The BESSELK function returns the modified Bessel function Kn(x), which is equivalent to
the Bessel functions evaluated for purely imaginary arguments.
Syntax
BESSELK(X, N)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Notes
If x is nonnumeric, BESSELK returns the #VALUE! Error value.
If n is nonnumeric, BESSELK returns the #VALUE! Error value.
If n < 0, BESSELK returns the #NUM! Error value.
The n-th order modified Bessel function of the variable x is:
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
173
93. BESSELY Function Advanced Excel Functions
Description
The BESSELY function returns the Bessel function, Yn(x), (also known as the Weber
function or the Neumann function), for a specified order and value of x.
Syntax
BESSELY(X, N)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Notes
If x is nonnumeric, BESSELY returns the #VALUE! Error value.
If n is nonnumeric, BESSELY returns the #VALUE! Error value.
If n < 0, BESSELY returns the #NUM! Error value.
The n-th order Bessel function of the variable x is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
174
94. BIN2DEC Function Advanced Excel Functions
Description
The BIN2DEC function converts a binary number to decimal.
Syntax
BIN2DEC (number)
Arguments
Required
Argument Description
/Optional
The binary number you want to convert.
Number cannot contain more than 10 characters
(10 bits).
number The most significant bit of number is the sign bit. Required
The remaining 9 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
Notes
If number is not a valid binary number, or if a number contains more than 10 characters
(10 bits), BIN2DEC returns the #NUM! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
175
95. BIN2HEX Function Advanced Excel Functions
Description
The BIN2HEX function converts a binary number to hexadecimal.
Syntax
BIN2HEX (number, [places])
Arguments
Required
Argument Description
/Optional
The binary number you want to convert.
Number cannot contain more than 10 characters
(10 bits). The most significant bit of number is the
number Required
sign bit. The remaining 9 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, BIN2HEX uses the minimum
places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
If number is not a valid binary number, or if number contains more than 10
characters (10 bits), BIN2HEX returns the #NUM! Error value.
If BIN2HEX requires more than places characters, it returns the #NUM! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
176
Advanced Excel Functions
Example
177
96. BIN2OCT Function Advanced Excel Functions
Description
The BIN2OCT function converts a decimal number to octal.
Syntax
DEC2OCT (number, [places])
Arguments
Required
Argument Description
/Optional
The decimal integer you want to convert. If number
is negative, places is ignored and DEC2OCT returns
a 10-character (30-bit) octal number in which the
number Required
most significant bit is the sign bit. The remaining 29
bits are magnitude bits. Negative numbers are
represented using two's-complement notation.
The number of characters to use. If places is
omitted, DEC2OCT uses the minimum number of
places Optional
characters necessary. Places is useful for padding
the return value with leading 0s (zeros).
Notes
If number < -536,870,912 or if number > 536,870,911, DEC2OCT returns the
#NUM! Error value.
If DEC2OCT requires more than places characters, it returns the #NUM! Error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
178
Advanced Excel Functions
Example
179
97. BITAND Function Advanced Excel Functions
Description
The BITAND function returns a bitwise 'AND' of two numbers.
Syntax
BITAND (number1, number2)
Arguments
Argument Description Required
/Optional
number1 Must be in decimal form and greater than or equal Required
to 0.
number2 Must be in decimal form and greater than or equal Required
to 0.
Notes
BITAND returns a decimal number.
The value of each bit position is counted only if both parameter's bits at that
position are 1.
The values returned from the bit positions progress from right to left as powers of
2. The rightmost bit returns 1 (2^0), the bit to its left returns 2 (2^1), and so on.
If either argument is less than 0, BITAND returns the #NUM! Error value.
Applicability
Excel 2013, Excel 2016
180
Advanced Excel Functions
Example
181
98. BITLSHIFT Function Advanced Excel Functions
Description
The BITLSHIFT function returns a number shifted left by the specified number of bits.
Syntax
BITLSHIFT (number, shift_amount)
Arguments
Argument Description Required
/Optional
number Number must be an integer greater than or equal to 0. Required
shift_amount Shift_amount must be an integer. Required
Notes
Shifting a number left is equivalent to adding zeros (0) to the right of the binary
representation of the number. For example, a 2-bit shift to the left on the decimal
value 4 converts its binary value (100) to 10000, or 16 in decimal.
If either argument is outside their constraints, BITLSHIFT returns the #NUM! Error
value.
If Number is greater than (2^48)-1, BITLSHIFT returns the #NUM! Error value.
If the absolute value of Shift_amount is greater than 53, BITLSHIFT returns the
#NUM! Error value.
A negative number used as the Shift_amount argument shifts the number of bits
to the right.
A negative number used as the Shift_amount argument returns the same result as
a positive shift_amount argument for the BITRSHIFT function.
Applicability
Excel 2013, Excel 2016
182
Advanced Excel Functions
Example
183
99. BITOR Function Advanced Excel Functions
Description
The BITOR function returns a bitwise 'OR' of two numbers.
Syntax
BITOR (number1, number2)
Arguments
Argument Description Required
/Optional
Number1 Must be in decimal form and greater than or equal Required
to 0.
Number2 Must be in decimal form and greater than or equal Required
to 0.
Notes
The result is a bitwise 'OR' of its parameters.
In the result, each bit position is 1 if any of the parameter's bits at that position
are 1
The values returned from the bit positions progress from right to left as powers of
2. The rightmost bit returns 1 (2^0), the bit to the left returns 2 (2^1), and so on
If either argument is outside their constraints, BITOR returns the #NUM! error
value
If either argument is greater than (2^48)-1, BITOR returns the #NUM! error value
If either argument is a non-numeric value, BITOR returns the #VALUE! error value
Applicability
Excel 2013, Excel 2016
184
Advanced Excel Functions
Example
185
100. BITRSHIFT Function Advanced Excel Functions
Description
The BITRSHIFT function returns a number shifted right by the specified number of bits.
Syntax
BITRSHIFT (number, shift_amount)
Arguments
Argument Description Required
/Optional
number Must be an integer greater than or equal to 0. Required
shift_amount Must be an integer. Required
Notes
Shifting a number right is equivalent to removing digits from the rightmost side of
the binary representation of the number. For example, a 2-bit shift to the right on
the decimal value 13 converts its binary value (1101) to 11, or 3 in decimal.
If either argument is outside its constraints, BITRSHIFT returns the #NUM! Error
value.
If Number is greater than (2^48)-1, BITRSHIFT returns the #NUM! Error value.
If the absolute value of Shift_amount is greater than 53, BITRSHIFT returns the
#NUM! Error value.
A negative number used as the Shift_amount argument shifts the number of bits
to the left.
A negative number used as the Shift_amount argument returns the same result as
a positive Shift_amount argument for the BITLSHIFT function.
Applicability
Excel 2013, Excel 2016
186
Advanced Excel Functions
Example
187
101. BITXOR Function Advanced Excel Functions
Description
The BITXOR function returns a bitwise 'XOR' of two numbers.
Syntax
BITXOR (number1, number2)
Arguments
Argument Description Required
/Optional
number1 Must be greater than or equal to 0. Required
number2 Must be greater than or equal to 0. Required
Notes
BITXOR returns a decimal number that is the result of the sum of a bitwise 'XOR'
(exclusive XOR) of its parameters.
If either argument is outside its constraint, BITXOR returns the #NUM! Error value.
If either argument is greater than (2^48)-1, BITXOR returns the #NUM! Error
value.
In the result, each bit position is 1 if the values of the parameters at that bit position
are not equal; in other words, one value is 0 and the other is 1.
For example, using BITXOR (5, 3), 5 is expressed as 101 in binary and 3 as 11 in
binary. To help with comparison, you can consider 3 as 011. From right to left, the
bit values at the three positions in this example are the same (1) only at the
rightmost position. A 'not equal' result returns a 1 for the second and third positions
from the right, and an ‘equal’ result returns 0 for the rightmost position.
Values of 1 returned from the bit positions progress from right to left as powers of
2. The rightmost bit returns 1 (2^0), the bit to the left returns 2 (2^1), and so on.
Using the same example, 0 is returned for the rightmost bit position because it is
a 0, 2 (2^1) is returned for the second bit position from the right (a 1 value), and
4 (2^2) is returned for the leftmost bit (also a 1 value). The total is 6, in decimal
representation.
188
Advanced Excel Functions
Applicability
Excel 2013, Excel 2016
Example
189
102. COMPLEX FUNCTION Advanced Excel Functions
Description
The COMPLEX function converts real and imaginary coefficients into a complex number of
the form x+yi or x+yj.
Syntax
COMPLEX (real_num, i_num, [suffix])
Arguments
Required
Argument Description
/Optional
real_num The real coefficient of the complex number. Required
i_num The imaginary coefficient of the complex number. Required
The suffix for the imaginary component of the
suffix complex number. If omitted, suffix is assumed to be Optional
"i".
Notes
All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J".
Using uppercase results in the #VALUE! Error value.
All functions that accept two or more complex numbers require that all suffixes
match.
If suffix is neither "i" nor "j", COMPLEX returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
190
Advanced Excel Functions
Example
191
103. CONVERT Function Advanced Excel Functions
Description
The CONVERT function converts a number from one measurement system to another.
For example, CONVERT can translate a table of distances in miles to a table of distances
in kilometers.
Syntax
CONVERT (number,from_unit,to_unit)
Arguments
Argument Description Required
/Optional
Number The value in from_units to convert. Required
From_unit The units for number. Required
To_unit The units for the result. Required
Notes
The from_unit and to_unit arguments should be Compatible i.e. they may not be
from different measurement types (e.g. temperature and distance). If you attempt
to convert between two incompatible measurement types, Excel will return the
#N/A error.
CONVERT accepts the following text values (in quotation marks) for from_unit and
to_unit-
o The text abbreviations for the unit types are case sensitive.
o The unit types that are colored in orange were introduced in Excel 2013 and
were not available in earlier versions of Excel.
192
Advanced Excel Functions
Distance Units
Distance From_unit or to_unit
Meter "m"
Statute Mile "mi"
Nautical Mile "Nmi"
Inch "in"
Foot "ft"
Yard "yd"
Angstrom "ang"
Pica (1/6 inch) "pica"
Pica (1/72 inch) "Pica" (or "Picapt")
Ell "ell"
Light-year "ly"
Parsec "parsec" (or "pc")
U.S. survey mile "survey_mi"
Time Units
Time From_unit or to_unit
Year "yr"
Day "day"
Hour "hr"
Minute "mn"
Second "sec"
Pressure Units
Pressure From_unit or to_unit
Pascal "Pa" (or "p")
Atmosphere "atm" (or "at")
mm of Mercury "mmHg"
PSI "psi"
Torr "Torr"
193
Advanced Excel Functions
Force Units
Force From_unit or to_unit
Newton "N"
Dyne "dyn" (or "dy")
Pound Force "lbf"
Pond "pond"
Energy Units
Energy From_unit or to_unit
Joule "J"
Erg "e"
Thermodynamic Calorie "c"
IT Calorie "cal"
Electron Volt "eV" (or "ev")
Horsepower-Hour "HPh"
Watt-Hour "Wh"
Foot-Pound "flb"
BTU "BTU" (or "btu")
Power Units
Power From_unit or to_unit
Horsepower "HP" (or "h")
Watt "W" (or "w")
Pferdestärke "PS"
Magnetism Units
Magnetism From_unit or to_unit
Tesla "T"
Gauss "ga"
Temperature Units
Temperature From_unit or to_unit
Degree Celsius "C" (or "cel")
Degree Fahrenheit "F" (or "fah")
Kelvin "K" (or "kel")
Degrees Rankine "Rank"
Degrees Réaumur "Reau"
194
Advanced Excel Functions
Area Units
Area From_unit or to_unit
International acre "uk_acre"
U.S. survey acre "us_acre"
Square angstrom "ang2" (or "ang^2")
Are "ar"
Square feet "ft2" (or "ft^2")
Hectare "ha"
Square inches "in2" (or "in^2")
Square light-year "ly2" (or "ly^2")
Square meters "m2" (or "m^2")
Morgen "Morgen"
Square miles "mi2" (or "mi^2")
Square nautical miles "Nmi2" (or "Nmi^2")
195
Advanced Excel Functions
Area Units
Area From_unit or to_unit
Square Pica "Picapt2" (or "Pica2" or "Pica^2" or
"Picapt^2")
Square yards "yd2" (or "yd^2")
Information Units
Bit "bit"
Byte "byte"
Speed Units
Speed From_unit or to_unit
Admiralty knot "admkn"
Knot "kn"
Meters per hour "m/h" (or "m/hr")
Meters per second "m/s" (or "m/sec")
Miles per hour "mph"
In addition, the following text can be prepended any metric to_unit or from_unit. For
example, the "c" prepended to the meter unit, "m" becomes "cm" to denote centimeters.
196
Advanced Excel Functions
Derived
Binary Prefix Prefix Value Abbreviation
from
yobi 2^80 "Yi" yotta
zebi 2^70 "Zi" zetta
exbi 2^60 "Ei" exa
pebi 2^50 "Pi" peta
tebi 2^40 "Ti" tera
gibi 2^30 "Gi" giga
mebi 2^20 "Mi" mega
kibi 2^10 "ki" kilo
Notes
If the input data types are incorrect, CONVERT returns the #VALUE! error value.
If the unit does not exist, CONVERT returns the #N/A error value.
If the unit does not support a binary prefix, CONVERT returns the #N/A error value.
If the units are in different groups, CONVERT returns the #N/A error value.
Unit names and prefixes are case-sensitive.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
197
104. DEC2BIN Function Advanced Excel Functions
Description
The DEC2BIN function converts a decimal number to binary.
Syntax
DEC2BIN (number, [places])
Arguments
Required
Argument Description
/Optional
The decimal integer you want to convert.
If number is negative, valid place values are ignored
and DEC2BIN returns a 10-character (10-bit) binary
number number in which the most significant bit is the sign Required
bit. The remaining 9 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, DEC2BIN uses the minimum
places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
If number < -512 or if number > 511, DEC2BIN returns the #NUM! error value
If number is nonnumeric, DEC2BIN returns the #VALUE! error value
If DEC2BIN requires more than places characters, it returns the #NUM! error value
If places is not an integer, it is truncated
If places is nonnumeric, DEC2BIN returns the #VALUE! error value
If places is zero or negative, DEC2BIN returns the #NUM! error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
198
Advanced Excel Functions
Example
199
105. DEC2HEX Function Advanced Excel Functions
Description
The DEC2HEX function converts a decimal number to hexadecimal.
Syntax
DEC2HEX (number, [places])
Arguments
Required
Argument Description
/Optional
The decimal integer you want to convert.
If number is negative, places is ignored and
DEC2HEX returns a 10-character (40-bit)
hexadecimal number in which the most significant
number Required
bit is the sign bit. The remaining 39 bits are
magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, DEC2HEX uses the minimum
places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
If Number is < -549,755,813,888 or if Number is > 549,755,813,887, DEC2HEX
returns the #NUM! error value.
If the result of DEC2HEX requires more than the number of specified Places
characters, it returns the #NUM! Error value. For example, DEC2HEX(64,1) returns
the error value because the result (40) requires two characters.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
200
Advanced Excel Functions
Example
201
106. DEC2OCT Function Advanced Excel Functions
Description
The DEC2OCT function converts a decimal number to octal.
Syntax
DEC2OCT (number, [places])
Arguments
Required
Argument Description
/Optional
The decimal integer you want to convert.
If number is negative, places is ignored and DEC2OCT
returns a 10-character (30-bit) octal number in which the
number most significant bit is the sign bit. The remaining 29 bits Required
are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, DEC2OCT uses the minimum number
places of characters necessary. Optional
Places is useful for padding the return value with leading
0s (zeros).
Notes
If number < -536,870,912 or if number > 536,870,911, DEC2OCT returns the
#NUM! error value.
If DEC2OCT requires more than places characters, it returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
202
Advanced Excel Functions
Example
203
107. DELTA Function Advanced Excel Functions
Description
The DELTA function tests whether two values are equal. It returns 1 if number1 =
number2; returns 0 otherwise.
You can use this function to filter a set of values. For example, by summing several DELTA
functions you calculate the count of equal pairs. This function is also known as the
Kronecker Delta function.
Syntax
DELTA (number1, [number2])
Arguments
Notes
If number1 is nonnumeric, DELTA returns the #VALUE! error value.
If number2 is nonnumeric, DELTA returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
204
Advanced Excel Functions
Example
205
108. ERF Function Advanced Excel Functions
Description
The ERF function returns the error function integrated between lower_limit and
upper_limit.
Syntax
ERF (lower_limit, [upper_limit])
Arguments
Required
Argument Description
/Optional
lower_limit The lower bound for integrating ERF. Required
The upper bound for integrating ERF.
upper_limit If omitted, ERF integrates between zero and Optional
lower_limit.
Notes
If lower_limit is nonnumeric, ERF returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
In Excel 2007, if you input a negative value for the upper or lower limit, the function
would return #NUM! error value.
In Excel 2010, the function algorithm has been improved, so that it can now
calculate the function for both positive and negative ranges.
206
Advanced Excel Functions
Example
207
109. ERF.PRECISE Function Advanced Excel Functions
Description
The ERF.PRECISE function returns the error function. The Error function is given by the
formula-
The ERF.PRECISE function calculates this function with the upper or lower limit of the
integral set to 0 (depending on whether the user-supplied limit is positive or negative).
If you want to choose both the upper and lower limits yourself, you should consider using
the ERF Function.
Syntax
ERF.PRECISE(x)
Arguments
Argument Description Required
/Optional
Notes
If lower_limit is nonnumeric, ERF.PRECISE returns the #VALUE! Error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
208
110. ERFC Function Advanced Excel Functions
Description
The ERFC function returns the complementary ERF function integrated between x and
infinity.
The Complementary Error Function is equal to 1 - ERF (i.e. 1 - Error Function), and is
given by the equation:
Syntax
ERFC(x)
Arguments
Argument Description Required
/Optional
x The lower bound for integrating ERFC. Required
Notes
If x is nonnumeric, ERFC returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
In Excel 2007, if you input a negative value for the argument - x, the function
would return a #NUM! Error value.
In Excel 2010, the function algorithm has been improved, so that it can now
calculate the function for both positive and negative x values.
209
Advanced Excel Functions
Example
210
111. ERFC.PRECISE Function Advanced Excel Functions
Description
The ERFC.PRECISE function returns the complementary ERF function integrated between
x and infinity.
The Complementary Error Function is equal to 1 - ERF (i.e. 1 - Error Function), and is
given by the equation-
Syntax
ERFC.PRECISE(x)
Arguments
Argument Description Required
/Optional
x The lower bound for integrating ERFC.PRECISE. Required
Notes
If x is nonnumeric, ERFC.PRECISE returns the #VALUE! Error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
211
112. GESTEP Function Advanced Excel Functions
Description
The GESTEP function returns-
1 if number ≥ step
0 (zero) if number < step
You can use this function to filter a set of values. For example, by summing several GESTEP
functions, you calculate the count of values that exceed a threshold.
Syntax
GESTEP (number, [step])
Arguments
Argument Description Required
/Optional
number The value to test against step. Required
step The threshold value. Optional
If you omit a value for step, GESTEP uses zero.
Notes
If number is nonnumeric, GESTEP returns the #VALUE! error value.
If step is nonnumeric, GESTEP returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
212
113. HEX2BIN Function Advanced Excel Functions
Description
The HEX2BIN function converts a hexadecimal number to binary.
Syntax
HEX2BIN (number, [places])
Arguments
Required
Argument Description
/Optional
The hexadecimal number you want to convert.
Number cannot contain more than 10 characters (40
bits). The most significant bit of number is the sign
number bit (40th bit from the right). The remaining 39 bits Required
are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, HEX2BIN uses the minimum
places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
The Hexadecimal (Base 16) Numeral System uses the digits 0-9 and the characters
A-F
The following table shows the first 32 hexadecimal values, along with the equivalent
decimal values:
Hexadecimal 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
Decimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
As hexadecimals use the numbers 0-9 and the characters A-F, they should be
enclosed in quotation marks when they are supplied to an Excel function. For
example, the hexadecimal 11A should be input as "11A"
213
Advanced Excel Functions
The following table shows the first 8 binary values, along with the equivalent
decimal values-
Decimal 1 2 3 4 5 6 7 8
If number is not a valid hexadecimal number, HEX2BIN returns the #NUM! error
value.
If HEX2BIN requires more than places characters, it returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
214
114. HEX2DEC Function Advanced Excel Functions
Description
The HEX2DEC function converts a hexadecimal number to decimal.
Syntax
HEX2DEC (number)
Arguments
Required
Argument Description
/Optional
The hexadecimal number you want to convert.
Number cannot contain more than 10 characters
(40 bits). The most significant bit of number is the
number Required
sign bit. The remaining 39 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
Notes
The Hexadecimal (Base 16) Numeral System uses the digits 0-9 and the characters
A-F
The following table shows the first 32 hexadecimal values, along with the equivalent
decimal values-
Hexadecimal 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
Decimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
As hexadecimals use the numbers 0-9 and the characters A-F, they should be
enclosed in quotation marks when they are supplied to an Excel function. For
example, the hexadecimal 11A should be input as "11A"
If number is not a valid hexadecimal number, HEX2DEC returns the #NUM! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
215
Advanced Excel Functions
Example
216
115. HEX2OCT Function Advanced Excel Functions
Description
The HEX2OCT function converts a hexadecimal number to octal.
Syntax
HEX2OCT (number, [places])
Arguments
Required
Argument Description
/Optional
The hexadecimal number you want to convert.
Number cannot contain more than 10 characters (40
bits). The most significant bit of number is the sign
number Required
bit. The remaining 39 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, HEX2OCT uses the minimum
places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
The Hexadecimal (Base 16) Numeral System uses the digits 0-9 and the characters
A-F
The following table shows the first 32 hexadecimal values, along with the equivalent
decimal values:
Hexadecimal 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
Decimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
As hexadecimals use the numbers 0-9 and the characters A-F, they should be
enclosed in quotation marks when they are supplied to an Excel function. For
example, the hexadecimal 11A should be input as "11A"
The following table shows the first 16 octal values, along with the equivalent
decimal values-
Octal 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20
Decimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
217
Advanced Excel Functions
If number is not a valid hexadecimal number, HEX2OCT returns the #NUM! error
value.
If HEX2OCT requires more than places characters, it returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
218
116. IMABS Function Advanced Excel Functions
Description
The IMABS function returns the absolute value (modulus) of a complex number in x + yi
or x + yj text format.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in complex number functions, this is interpreted as a complex number.
The complex number functions can accept simple numeric values, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Syntax
IMABS (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the absolute Required
value.
Notes
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
219
Advanced Excel Functions
Example
220
117. IMAGINARY Function Advanced Excel Functions
Description
The IMAGINARY function returns the imaginary coefficient of a complex number in x + yi
or x + yj text format.
Syntax
IMAGINARY (inumber)
Arguments
Required
Argument Description
/Optional
A complex number for which you want the
inumber Required
imaginary coefficient.
Notes
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
221
Advanced Excel Functions
Example
222
118. IMARGUMENT Function Advanced Excel Functions
Description
The IMARGUMENT function returns the argument (theta), an angle expressed in radians,
such that-
Syntax
IMARGUMENT (inumber)
Arguments
Required
Argument Description
/Optional
Inumber A complex number for which you want the argument . Required
Notes
Use COMPLEX to convert real and imaginary coefficients into a complex number
IMARGUMENT is calculated as follows-
Where
, and z = x + yi
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
223
119. IMCONJUGATE Function Advanced Excel Functions
Description
The IMCONJUGATE function returns the complex conjugate of a complex number in x + yi
or x + yj text format.
Syntax
IMCONJUGATE (inumber)
Arguments
Required
Argument Description
/Optional
Inumber A complex number for which you want the conjugate. Required
Notes
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
224
120. IMCOS Function Advanced Excel Functions
Description
The IMCOS function returns the cosine of a Complex Number in x + yi or x + yj text
format.
Syntax
IMCOS (inumber)
Arguments
Argument Description Required
/Optional
Inumber A Complex Number for which you want the cosine. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
Complex Number Functions can accept a simple numeric value, as this is equivalent
to a Complex Number whose imaginary Coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If inumber is not recognized as a complex number, IMCOS returns the #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
225
Advanced Excel Functions
Example
226
121. IMCOSH Function Advanced Excel Functions
Description
The IMCOSH function returns the hyperbolic cosine of a Complex Number in x+yi or x+yj
text format.
Syntax
IMCOSH (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the hyperbolic Required
cosine.
Notes
Complex Numbers in Excel are simply stored as text in Excel.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If inumber is not recognized as a complex number, IMCOS returns the #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
227
Advanced Excel Functions
Example
228
122. IMCOT Function Advanced Excel Functions
Description
The IMCOT function returns the cotangent of a complex number in x+yi or x+yj text
format.
Syntax
IMCOT (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the cotangent. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If inumber is not recognized as a complex number, IMCOT returns the #NUM! error.
Applicability
Excel 2013, Excel 2016
229
Advanced Excel Functions
Example
230
123. IMCSC Function Advanced Excel Functions
Description
The IMCSC function returns the cosecant of a complex number in x+yi or x+yj text format.
The cosecant of a complex number is defined as the inverse of the sine. i.e.
Syntax
IMCSC (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the cosecant. Required
Notes
Complex Numbers in Excel are simply stored as text in Excel.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If inumber is not recognized as a complex number, IMCSC returns the #NUM! error.
Applicability
Excel 2013, Excel 2016
231
Advanced Excel Functions
Example
232
124. IMCSCH Function Advanced Excel Functions
Description
The IMCSCH function returns the hyperbolic cosecant of a complex number in x+yi or x+yj
text format.
The hyperbolic cosecant of a complex number is defined as the inverse of the hyperbolic
sine i.e.
csch(z) = 1 / sinh(z)
Syntax
IMCSCH (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the hyperbolic Required
cosecant.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
Applicability
Excel 2013, Excel 2016
233
Advanced Excel Functions
Example
234
125. IMDIV Function Advanced Excel Functions
Description
The IMDIV function returns the quotient of two complex numbers in x + yi or x + yj text
format.
Syntax
IMDIV (inumber1, inumber2)
Arguments
Argument Description Required
/Optional
Inumber1 The complex numerator or dividend. Required
Inumber2 The complex denominator or divisor. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If either of inumber1, inumber2 is a logical value, IMDIV returns the #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
235
Advanced Excel Functions
Example
236
126. IMEXP Function Advanced Excel Functions
Description
The IMEXP function returns the exponential of a complex number in x + yi or x + yj text
format. The exponential of a complex number is-
Syntax
IMEXP (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the Required
exponential.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The Complex Number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If inumber is not recognized as a complex number, IMEXP returns the #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
237
Advanced Excel Functions
Example
238
127. IMLN Function Advanced Excel Functions
Description
The IMLN function returns the natural logarithm of a complex number in x + yi or x + yj
text format.
Syntax
IMLN (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the natural Required
logarithm.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If inumber is not recognized as a complex number, IMLN returns the #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
239
Advanced Excel Functions
Example
240
128. IMLOG2 Function Advanced Excel Functions
Description
The IMLOG2 function returns the base-2 logarithm of a complex number in x + yi or x +
yj text format. The base-2 logarithm of a complex number can be calculated from the
natural logarithm as follows:
Syntax
IMLOG2 (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the base-2 Required
logarithm.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
241
Advanced Excel Functions
Example
242
129. IMLOG10 Function Advanced Excel Functions
Description
The IMLOG10 function returns the common logarithm (base 10) of a complex number in
x + yi or x + yj text format. The common logarithm of a complex number can be calculated
from the natural logarithm as follows-
Syntax
IMLOG10 (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the common Required
logarithm.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
243
Advanced Excel Functions
Example
244
130. IMPOWER Function Advanced Excel Functions
Description
The IMPOWER function returns a complex number in x + yi or x + yj text format raised to
a power. A complex number raised to a power is calculated as follows-
Where-
and and
Syntax
IMPOWER (inumber, number)
Arguments
Required
Argument Description
/Optional
Inumber A complex number you want to raise to a power. Required
The power to which you want to raise the complex
Number number. Required
Number can be an integer, fractional, or negative.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
245
Advanced Excel Functions
Example
246
131. IMPRODUCT Function Advanced Excel Functions
Description
The IMPRODUCT function returns the product of 1 to 255 complex numbers in x + yi or x
+ yj text format. The product of two complex numbers is-
Syntax
IMPRODUCT (inumber1, [inumber2] ...)
Arguments
Required
Argument Description
/Optional
1 to 255 complex numbers to multiply.
Inumber1 Required
1 to 255 complex numbers to multiply.
[inumber2], … Optional
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
247
Advanced Excel Functions
Example
248
132. IMREAL Function Advanced Excel Functions
Description
The IMREAL function returns the real coefficient of a complex number in x + yi or x + yj
text format.
Syntax
IMREAL (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the real Required
coefficient.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
249
Advanced Excel Functions
Example
250
133. IMSEC Function Advanced Excel Functions
Description
The IMSEC function returns the secant of a complex number in x+yi or x+yj text format.
The secant of a complex number is defined as the inverse of the cosine. i.e.
secant(z) = 1 / cosine(z)
Syntax
IMSEC (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the secant. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If inumber is not recognized as a complex number, IMSEC returns the #NUM! error.
Applicability
Excel 2013, Excel 2016
251
Advanced Excel Functions
Example
252
134. IMSECH Function Advanced Excel Functions
Description
The IMSECH function returns the hyperbolic secant of a complex number in x+yi or x+yj
text format. The hyperbolic secant of a complex number is defined as the inverse of the
hyperbolic cosine i.e.
sech(z) = 1 / cosh(z)
Syntax
IMSECH (inumber)
Arguments
Required
Argument Description
/Optional
A complex number for which you want the hyperbolic
Inumber Required
secant.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
Applicability
Excel 2013, Excel 2016
253
Advanced Excel Functions
Example
254
135. IMSIN Function Advanced Excel Functions
Description
The IMSIN function returns the sine of a complex number in x + yi or x + yj text format.
The sine of a complex number is-
Syntax
IMSIN (inumber)
Arguments
Argument Description Required
/Optional
Inumber A Complex Number for which you want the sine. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If inumber is not recognized as a complex number, IMSIN returns the #NUM! error.
If inumber is a logical value, IMSIN returns the #VALUE! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
255
Advanced Excel Functions
Example
256
136. MSINH Function Advanced Excel Functions
Description
The MSINH function returns the hyperbolic sine of a complex number in x+yi or x+yj text
format. The hyperbolic sine of a complex number is calculated by the following equation-
Syntax
IMSINH (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the hyperbolic Required
sine.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If inumber is not recognized as a complex number, IMSINH returns the #NUM!
error.
If inumber is a logical value, IMSINH returns the #VALUE! error.
Applicability
Excel 2013, Excel 2016
257
Advanced Excel Functions
Example
258
137. IMSQRT Function Advanced Excel Functions
Description
The IMSQRT function returns the square root of a complex number in x + yi or x + yj text
format. The square root of a complex number is-
Where-
and and
Syntax
IMSQRT (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the square Required
root.
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If inumber is not recognized as a complex number, IMSQRT returns the #NUM!
error.
If inumber is a logical value, IMSQRT returns the #VALUE! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
259
Advanced Excel Functions
Example
260
138. IMSUB Function Advanced Excel Functions
Description
The IMSUB function returns the difference of two complex numbers in x + yi or x + yj text
format. When subtracting complex numbers, the real and imaginary coefficients are
subtracted separately i.e., the equation to subtract complex number c+di from complex
number a+bi is-
Syntax
IMSUB (inumber1, inumber2)
Arguments
Argument Description Required
/Optional
Inumber1 The complex number from which to subtract Required
inumber2.
Inumber2 The complex number to subtract from inumber1. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a complex number.
If one or both of the inumber arguments is not recognized as a Complex Number,
IMSUB returns the #NUM! error.
If one or both of the inumber arguments is a logical value, IMSUB returns the
#VALUE! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
261
Advanced Excel Functions
Example
262
139. IMSUM Function Advanced Excel Functions
Description
The IMSUM function returns the sum of two or more complex numbers in x + yi or x + yj
text format. When adding complex numbers, the real and imaginary coefficients are added
separately i.e., the equation to find the sum of two complex numbers a+bi and c+di is-
Syntax
IMSUM (inumber1, [inumber2] ...)
Arguments
Argument Description Required
/Optional
Inumber1 1 to 255 complex numbers to add. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If any of the inumber arguments is a logical value, IMSUM returns the #VALUE!
Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
263
Advanced Excel Functions
Example
264
140. IMTAN Function Advanced Excel Functions
Description
The IMTAN function returns the tangent of a complex number in x+yi or x+yj text format.
The tangent of a complex number is calculated by the following formula-
Syntax
IMTAN (inumber)
Arguments
Argument Description Required
/Optional
Inumber A complex number for which you want the tangent. Required
Notes
Complex Numbers in Excel are simply stored as text.
When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-
in Complex Number Functions, this is interpreted as a complex number.
The complex number functions can accept a simple numeric value, as this is
equivalent to a complex number whose imaginary coefficient is equal to 0.
Use COMPLEX to convert real and imaginary coefficients into a Complex Number.
If Inumber is not recognized as a complex number, IMTAN returns the #NUM! error.
Applicability
Excel 2013, Excel 2016
265
Advanced Excel Functions
Example
266
141. OCT2BIN Function Advanced Excel Functions
Description
The OCT2BIN function converts an octal number to binary.
Syntax
OCT2BIN (number, [places])
Arguments
Required
Argument Description
/Optional
The octal number you want to convert.
Number may not contain more than 10 characters.
The most significant bit of number is the sign bit. The
Number Required
remaining 29 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, OCT2BIN uses the minimum
Places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
If number is negative, OCT2BIN ignores places and returns a 10-character binary
number.
If number is negative, it cannot be less than 7777777000.
If number is positive, it cannot be greater than 777.
If places is not an integer, it is truncated.
If number is not a valid octal number, OCT2BIN returns the #NUM! error value.
If OCT2BIN requires more than places characters, it returns the #NUM! error value.
If places is nonnumeric, OCT2BIN returns the #VALUE! error value.
If places is negative, OCT2BIN returns the #NUM! error value.
If places is >10, OCT2BIN returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
267
Advanced Excel Functions
Example
268
142. OCT2DEC Function Advanced Excel Functions
Description
The OCT2DEC function converts an octal number to decimal.
Syntax
OCT2DEC (number)
Arguments
Required
Argument Description
/Optional
The octal number you want to convert.
Number may not contain more than 10 octal characters (30
bits). The most significant bit of number is the sign bit. The
Number Required
remaining 29 bits are magnitude bits.
Negative numbers are represented using two's-
complement notation.
Notes
If number is not recognized as an octal number, or contains more than 10 characters,
OCT2DEC returns the #NUM! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
269
143. OCT2HEX Function Advanced Excel Functions
Description
The OCT2HEX function onverts an octal number to hexadecimal.
Syntax
OCT2HEX (number, [places])
Arguments
Required
Argument Description
/Optional
The octal number you want to convert.
Number may not contain more than 10 octal
characters (30 bits). The most significant bit of
Number number is the sign bit. The remaining 29 bits are Required
magnitude bits.
Negative numbers are represented using two's-
complement notation.
The number of characters to use.
If places is omitted, OCT2HEX uses the minimum
Places number of characters necessary. Optional
Places is useful for padding the return value with
leading 0s (zeros).
Notes
If number is negative, OCT2HEX ignores places and returns a 10-character
hexadecimal number.
If places is not an integer, it is truncated.
If number is not a valid octal number, OCT2HEX returns the #NUM! error value.
If OCT2HEX requires more than places characters, it returns the #NUM! error value.
If places is nonnumeric, OCT2HEX returns the #VALUE! error value.
If places is negative, OCT2HEX returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
270
Advanced Excel Functions
Example
271
Advanced Excel Functions
Financial Functions
272
144. Financial Functions – Overview Advanced Excel Functions
Excel Financial functions perform many of the common financial calculations, such as the
calculation of yield, interest rates, duration, valuation and asset depreciation.
Financial Functions
The following table lists all the Financial functions-
1 ACCRINT
Returns the accrued interest for a security that pays periodic interest
2 ACCRINTM
Returns the accrued interest for a security that pays interest at maturity
3 AMORDEGRC
Returns the depreciation for each accounting period
4 AMORLINC
Returns the depreciation for each accounting period (the depreciation
coefficient depends on the life of the assets)
5 COUPDAYBS
Returns the number of days from the beginning of the coupon period to the
settlement date
6 COUPDAYS
Returns the number of days in the coupon period that contains the settlement
date
7 COUPDAYSNC
Returns the number of days from the settlement date to the next coupon date
8 COUPNCD
Returns the next coupon date after the settlement date
9 COUPNUM
Returns the number of coupons payable between the settlement date and
maturity date
10 COUPPCD
Returns the previous coupon date before the settlement date
11 CUMIPMT
Returns the cumulative interest paid between two periods
12 CUMPRINC
Returns the cumulative principal paid on a loan between two periods
13 DB
Returns the depreciation of an asset for a specified period, using the fixed-
declining-balance method
273
Advanced Excel Functions
14 DDB
Returns the depreciation of an asset for a specified period, using the double-
declining-balance method or some other method that you specify
15 DISC
Returns the discount rate for a security
16 DOLLARDE
Converts a dollar price, expressed as a fraction, into a dollar price, expressed
as a decimal number
17 DOLLARFR
Converts a dollar price, expressed as a decimal number, into a dollar price,
expressed as a fraction
18 DURATION
Returns the annual duration of a security with periodic interest payments
19 EFFECT
Returns the effective annual interest rate
20 FV
Returns the future value of an investment
21 FVSCHEDULE
Returns the future value of an initial principal after applying a series of
compound interest rates
22 INTRATE
Returns the interest rate for a fully invested security
23 IPMT
Returns the interest payment for an investment for a given period
24 IRR
Returns the internal rate of return for a series of cash flows
25 ISPMT
Calculates the interest paid during a specific period of an investment
26 MDURATION
Returns the Macauley modified duration for a security with an assumed par
value of $100
27 MIRR
Returns the internal rate of return where positive and negative cash flows are
financed at different rates
28 NOMINAL
Returns the annual nominal interest rate
29 NPER
Returns the number of periods for an investment
30 NPV
Returns the net present value of an investment based on a series of periodic
cash flows and a discount rate
31 ODDFPRICE
Returns the price per $100 face value of a security with an odd first period
274
Advanced Excel Functions
32 ODDFYIELD
Returns the yield of a security with an odd first period
33 ODDLPRICE
Returns the price per $100 face value of a security with an odd last period
34 ODDLYIELD
Returns the yield of a security with an odd last period
35 PDURATION
Returns the number of periods required by an investment to reach a specified
value
36 PMT
Returns the periodic payment for an annuity
37 PPMT
Returns the payment on the principal for an investment for a given period
38 PRICE
Returns the price per $100 face value of a security that pays periodic interest
39 PRICEDISC
Returns the price per $100 face value of a discounted security
40 PRICEMAT
Returns the price per $100 face value of a security that pays interest at
maturity
41 PV
Returns the present value of an investment
42 RATE
Returns the interest rate per period of an annuity
43 RECEIVED
Returns the amount received at maturity for a fully invested security
44 RRI
Returns an equivalent interest rate for the growth of an investment
45 SLN
Returns the straight-line depreciation of an asset for one period
46 SYD
Returns the sum-of-years’ digits depreciation of an asset for a specified period
47 TBILLEQ
Returns the bond-equivalent yield for a Treasury bill
48 TBILLPRICE
Returns the price per $100 face value for a Treasury bill
49 TBILLYIELD
Returns the yield for a Treasury bill
50 VDB
Returns the depreciation of an asset for a specified or partial period using a
declining-balance method
275
Advanced Excel Functions
51 XIRR
Returns the internal rate of return for a schedule of cash flows that is not
necessarily periodic
52 XNPV
Returns the net present value for a schedule of cash flows that is not
necessarily periodic
53 YIELD
Returns the yield on a security that pays periodic interest
54 YIELDDISC
Returns the annual yield for a discounted security, for example, a Treasury bill
55 YIELDMAT
Returns the annual yield of a security that pays interest at maturity
276
145. ACCRINT Function Advanced Excel Functions
Description
The ACCRINT function returns the accrued interest for a security that pays periodic
interest.
Syntax
ACCRINT (issue, first_interest, settlement, rate, par, frequency, [basis],
[calc_method])
Arguments
Required
Argument Description
/Optional
Issue The security's issue date. Required
First_interest The security's first interest date. Required
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
Rate The security's annual coupon rate. Required
The security's par value.
Par Required
If you omit par, ACCRINT uses $1,000.
The number of coupon payments per year:
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
A logical value that specifies the way to calculate
the total accrued interest when the date of
settlement is later than the date of first_interest.
A value of TRUE (1) returns the total accrued
Calc_method interest from issue to settlement. Optional
A value of FALSE (0) returns the accrued interest
from first_interest to settlement.
If you do not enter the argument, it defaults to
TRUE.
277
Advanced Excel Functions
Notes
ACCRINT is calculated as follows-
Where-
Ai = number of accrued days for the ith quasi-coupon period within odd period.
NC = number of quasi-coupon periods that fit in odd period. If this number contains
a fraction, raise it to the next whole number
NLi = normal length in days of the quasi-coupon period within odd period
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If any of the specified values is non-numeric, ACCRINT returns the #VALUE! error
value.
If frequency is any number other than 1, 2, or 4, ACCRINT returns the #NUM! error
value.
If basis < 0 or if basis > 4, ACCRINT returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
278
Advanced Excel Functions
Example
279
146. ACCRINTM Function Advanced Excel Functions
Description
The ACCRINTM function returns the accrued interest for a security that pays interest at
maturity.
Syntax
ACCRINTM (issue, settlement, rate, par, [basis])
Arguments
Required
Argument Description
/Optional
Issue The security's issue date. Required
Settlement The security's maturity date. Required
Rate The security's annual coupon rate. Required
The security's par value.
Par Required
If you omit par, ACCRINTM uses $1,000.
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis table below.
Notes
ACCRINTM is calculated as follows-
ACCRINTM = par x rate x A/D
Where-
A = Number of accrued days counted according to a monthly basis. For interest at
maturity items, the number of days from the issue date to the maturity date is
used.
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
280
Advanced Excel Functions
If issue or settlement is not a valid date, ACCRINTM returns the #VALUE! error
value.
If any of the specified values is non-numeric, ACCRINT returns the #VALUE! error
value.
If basis < 0 or if basis > 4, ACCRINTM returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
281
147. AMORDEGRC Function Advanced Excel Functions
Description
The AMORDEGRC function returns the depreciation for each accounting period. This
function is provided for the French accounting system. If an asset is purchased in the
middle of the accounting period, the prorated depreciation is taken into account.
Syntax
AMORDEGRC (cost, date_purchased, first_period, salvage, period, rate, [basis])
Arguments
Argument Description Required
/Optional
Cost The cost of the asset. Required
Date_purchased The date of the purchase of the asset. Required
First_period The date of the end of the first period. Required
Salvage The salvage value at the end of the life of the asset. Required
Period The period. Required
Rate The rate of depreciation. Required
Basis The year basis to be used. Optional
Look at the Basis Table given below.
Basis Table
Basis Date system
0 or omitted 360 days (NASD method)
1 Actual
3 365 days in a year
4 360 days in a year (European method)
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
This function will return the depreciation until the last period of the life of the assets
or until the cumulated value of depreciation is greater than the cost of the assets
minus the salvage value.
282
Advanced Excel Functions
The depreciation coefficients are given in the Depreciation Coefficients Table below.
The depreciation rate will grow to 50 percent for the period preceding the last
period and will grow to 100 percent for the last period.
If Invalid numbers are supplied for the salvage, period, rate or [basis] arguments
(i.e. if either: salvage < 0, period < 0, rate ≤ 0, or [basis] is any number other
than 0, 1, 2, 3 or 4), AMORDEGRC returns #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
283
148. AMORLINC Function Advanced Excel Functions
Description
The AMORLINC function returns the depreciation for each accounting period. This function
is provided for the French accounting system. If an asset is purchased in the middle of the
accounting period, the prorated depreciation is taken into account.
Syntax
AMORLINC (cost, date_purchased, first_period, salvage, period, rate, [basis])
Arguments
Required
Argument Description
/Optional
Cost The cost of the asset. Required
Date_purchased The date of the purchase of the asset. Required
First_period The date of the end of the first period. Required
The salvage value at the end of the life of the
Salvage Required
asset.
Period The period. Required
Rate The rate of depreciation. Required
The year basis to be used.
Basis Optional
Look at the Year Basis Table below.
284
Advanced Excel Functions
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If Invalid numbers are supplied for the salvage, period, rate or [basis] arguments
(i.e. if either: salvage < 0, period < 0, rate ≤ 0, or [basis] is any number other
than 0, 1, 2, 3 or 4), AMORLINC returns #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
285
149. COUPDAYBS Function Advanced Excel Functions
Description
The COUPDAYBS function returns the number of days from the beginning of a coupon
period until its settlement date.
Syntax
COUPDAYBS (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
286
Advanced Excel Functions
If settlement or maturity is not a valid Excel date, COUPDAYBS returns the #VALUE!
error value.
If basis < 0 or if basis > 4, COUPDAYBS returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
287
150. COUPDAYS Function Advanced Excel Functions
Description
The COUPDAYS function returns the number of days in the coupon period that contains
the settlement date.
Syntax
COUPDAYS (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, COUPDAYS returns the #VALUE!
error value
If basis < 0 or if basis > 4, COUPDAYS returns the #NUM! error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
289
151. COUPDAYSNC Function Advanced Excel Functions
Description
The COUPDAYSNC function returns the number of days from the settlement date to the
next coupon date.
Syntax
COUPDAYSNC (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
290
Advanced Excel Functions
If basis < 0 or if basis > 4, COUPDAYSNC returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
291
152. COUPNCD Function Advanced Excel Functions
Description
The COUPNCD function returns a number that represents the next coupon date after the
settlement date.
Syntax
COUPNCD (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
292
Advanced Excel Functions
If settlement or maturity is not a valid Excel date, COUPNCD returns the #VALUE!
error value.
If basis < 0 or if basis > 4, COUPNCD returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
293
153. COUPNUM Function Advanced Excel Functions
Description
The COUPNUM function returns the number of coupons payable between the settlement
date and maturity date, rounded up to the nearest whole coupon.
Syntax
COUPNUM (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
294
Advanced Excel Functions
If settlement or maturity is not a valid Excel date, COUPNUM returns the #VALUE!
error value.
If basis < 0 or if basis > 4, COUPNUM returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
295
154. COUPPCD Function Advanced Excel Functions
Description
The COUPPCD function returns a number that represents the previous coupon date before
the settlement date.
Syntax
COUPPCD (settlement, maturity, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
296
Advanced Excel Functions
If settlement or maturity is not a valid Excel date, COUPPCD returns the #VALUE!
error value.
If any of the specified arguments are non-numeric, COUPPCD returns the #VALUE!
error value.
If basis < 0 or if basis > 4, COUPPCD returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
297
155. CUMIPMT Function Advanced Excel Functions
Description
The CUMIPMT function returns the cumulative interest paid on a loan between start_period
and end_period.
Syntax
CUMIPMT (rate, nper, pv, start_period, end_period, type)
Arguments
Argument Description Required
/Optional
Rate The interest rate. Required
Nper The total number of payment periods. Required
Pv The present value. Required
Start_period The first period in the calculation. Required
Payment periods are numbered beginning with 1.
End_period The last period in the calculation. Required
Type The timing of the payment. Required
Look at the Type-Timing Table given below.
Type-Timing Table
Type Timing
0 (zero) Payment at the end of the period
1 Payment at the beginning of the period
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at an annual interest
rate of 10 percent, use 10%/12 for rate and 4*12 for nper
o If you make annual payments on the same loan, use 10% for rate and 4 for
nper
If rate ≤ 0, nper ≤ 0, or pv ≤ 0, CUMIPMT returns the #NUM! error value.
If start_period or end_period > nper, CUMIPMT returns the #NUM! error value.
If type is any number other than 0 or 1, CUMIPMT returns the #NUM! error value.
298
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
299
156. CUMPRINC Function Advanced Excel Functions
Description
The CUMPRINC function returns the cumulative principal paid on a loan between
start_period and end_period.
Syntax
CUMPRINC (rate, nper, pv, start_period, end_period, type)
Arguments
Argument Description Required
/Optional
Rate The interest rate. Required
Nper The total number of payment periods. Required
Pv The present value Required
Start_period The first period in the calculation. Payment periods Required
are numbered beginning with 1.
End_period The last period in the calculation. Required
Type The timing of the payment. Required
Look at the Type-Timing Table given below.
Type-Timing Table
Type Timing
0 (zero) Payment at the end of the period
1 Payment at the beginning of the period
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at an annual interest
rate of 12 percent, use 12%/12 for rate and 4*12 for nper.
o If you make annual payments on the same loan, use 12% for rate and 4 for
nper.
If rate ≤ 0, nper ≤ 0, or pv ≤ 0, CUMPRINC returns the #NUM! error value.
If type is any number other than 0 or 1, CUMPRINC returns the #NUM! error value.
300
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
301
157. DB Function Advanced Excel Functions
Description
The DB function returns the depreciation of an asset for a specified period using the fixed-
declining balance method.
Syntax
DB (cost, salvage, life, period, [month])
Arguments
Required
Argument Description
/Optional
Cost The initial cost of the asset. Required
The value at the end of the depreciation (sometimes
Salvage Required
called the salvage value of the asset).
The number of periods over which the asset is being
Life depreciated (sometimes called the useful life of the Required
asset).
The period for which you want to calculate the
Period depreciation. Required
Period must use the same units as life.
The number of months in the first year.
Month Optional
If month is omitted, it is assumed to be 12.
Notes
The fixed-declining balance method computes depreciation at a fixed rate. DB uses
the following formulas to calculate depreciation for a period-
Where-
rate = 1 - ((salvage / cost) ^ (1 / life)), rounded to three decimal places
If the specified cost or the specified salvage argument is < 0, DB returns #NUM!
error value.
If the specified life or the specified period argument is ≤ 0, DB returns #NUM! error
value.
302
Advanced Excel Functions
If the specified month argument is ≤ 0 or is > 12, DB returns #NUM! error value.
If the specified period > life and the month argument is omitted, DB returns
#NUM! error value.
If any of the specified arguments is not a numeric value, DB returns #VALUE! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
303
158. DDB Function Advanced Excel Functions
Description
The DDB function returns the depreciation of an asset for a specified period using the
double-declining balance method or some other method you specify.
Syntax
DDB (cost, salvage, life, period, [factor])
Arguments
Required
Argument Description
/Optional
Cost The initial cost of the asset. Required
The value at the end of the depreciation (sometimes
Salvage called the salvage value of the asset). Required
This value can be 0.
The number of periods over which the asset is being
Life depreciated (sometimes called the useful life of the Required
asset).
The period for which you want to calculate the
Period depreciation. Required
Period must use the same units as life.
The rate at which the balance declines.
Factor If factor is omitted, it is assumed to be 2 (the double- Optional
declining balance method).
Notes
All five arguments must be positive numbers.
Change factor if you do not want to use the double-declining balance method.
Use the VDB Function if you want to switch to the straight-line depreciation method
when depreciation is greater than the declining balance calculation.
If either the specified cost or the specified salvage argument is < 0, DDB returns
#NUM! error value.
304
Advanced Excel Functions
If any of the specified life, period or factor arguments is ≤ 0, DDB returns #NUM!
error value.
If the specified period > life, DDB returns #NUM! error value.
If any of the specified arguments is not a numeric value, #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
305
159. DISC Function Advanced Excel Functions
Description
The DISC function returns the discount rate for a security.
Syntax
DISC (settlement, maturity, pr, redemption, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
Pr The security's price per $100 face value. Required
Redemption The security's redemption value per $100 face value. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
DISC is calculated as follows-
Where
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
306
Advanced Excel Functions
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, DISC returns the #VALUE! error
value.
If basis < 0 or if basis > 4, DISC returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
307
160. DOLLARDE Function Advanced Excel Functions
Description
The DOLLARDE function converts a dollar price expressed as an integer part and a fraction
part, such as 1.02, into a dollar price expressed as a decimal number. Fractional dollar
numbers are sometimes used for security prices. The fraction part of the value is divided
by an integer that you specify.
Syntax
DOLLARDE (fractional_dollar, fraction)
Arguments
Required
Argument Description
/Optional
A number expressed as an integer part and a
Fractional_dollar Required
fraction part, separated by a decimal symbol.
The integer to use in the denominator of the
Fraction Required
fraction.
Notes
If fraction is not an integer, it is truncated.
If fraction is greater than or equal to 0 and less than 1, DOLLARDE returns the
#DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
308
Advanced Excel Functions
Example
309
161. DOLLARFR Function Advanced Excel Functions
Description
The DOLLARFR function converts a dollar price, expressed as a decimal number, into a
dollar price, expressed as a fraction.
Syntax
DOLLARFR (decimal_dollar, fraction)
Arguments
Argument Description Required
/Optional
Decimal_dollar A decimal number. Required
Notes
If fraction is not an integer, it is truncated.
If fraction is less than 0, DOLLARFR returns the #NUM! error value.
If fraction is 0, DOLLARFR returns the #DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
310
162. DURATION Function Advanced Excel Functions
Description
The DURATION function returns the Macauley duration for an assumed par value of $100.
Duration is defined as the weighted average of the present value of the cash flows and is
used as a measure of a bond price's response to changes in yield.
Syntax
DURATION (settlement, maturity, coupon, yld, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
Coupon The security's annual coupon rate. Required
Yld The security's annual yield. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
311
Advanced Excel Functions
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, DURATION returns the #VALUE!
error value.
If coupon < 0 or if yld < 0, DURATION returns the #NUM! error value.
If basis < 0 or if basis > 4, DURATION returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
312
163. EFFECT Function Advanced Excel Functions
Description
The EFFECT function returns the effective annual interest rate, given the nominal annual
interest rate and the number of compounding periods per year.
Syntax
EFFECT (nominal_rate, npery)
Arguments
Argument Description Required
/Optional
Nominal_rate The nominal interest rate. Required
Npery The number of compounding periods per year. Required
Notes
EFFECT is calculated as follows:
effective_rate= (1+(nominal_rate/npery))*npery -1
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
313
164. FV Function Advanced Excel Functions
Description
The FV function calculates the future value of an investment based on a constant interest
rate. You can use FV with either periodic, constant payments, or a single lump sum
payment.
Syntax
FV (rate,nper,pmt,[pv],[type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate per period. Required
Nper The total number of payment periods in an annuity. Required
The payment made each period.
It cannot change over the life of the annuity.
Pmt Typically, pmt contains principal and interest but no Required
other fees or taxes.
If pmt is omitted, you must include the pv argument.
The present value, or the lump-sum amount that a
series of future payments is worth right now.
Pv Optional
If pv is omitted, it is assumed to be 0 (zero), and you
must include the pmt argument.
The number 0 or 1 and indicates when payments are
due.
Type Optional
See Table given below.
If type is omitted, it is assumed to be 0.
For more description of the arguments in FV and for more information on annuity functions,
see PV.
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments for four years at 12 percent annual interest,
use 12%/12 for rate and 4*12 for nper
o If you make annual payments for four years at 12 percent annual interest,
use 12% for rate and 4 for nper
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
315
165. FVSCHEDULE Function Advanced Excel Functions
Description
The FVSCHEDULE function returns the future value of an initial principal after applying a
series of compound interest rates. Use FVSCHEDULE to calculate the future value of an
investment with a variable or adjustable rate.
Syntax
FVSCHEDULE (principal, schedule)
Arguments
Argument Description Required
/Optional
Principal The present value. Required
Schedule An array of interest rates to apply. Required
Notes
The values in schedule can be numbers or blank cells. Any other value produces
the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
316
166. INTRATE Function Advanced Excel Functions
Description
The INTRATE function returns the interest rate for a fully invested security.
Syntax
INTRATE (settlement, maturity, investment, redemption, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
Investment The amount invested in the security. Required
Redemption The amount to be received at maturity. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
INTRATE is calculated as follows-
Where:
B = number of days in a year, depending on the year basis.
DIM = number of days from settlement to maturity.
Dates should be entered by using the DATE function, or as results of other formulas
or functions. Foe example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
317
Advanced Excel Functions
The settlement date is the date a buyer purchases a coupon, such as a bond
If settlement or maturity is not a valid Excel date, INTRATE returns the #VALUE!
error value
If basis < 0 or if basis > 4, INTRATE returns the #NUM! error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
318
167. IPMT Function Advanced Excel Functions
Description
The IPMT function returns the interest payment for a given period for an investment based
on periodic, constant payments and a constant interest rate.
Syntax
IPMT (rate, per, nper, pv, [fv], [type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate per period. Required
The period for which you want to find the interest and
Per Required
must be in the range 1 to nper.
Nper The total number of payment periods in an annuity. Required
The present value, or the lump-sum amount that a
Pv Required
series of future payments is worth right now.
The future value, or a cash balance you want to attain
after the last payment is made.
Fv Optional
If fv is omitted, it is assumed to be 0 (the future value
of a loan, for example, is 0).
The number 0 or 1 and indicates when payments are
due.
Type Optional
Look at the Type Table given below.
If type is omitted, it is assumed to be 0.
Type Table
Set type equal to If payments are due
0 At the end of the period
1 At the beginning of the period
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper-
o If you make monthly payments on a four-year loan at 12 percent annual
interest, use 12%/12 for rate and 4*12 for nper
o If you make annual payments on the same loan, use 12% for rate and 4 for
nper
For all the arguments-
o cash you pay out, such as deposits to savings, is represented by negative
numbers
319
Advanced Excel Functions
If the specified per argument is < 0 or is > the specified value of nper, IPMT returns
#NUM! error value.
If any of the specified arguments is not recognized as numeric value, IPMT returns
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
320
168. IRR Function Advanced Excel Functions
Description
The IRR function returns the internal rate of return for a series of cash flows represented
by the numbers in values.These cash flows do not have to be even, as they would be for
an annuity. However, the cash flows must occur at regular intervals, such as monthly or
annually.
The internal rate of return is the interest rate received for an investment consisting of
payments (negative values) and income (positive values) that occur at regular periods.
Syntax
IRR (values, [guess])
Arguments
Required
Argument Description
/Optional
An array or a reference to cells that contain numbers for
which you want to calculate the internal rate of return.
Values must contain at least one positive value and one
negative value to calculate the internal rate of return.
Values IRR uses the order of values to interpret the order of cash Required
flows. Be sure to enter your payment and income values
in the sequence you want.
If an array or reference argument contains text, logical
values, or empty cells, those values are ignored.
A number that you guess is close to the result of IRR.
Microsoft Excel uses an iterative technique for calculating
IRR. Starting with guess, IRR cycles through the
calculation until the result is accurate within 0.00001
percent. If IRR can't find a result that works after 20 tries,
the #NUM! error value is returned.
Guess Optional
In most cases you do not need to provide guess for the
IRR calculation. If guess is omitted, it is assumed to be 0.1
(10 percent).
If IRR gives the #NUM! error value, or if the result is not
close to what you expected, try again with a different value
for guess.
Notes
IRR is closely related to NPV, the net present value (NPV) Function. The rate of
return calculated by IRR is the interest rate corresponding to a 0 (zero) net present
value. The following formula demonstrates how NPV and IRR are related-
[Within the accuracy of the IRR calculation, the value is effectively 0 (zero).]
321
Advanced Excel Functions
If the specified values array does not contain at least one negative and at least one
positive value, IRR returns #NUM! error value.
If the calculation failed to converge after 20 iterations, IRR returns #NUM! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
322
169. ISPMT Function Advanced Excel Functions
Description
The ISPMT function calculates the interest paid during a specific period of an investment.
This Function is provided for compatibility with Lotus 1-2-3.
Syntax
ISPMT (rate, per, nper, pv)
Arguments
Required
Argument Description
/Optional
Rate The interest rate for the investment. Required
The period for which you want to find the interest, and
Per Required
must be between 1 and nper.
Nper The total number of payment periods for the investment. Required
The present value of the investment.
Pv Required
For a loan, pv is the loan amount.
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at an annual interest
rate of 12 percent, use 12%/12 for rate and 4*12 for nper
o If you make annual payments on the same loan, use 12% for rate and 4 for
nper
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
323
Advanced Excel Functions
Example
324
170. MDURATION Function Advanced Excel Functions
Description
The MDURATION function returns the modified Macauley duration for a security with an
assumed par value of $100.
Syntax
MDURATION (settlement, maturity, coupon, yld, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
Coupon The security's annual coupon rate. Required
Yld The security's annual yield. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at Day Count Basis Table given below.
Notes
Modified duration is defined as follows-
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
325
Advanced Excel Functions
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, MDURATION returns the #VALUE!
error value.
If yld < 0 or if coupon < 0, MDURATION returns the #NUM! error value.
If basis < 0 or if basis > 4, MDURATION returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
326
171. MIRR Function Advanced Excel Functions
Description
The MIRR function returns the modified internal rate of return for a series of periodic cash
flows. MIRR considers both the cost of the investment and the interest received on
reinvestment of cash.
Syntax
MIRR (values, finance_rate, reinvest_rate)
Arguments
Required
Argument Description
/Optional
An array or a reference to cells that contain numbers.
These numbers represent a series of payments
(negative values) and income (positive values)
occurring at regular periods.
Values must contain at least one positive value and
one negative value to calculate the modified internal
Values Required
rate of return. Otherwise, MIRR returns the #DIV/0!
error value.
If an array or reference argument contains text,
logical values, or empty cells, those values are
ignored. However, cells with the value zero are
included.
The interest rate you pay on the money used in the
Finance_rate Required
cash flows.
The interest rate you receive on the cash flows as you
Reinvest_rate Required
reinvest them.
Notes
If n is the number of cash flows in values, frate is the finance_rate, and rrate is the
reinvest_rate, then the formula for MIRR is:
MIRR uses the order of values to interpret the order of cash flows. Be sure to enter
your payment and income values in the sequence you want and with the correct
signs (positive values for cash received, negative values for cash paid)
If the specified values array does not contain at least one negative and at least one
positive value, MIRR returns #DIV/0! Error.
327
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
328
172. NOMINAL Function Advanced Excel Functions
Description
Returns the nominal annual interest rate, given the effective rate and the number of
compounding periods per year.
Syntax
NOMINAL (effect_rate, npery)
Arguments
Argument Description Required
/Optional
Effect_rate The effective interest rate. Required
Npery The number of compounding periods per year. Required
Notes
Npery is truncated to an integer.
The relationship between NOMINAL and EFFECT is shown in the following equation:
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
329
Advanced Excel Functions
Example
330
173. NPER Function Advanced Excel Functions
Description
The NPER function returns the number of periods for an investment based on periodic,
constant payments and a constant interest rate.
Syntax
NPER (rate,pmt,pv,[fv],[type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate per period. Required
The payment made each period.
It cannot change over the life of the annuity.
Pmt Required
Typically, pmt contains principal and interest but no other
fees or taxes.
The present value, or the lump-sum amount that a series
Pv Optional
of future payments is worth right now.
The future value, or a cash balance you want to attain after
the last payment is made.
Fv Optional
If fv is omitted, it is assumed to be 0 (the future value of
a loan, for example, is 0).
The number 0 or 1 and indicates when payments are due.
Type See Table given below. Optional
If type is omitted, it is assumed to be 0.
For complete description of the arguments in NPER and for more information about annuity
functions, see PV.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
331
Advanced Excel Functions
Example
332
174. NPV Function Advanced Excel Functions
Description
The NPV function calculates the net present value of an investment by using a discount
rate and a series of future payments (negative values) and income (positive values).
Syntax
NPV (rate,value1,[value2],...)
Arguments
Argument Description Required
/Optional
Rate The rate of discount over the length of one period. Required
Value1 1 to 254 arguments representing the payments and Required
value2, ... income. Optional
Notes
If n is the number of cash flows in the list of values, the formula for NPV is-
Value1, value2 ... must be equally spaced in time and occur at the end of each
period.
NPV uses the order of value1, value2 ... to interpret the order of cash flows.
Be sure to enter your payment and income values in the correct sequence.
The NPV investment begins one period before the date of the value1 cash flow and
ends with the last cash flow in the list. The NPV calculation is based on future cash
flows. If your first cash flow occurs at the beginning of the first period, the first
value must be added to the NPV result, not included in the values arguments.
Arguments that are empty cells, logical values, or text representations of numbers,
error values, or text that cannot be translated into numbers are ignored.
NPV is similar to the PV function (present value). The primary difference between
PV and NPV is that PV allows cash flows to begin either at the end or at the
beginning of the period. Unlike the variable NPV cash flow values, PV cash flows
must be constant throughout the investment.
333
Advanced Excel Functions
NPV is also related to the IRR function (internal rate of return). IRR is the rate for
which NPV equals zero-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
334
175. ODDFPRICE Function Advanced Excel Functions
Description
The ODDFPRICE function returns the price per $100 face value of a security having an odd
(short or long) first period.
Syntax
ODDFPRICE (settlement, maturity, issue, first_coupon, rate, yld, redemption,
frequency, [basis])
Arguments
Argument Description Required
/Optional
Settlement The security's settlement date. Required
The security settlement date is the date after the issue
date when the security is traded to the buyer.
Maturity The security's maturity date. Required
The maturity date is the date when the security expires.
Issue The security's issue date. Required
First_coupon The security's first coupon date. Required
Rate The security's interest rate. Required
Yld The security's annual yield. Required
Redemption The security's redemption value per $100 face value. Required
Frequency The number of coupon payments per year. Required
for annual payments, frequency = 1
for semiannual, frequency = 2
for quarterly, frequency = 4
Basis The type of day count basis to use. Optional
Look at the Day Count Basis Table given below.
335
Advanced Excel Functions
Notes
ODDFPRICE is calculated as follows-
o Odd short first coupon-
Where
A = number of days from the beginning of the coupon period to the settlement date
(accrued days).
DSC = number of days from the settlement to the next coupon date.
DFC = number of days from the beginning of the odd first coupon to the first coupon
date.
N = number of coupons payable between the settlement date and the redemption date.
(If this number contains a fraction, it is raised to the next whole number.)
336
Advanced Excel Functions
Where
Ai = number of days from the beginning of the ith, or last, quasi-coupon period within
odd period.
DCi = number of days from dated date (or issue date) to first quasi-coupon (i = 1) or
number of days in quasi-coupon (i = 2,..., i = NC).
N = number of coupons payable between the first real coupon date and redemption
date. (If this number contains a fraction, it is raised to the next whole number.)
NC = number of quasi-coupon periods that fit in odd period. (If this number contains
a fraction, it is raised to the next whole number.)
NLi = normal length in days of the full ith, or last, quasi-coupon period within odd
period.
Nq = number of whole quasi-coupon periods between settlement date and first coupon.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. E.g. use DATE (2008,5,23) for the 23rd day of May, 2008. Problems
can occur if dates are entered as text
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond.
337
Advanced Excel Functions
The following date condition must be satisfied. Otherwise, ODDFPRICE returns the
#NUM! error value-
If rate < 0 or if yld < 0, ODDFPRICE returns the #NUM! error value.
If basis < 0 or if basis > 4, ODDFPRICE returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
338
176. ODDFYIELD Function Advanced Excel Functions
Description
The ODDFYIELD function returns the yield of a security that has an odd (short or long)
first period.
Syntax
ODDFYIELD (settlement, maturity, issue, first_coupon, rate, pr, redemption,
frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date. The security settlement
Settlement date is the date after the issue date when the security Required
is traded to the buyer.
The security's maturity date. The maturity date is the
Maturity Required
date when the security expires.
Issue The security's issue date. Required
First_coupon The security's first coupon date. Required
Rate The security's interest rate. Required
Pr The security's price. Required
Redemption The security's redemption value per $100 face value. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
339
Advanced Excel Functions
The settlement date is the date a buyer purchases a coupon, such as a bond.
The following date condition must be satisfied; otherwise, ODDFYIELD returns the
#NUM! error value-
Excel uses an iterative technique to calculate ODDFYIELD. This Function uses the
Newton method based on the formula used for the Function ODDFPRICE. The yield
is changed through 100 iterations until the estimated price with the given yield is
close to the price. Refer ODDFPRICE Function for the formula that ODDFYIELD uses.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
340
Advanced Excel Functions
Example
341
177. ODDLPRICE Function Advanced Excel Functions
Description
The ODDLPRICE function returns the price per $100 face value of a security having an odd
(short or long) last coupon period.
Syntax
ODDLPRICE (settlement, maturity, last_interest, rate, yld, redemption, frequency,
[basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
Last_interest The security's last coupon date. Required
Rate The security's interest rate. Required
Yld The security's annual yield. Required
Redemption The security's redemption value per $100 face value. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
342
Advanced Excel Functions
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond.
If rate < 0 or if yld < 0, ODDLPRICE returns the #NUM! error value.
If basis < 0 or if basis > 4, ODDLPRICE returns the #NUM! error value.
The following date condition must be satisfied; otherwise, ODDLPRICE returns the
#NUM! error value-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
343
178. ODDLYIELD Function Advanced Excel Functions
Description
The ODDLYIELD function returns the yield of a security that has an odd (short or long) last
period.
Syntax
ODDLYIELD (settlement, maturity, last_interest, rate, pr, redemption, frequency,
[basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
Last_interest The security's last coupon date. Required
Rate The security's interest rate. Required
Pr The security's price. Required
Redemption The security's redemption value per $100 face value. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
344
Advanced Excel Functions
Notes
ODDLYIELD is calculated as follows-
Where-
Ai = number of accrued days for the ith, or last, quasi-coupon period within odd period
counting forward from last interest date before redemption.
DCi = number of days counted in the ith, or last, quasi-coupon period as delimited by
the length of the actual coupon period.
NC = number of quasi-coupon periods that fit in odd period; if this number contains a
fraction it will be raised to the next whole number.
NLi = normal length in days of the ith, or last, quasi-coupon period within odd coupon
period.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond
345
Advanced Excel Functions
If basis < 0 or if basis > 4, ODDLYIELD returns the #NUM! error value.
The following date condition must be satisfied; otherwise, ODDLYIELD returns the
#NUM! error value-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
346
179. PDURATION Function Advanced Excel Functions
Description
The PDURATION function returns the number of periods required by an investment to
reach a specified value.
Where
specifiedValue is equal to fv
currentValue is equal to pv
Syntax
PDURATION (rate, pv, fv)
Arguments
Argument Description Required
/Optional
Rate Rate is the interest rate per period. Required
Pv Pv is the present value of the investment. Required
Fv Fv is the desired future value of the investment. Required
Notes
PDURATION requires that all arguments are positive values.
If any of the argument values are zero or negative, PDURATION returns the #NUM!
error value.
Applicability
Excel 2013, Excel 2016
347
Advanced Excel Functions
Example
348
180. PMT Function Advanced Excel Functions
Description
The PMT function calculates the payment for a loan based on constant payments and a
constant interest rate.
Syntax
PMT (rate, nper, pv, [fv], [type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate for the loan. Required
Nper The total number of payments for the loan. Required
The present value, or the total amount that a series
Pv of future payments is worth now. Required
Also known as the principal.
The future value, or a cash balance you want to
attain after the last payment is made.
Fv Optional
If fv is omitted, it is assumed to be 0 (zero), that
is, the future value of a loan is 0.
The number 0 (zero) or 1 and indicates when
Type payments are due. Optional
Look at the Type-Payment Table below.
Type-Payment Table
Set type equal to If payments are due
0 or omitted At the end of the period
1 At the beginning of the period
Notes
The payment returned by PMT includes principal and interest but no taxes, reserve
payments, or fees sometimes associated with loans.
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at an annual interest
rate of 12 percent, use 12%/12 for rate and 4*12 for nper
o If you make annual payments on the same loan, use 12 percent for rate and
4 for nper
To find the total amount paid over the duration of the loan, multiply the returned
PMT value by nper
349
Advanced Excel Functions
If the specified value of rate is less than or equal to -1, PMT returns #NUM! error
value.
If the specified value of nper is equal to 0, PMT returns #NUM! error value.
If any of the specified arguments is non-numeric, PMT returns #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
350
181. PPMT Function Advanced Excel Functions
Description
The PPMT function returns the payment on the principal for a given period for an
investment based on periodic, constant payments and a constant interest rate.
Syntax
PPMT (rate, per, nper, pv, [fv], [type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate per period. Required
Per Specifies the period and must be in the range 1 to nper. Required
Nper The total number of payment periods in an annuity. Required
The present value — the total amount that a series of
Pv Required
future payments is worth now.
The future value, or a cash balance you want to attain
after the last payment is made.
Fv Optional
If fv is omitted, it is assumed to be 0 (zero), that is, the
future value of a loan is 0.
Type-Payment Table
Set type equal to If payments are due
0 or omitted At the end of the period
1 At the beginning of the period
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at 12 percent annual
interest, use 12%/12 for rate and 4*12 for nper
oIf you make annual payments on the same loan, use 12% for rate and 4 for
nper
If the specified per argument is < 0 or is > the specified value of nper, PPMT
returns #NUM! error value.
If any of the specified arguments is not recognized as numeric value, PPMT returns
#VALUE!error value.
351
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
352
182. PRICE Function Advanced Excel Functions
Description
The PRICE function returns the price per $100 face value of a security that pays periodic
interest.
Syntax
PRICE (settlement, maturity, rate, yld, redemption, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date. The maturity date is the
Maturity Required
date when the security expires.
Rate The security's annual coupon rate. Required
Yld The security's annual yield. Required
Redemption The security's redemption value per $100 face value. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
353
Advanced Excel Functions
Notes
When N > 1 (N is the number of coupons payable between the settlement date and
redemption date), PRICE is calculated as follows:
Where:
When N = 1 (N is the number of coupons payable between the settlement date and
redemption date), PRICE is calculated as follows-
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
354
Advanced Excel Functions
If settlement or maturity is not a valid Excel date, PRICE returns the #VALUE! error
value.
If any of the specified arguments is non-numeric, PRICE returns the #VALUE! error
value.
If yld < 0 or if rate < 0, PRICE returns the #NUM! error value.
If frequency is any number other than 1, 2, or 4, PRICE returns the #NUM! error
value.
If basis < 0 or if basis > 4, PRICE returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
355
183. PRICEDISC Function Advanced Excel Functions
Description
The PRICEDISC function returns the price per $100 face value of a discounted security.
Syntax
PRICEDISC (settlement, maturity, discount, redemption, [basis])
Arguments
Argument Description Required
/Optional
Settlement The security's settlement date. Required
The security settlement date is the date after the issue
date when the security is traded to the buyer.
Maturity The security's maturity date. Required
The maturity date is the date when the security expires.
Discount The security's discount rate. Required
Redemption The security's redemption value per $100 face value. Required
Basis The type of day count basis to use. Optional
Look at the Day Count Basis Table given below.
Notes
PRICEDISC is calculated as follows-
𝐷𝑆𝑀
𝑃𝑅𝐼𝐶𝐸𝐷𝐼𝑆𝐶 = 𝑟𝑒𝑑𝑒𝑚𝑝𝑡𝑖𝑜𝑛 − 𝑑𝑖𝑠𝑐𝑜𝑢𝑛𝑡 × 𝑟𝑒𝑑𝑒𝑚𝑝𝑡𝑖𝑜𝑛 ×
𝐵
Where
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text
356
Advanced Excel Functions
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond
If settlement or maturity is not a valid Excel date, PRICEDISC returns the #VALUE!
error value.
If basis < 0 or if basis > 4, PRICEDISC returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
357
184. PRICEMAT Function Advanced Excel Functions
Description
The PRICEMAT function returns the price per $100 face value of a security that pays
interest at maturity.
Syntax
PRICEMAT (settlement, maturity, issue, rate, yld, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
The security's issue date, expressed as a serial date
Issue Required
number.
Rate The security's interest rate at date of issue. Required
Yld The security's annual yield. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
Notes
PRICEMAT is calculated as follows-
𝐷𝐼𝑀
100 + ( × 𝑟𝑎𝑡𝑒 × 100) 𝐴
𝑃𝑅𝐼𝐶𝐸𝑀𝐴𝑇 = 𝐵 − ( × 𝑟𝑎𝑡𝑒 × 100)
𝐷𝑆𝑀 𝐵
1+( × 𝑦𝑙𝑑)
𝐵
Where
358
Advanced Excel Functions
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. E.g. use DATE (2008,5,23) for the 23rd day of May, 2008. Problems
can occur if dates are entered as text
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond
If settlement, maturity, or issue is not a valid Excel date, PRICEMAT returns the
#VALUE! error value.
If rate < 0 or if yld < 0, PRICEMAT returns the #NUM! error value.
If basis < 0 or if basis > 4, PRICEMAT returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
359
185. PV Function Advanced Excel Functions
Description
The PV function calculates the present value of a loan or an investment, based on a
constant interest rate. You can use PV with either periodic, constant payments (such as a
mortgage or other loan), or a future value, which is your investment goal.
Syntax
PV (rate, nper, pmt, [fv], [type])
Arguments
Required
Argument Description
/Optional
Rate The interest rate per period. Required
Nper The total number of payment periods in an annuity. Required
The payment made each period and cannot change over
the life of the annuity.
Pmt Required
Typically, pmt includes principal and interest but no other
fees or taxes.
The future value, or a cash balance you want to attain
after the last payment is made.
Fv Optional
If fv is omitted, it is assumed to be 0 (the future value of
a loan, for example, is 0).
The number 0 or 1 and indicates when payments are due.
Type Optional
Look at the Type-Payment Table given below.
Type-Payment Table
Set type equal to If payments are due
0 or omitted At the end of the period
1 At the beginning of the period
Notes
Make sure that you are consistent about the units you use for specifying rate and
nper
o If you make monthly payments on a four-year loan at 12 percent annual
interest, use 12%/12 for rate and 4*12 for nper
o If you make annual payments on the same loan, use 12% for rate and 4 for
nper
The following functions apply to annuities:
o CUMIPMT
o CUMPRINC
o FV
360
Advanced Excel Functions
o FVSCHEDULE
o IPMT
o PMT
o PPMT
o PV
o RATE
o XIRR
o XNPV
An annuity is a series of constant cash payments made over a continuous period.
Microsoft Excel solves for one financial argument in terms of the others. If rate is
not 0, then-
If rate is 0, then-
(pmt * nper) + pv + fv = 0
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
361
186. RATE Function Advanced Excel Functions
Description
The RATE function returns the interest rate per period of an annuity. RATE is calculated by
iteration and can have zero or more solutions. If the successive results of RATE do not
converge to within 0.0000001 after 20 iterations, RATE returns the #NUM! Error value.
Syntax
RATE (nper, pmt, pv, [fv], [type], [guess])
For a complete description of the arguments nper, pmt, pv, fv, and type, refer PV Function.
Arguments
Required
Argument Description
/Optional
Nper The total number of payment periods in an annuity. Required
The payment made each period and cannot change over
the life of the annuity.
Pmt Typically, pmt includes principal and interest but no other Required
fees or taxes.
If pmt is omitted, you must include the fv argument.
The present value — the total amount that a series of
Pv Required
future payments is worth now.
The future value, or a cash balance you want to attain
after the last payment is made.
Fv If fv is omitted, it is assumed to be 0 (the future value of Optional
a loan, for example, is 0).
If fv is omitted, you must include the pmt argument.
The number 0 or 1 and indicates when payments are due.
Type Optional
Look at the Type-Payment Table given below.
Type-Payment Table
Set type equal to If payments are due
0 or omitted At the end of the period
1 At the beginning of the period
362
Advanced Excel Functions
Notes
Make sure that you are consistent about the units you use for specifying guess and
nper
o If you make monthly payments on a four-year loan at 12 percent annual
interest, use 12%/12 for guess and 4*12 for nper
o If you make annual payments on the same loan, use 12% for guess and 4
for nper
If the Function fails to converge to a solution, RATE returns #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
363
187. RECEIVED Function Advanced Excel Functions
Description
The RECEIVED function returns the amount received at maturity for a fully invested
security.
Syntax
RECEIVED (settlement, maturity, investment, discount, [basis])
Arguments
Argument Description Required
/Optional
Settlement The security's settlement date. Required
The security settlement date is the date after the issue
date when the security is traded to the buyer.
Maturity The security's maturity date. Required
The maturity date is the date when the security expires.
Investment The amount invested in the security. Required
Discount The security's discount rate. Required
Basis The type of day count basis to use. Optional
Look at the Day Count Basis Table given below.
Notes
RECEIVED is calculated as follows-
Where
364
Advanced Excel Functions
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, RECEIVED returns the #VALUE!
error value.
If basis < 0 or if basis > 4, RECEIVED returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
365
188. RRI Function Advanced Excel Functions
Description
The RRI function returns an equivalent interest rate for the growth of an investment.
Syntax
RRI (nper, pv, fv)
RRI returns the interest rate given nper (the number of periods), pv (present value), and
fv (future value), calculated by using the following equation:
Arguments
Required
Argument Description
/Optional
Nper Nper is the number of periods for the investment. Required
Pv Pv is the present value of the investment. Required
Fv Fv is the future value of the investment. Required
Notes
If nper or pv is zero, RRI returns #NUM! error.
If any of the specified arguments is negative, RRI returns #NUM! error.
If any of the specified arguments is not recognized as a numeric value, RRI returns
#VALUE! Error.
Applicability
Excel 2013, Excel 2016
366
Advanced Excel Functions
Example
367
189. SLN Function Advanced Excel Functions
Description
The SLN function returns the straight-line depreciation of an asset for one period.
Syntax
SLN (cost, salvage, life)
Arguments
Required
Argument Description
/Optional
Cost The initial cost of the asset. Required
The value at the end of the depreciation (sometimes
Salvage Required
called the salvage value of the asset).
The number of periods over which the asset is
Life depreciated (sometimes called the useful life of the Required
asset).
Notes
If the specified life argument is 0, SLN returns #DIV/0! Error.
If any of the specified life arguments is a non-numeric value, SLN returns non-
numeric value Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
368
190. SYD Function Advanced Excel Functions
Description
The SYD function returns the sum-of-years' digits depreciation of an asset for a specified
period.
Syntax
SYD (cost, salvage, life, per)
Arguments
Required
Argument Description
/Optional
Cost The initial cost of the asset. Required
The value at the end of the depreciation (sometimes
Salvage Required
called the salvage value of the asset).
The number of periods over which the asset is
Life depreciated (sometimes called the useful life of the Required
asset).
Per The period and must use the same units as life. Required
Notes
SYD is calculated as follows-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
369
Advanced Excel Functions
Example
370
191. TBILLEQ Function Advanced Excel Functions
Description
The TBILLEQ function returns the bond-equivalent yield for a Treasury bill.
Syntax
TBILLEQ (settlement, maturity, discount)
Arguments
Required
Argument Description
/Optional
The Treasury bill's settlement date.
The security settlement date is the date after the
Settlement Required
issue date when the Treasury bill is traded to the
buyer.
The Treasury bill's maturity date.
Maturity The maturity date is the date when the Treasury bill Required
expires.
Discount The Treasury bill's discount rate. Required
Notes
TBILLEQ is calculated as
Where DSM is the number of days between settlement and maturity computed
according to the 360 days per year basis.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If settlement or maturity is not a valid Excel date, TBILLEQ returns the #VALUE!
error value.
371
Advanced Excel Functions
If settlement > maturity, or if maturity is more than one year after settlement,
TBILLEQ returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
372
192. TBILLPRICE Function Advanced Excel Functions
Description
The TBILLPRICE function returns the price per $100 face value for a Treasury bill.
Syntax
TBILLPRICE (settlement, maturity, discount)
Arguments
Required
Argument Description
/Optional
The Treasury bill's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the Treasury bill is traded to the buyer.
The Treasury bill's maturity date.
Maturity The maturity date is the date when the Treasury bill Required
expires.
Discount The Treasury bill's discount rate. Required
Notes
TBILLPRICE is calculated as follows-
Where DSM = number of days from settlement to maturity, excluding any maturity
date that is more than one calendar year after the settlement date.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
If settlement or maturity is not a valid Excel date, TBILLPRICE returns the #VALUE!
error value.
If settlement > maturity, or if maturity is more than one year after settlement,
TBILLPRICE returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
374
193. TBILLYIELD Function Advanced Excel Functions
Description
The TBILLYIELD function returns the yield for a Treasury bill.
Syntax
TBILLYIELD (settlement, maturity, pr)
Arguments
Required
Argument Description
/Optional
The Treasury bill's settlement date.
The security settlement date is the date after the
Settlement Required
issue date when the Treasury bill is traded to the
buyer.
The Treasury bill's maturity date.
Maturity The maturity date is the date when the Treasury bill Required
expires.
Pr The Treasury bill's price per $100 face value. Required
Notes
TBILLYIELD is calculated as follows-
Where DSM = number of days from settlement to maturity, excluding any maturity
date that is more than one calendar year after the settlement date.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900
If settlement or maturity is not a valid Excel date, TBILLYIELD returns the #VALUE!
error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
376
194. VDB Function Advanced Excel Functions
Description
The VDB function returns the depreciation of an asset for any period you specify, including
partial periods, using the double-declining balance method or some other method you
specify. VDB stands for variable declining balance.
Syntax
VDB (cost, salvage, life, start_period, end_period, [factor], [no_switch])
Arguments
Required
Argument Description
/Optional
Cost The initial cost of the asset. Required
The value at the end of the depreciation (sometimes
Salvage called the salvage value of the asset). Required
This value can be 0.
The number of periods over which the asset is
Life depreciated (sometimes called the useful life of the Required
asset).
The starting period for which you want to calculate
Start_period the depreciation. Required
Start_period must use the same units as life.
The ending period for which you want to calculate
End_period the depreciation. Required
End_period must use the same units as life.
The rate at which the balance declines.
If factor is omitted, it is assumed to be 2 (the
double-declining balance method).
Factor Change factor if you do not want to use the double- Optional
declining balance method.
For a description of the double-declining balance
method, refer DDB Function.
A logical value specifying whether to switch to
straight-line depreciation when depreciation is
greater than the declining balance calculation.
If no_switch is TRUE, Excel does not switch to
straight-line depreciation even when the
No_switch Optional
depreciation is greater than the declining balance
calculation.
If no_switch is FALSE or omitted, Excel switches to
straight-line depreciation when depreciation is
greater than the declining balance calculation.
377
Advanced Excel Functions
Notes
All arguments except no_switch must be positive numbers.
If the specified start_period is > the supplied end_period, VDB returns #NUM!
error.
If start_period > life or end_period > life, VDB returns #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
378
195. XIRR Function Advanced Excel Functions
Description
The XIRR function returns the internal rate of return for a schedule of cash flows that is
not necessarily periodic. To calculate the internal rate of return for a series of periodic cash
flows, use the IRR function.
Syntax
XIRR (values, dates, [guess])
Arguments
Required
Argument Description
/Optional
A series of cash flows that corresponds to a schedule of
Values payments in dates. Required
See Notes below.
A schedule of payment dates that corresponds to the
cash flow payments.
Dates Required
Dates may occur in any order.
See Notes below.
Guess A number that you guess is close to the result of XIRR. Optional
Notes
The first payment is optional and corresponds to a cost or payment that occurs at
the beginning of the investment
o If the first value is a cost or payment, it must be a negative value
o All succeeding payments are discounted based on a 365-day year
The series of values must contain at least one positive and one negative value.
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
XIRR expects at least one positive cash flow and one negative cash flow. Otherwise,
XIRR returns the #NUM! error value.
If any number in dates is not a valid Excel date, XIRR returns the #VALUE! error
value.
379
Advanced Excel Functions
If any number in dates precedes the starting date, XIRR returns the #NUM! error
value.
If values and dates contain a different number of values, XIRR returns the #NUM!
error value.
In most cases you do not need to provide guess for the XIRR calculation. If omitted,
guess is assumed to be 0.1 (10 percent)
XIRR is closely related to XNPV, the net present value function. The rate of return
calculated by XIRR is the interest rate corresponding to XNPV = 0.
Excel uses an iterative technique for calculating XIRR. Using a changing rate
(starting with guess), XIRR cycles through the calculation until the result is accurate
within 0.000001 percent. If XIRR can't find a result that works after 100 tries, the
#NUM! error value is returned. The rate is changed until-
Where
di = the ith, or last, payment date.
d1 = the 0th payment date.
Pi = the ith, or last, payment.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
380
196. XNPV Function Advanced Excel Functions
Description
The XNPV function returns the net present value for a schedule of cash flows that is not
necessarily periodic. To calculate the net present value for a series of cash flows that is
periodic, use the NPV function.
Syntax
XNPV (rate, values, dates)
Arguments
Required
Argument Description
/Optional
Rate The discount rate to apply to the cash flows. Required
A series of cash flows that corresponds to a schedule
Values of payments in dates. Required
See Notes below.
A schedule of payment dates that corresponds to the
Dates cash flow payments. Required
See Notes below.
Notes
The first payment is optional and corresponds to a cost or payment that occurs at
the beginning of the investment.
The first payment date indicates the beginning of the schedule of payments.
All other dates must be later than this date, but they may occur in any order.
The series of values must contain at least one positive value and one negative
value.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
381
Advanced Excel Functions
If any number in dates is not a valid Excel date, XNPV returns the #VALUE! error
value.
If any number in dates precedes the starting date, XNPV returns the #NUM! error
value.
If values and dates contain a different number of values, XNPV returns the #NUM!
error value.
Where
di = the ith, or last, payment date.
d1 = the 0th payment date.
Pi = the ith, or last, payment.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
382
197. YIELD Function Advanced Excel Functions
Description
The YIELD function returns the yield on a security that pays periodic interest. Use YIELD
to calculate bond yield.
Syntax
YIELD (settlement, maturity, rate, pr, redemption, frequency, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
Rate The security's annual coupon rate. Required
Pr The security's price per $100 face value. Required
Redemption The security's redemption value per $100 face value. Required
The number of coupon payments per year.
for annual payments, frequency = 1
Frequency for semiannual, frequency = 2 Required
for quarterly, frequency = 4
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
1 Actual/actual
2 Actual/360
3 Actual/365
4 European 30/360
383
Advanced Excel Functions
Notes
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, YIELD returns the #VALUE! error
value.
If any of the specified arguments is non-numeric, YIELD returns the #VALUE! error
value.
If frequency is any number other than 1, 2, or 4, YIELD returns the #NUM! error
value.
If basis < 0 or if basis > 4, YIELD returns the #NUM! error value.
Where
A = number of days from the beginning of the coupon period to the settlement date
(accrued days).
DSR = number of days from the settlement date to the redemption date.
E = number of days in the coupon period.
384
Advanced Excel Functions
If there is more than one coupon period until redemption, YIELD is calculated
through a hundred iterations. The resolution uses the Newton method, based on
the formula used for the PRICE Function. The yield is changed until the estimated
price given the yield is close to price.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
385
198. YIELDDISC Function Advanced Excel Functions
Description
The YIELDDISC function returns the annual yield for a discounted security.
Syntax
YIELDDISC (settlement, maturity, pr, redemption, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the Required
issue date when the security is traded to the buyer.
The security's maturity date.
Maturity The maturity date is the date when the security Required
expires.
Pr The security's price per $100 face value. Required
Redemption The security's redemption value per $100 face value. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table below.
1 Actual/actual
2 Actual/360
3 Actual/365
4 European 30/360
Notes
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
386
Advanced Excel Functions
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement or maturity is not a valid Excel date, YIELDDISC returns the #VALUE!
error value.
If basis < 0 or if basis > 4, YIELDDISC returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
387
199. YIELDMAT Function Advanced Excel Functions
Description
The YIELDMAT function returns the annual yield of a security that pays interest at maturity.
Syntax
YIELDMAT (settlement, maturity, issue, rate, pr, [basis])
Arguments
Required
Argument Description
/Optional
The security's settlement date.
Settlement The security settlement date is the date after the issue Required
date when the security is traded to the buyer.
The security's maturity date.
Maturity Required
The maturity date is the date when the security expires.
The security's issue date, expressed as a serial date
Issue Required
number.
Rate The security's interest rate at date of issue. Required
Pr The security's price per $100 face value. Required
The type of day count basis to use.
Basis Optional
Look at the Day Count Basis Table given below.
1 Actual/actual
2 Actual/360
3 Actual/365
4 European 30/360
Notes
Dates should be entered by using the DATE Function, or as results of other formulas
or functions. For example, use DATE (2008,5,23) for the 23rd day of May, 2008.
Problems can occur if dates are entered as text.
388
Advanced Excel Functions
Microsoft Excel stores dates as sequential serial numbers so they can be used in
calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008
is serial number 39448 because it is 39,448 days after January 1, 1900.
The settlement date is the date a buyer purchases a coupon, such as a bond.
If settlement, maturity, or issue is not a valid Excel date, YIELDMAT returns the
#VALUE! error value.
If basis < 0 or if basis > 4, YIELDMAT returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
389
Advanced Excel Functions
Information Functions
390
200. Information Functions – Overview Advanced Excel Functions
Information functions provide information about the content, formatting and location of
cells in an Excel Worksheet.
Information Functions
The following table lists all the Information functions-
1 CELL
Returns information about the formatting, location, or contents of a cell
ERROR.TYPE
2 Returns a number corresponding to an error type
INFO
3 Returns information about the current operating environment
ISBLANK
4 Returns TRUE if the value is blank
ISERR
5 Returns TRUE if the value is any error value except #N/A
ISERROR
6 Returns TRUE if the value is any error value
ISEVEN
7 Returns TRUE if the number is even
ISFORMULA
8 Returns TRUE if there is a reference to a cell that contains a formula
ISLOGICAL
9 Returns TRUE if the value is a logical value
ISNA
10 Returns TRUE if the value is the #N/A error value
ISNONTEXT
11 Returns TRUE if the value is not text
ISNUMBER
12 Returns TRUE if the value is a number
ISODD
13 Returns TRUE if the number is odd
ISREF
14 Returns TRUE if the value is a reference
391
Advanced Excel Functions
N
16 Returns a value converted to a number
NA
17 Returns the error value #N/A
SHEET
18 Returns the sheet number of the referenced sheet
SHEETS
19 Returns the number of sheets in a reference
TYPE
20 Returns a number indicating the data type of a value
392
201. CELL Function Advanced Excel Functions
Description
The CELL function returns information about the formatting, location, or contents of a cell.
Syntax
CELL (info_type, [reference])
Arguments
Required
Argument Description
/Optional
A text value that specifies what type of cell information you
want to return.
Info_type Required
The possible values of the Info_type, are shown in the Table
Info_type Values below.
The cell that you want information about.
If omitted, the information specified in the Info_type
argument is returned for the last cell that was changed.
Reference Optional
If the reference argument is a range of cells, the CELL
function returns the information for only the upper left cell
of the range.
Info_type Values
General "G"
0 "F0"
#,##0 ",0"
0.00 "F2"
#,##0.00 ",2"
$#,##0_);($#,##0) "C0"
$#,##0_);[Red]($#,##0) "C0-"
$#,##0.00_);($#,##0.00) "C2"
$#,##0.00_);[Red]($#,##0.00) "C2-"
0% "P0"
0.00% "P2"
0.00E+00 "S2"
# ?/? or # ??/?? "G"
m/d/yy or m/d/yy h:mm or mm/dd/yy "D4"
d-mmm-yy or dd-mmm-yy "D1"
d-mmm or dd-mmm "D2"
mmm-yy "D3"
mm/dd "D5"
h:mm AM/PM "D7"
h:mm:ss AM/PM "D6"
h:mm "D9"
h:mm:ss "D8"
Notes
If info_type is not one of the recognized types as given above, CELL Function returns
#VALUE! Error.
394
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
395
202. ERROR.TYPE Function Advanced Excel Functions
Description
The ERROR.TYPE function returns a number corresponding to one of the error values in
Microsoft Excel or returns the #N/A error if no error exists. You can use ERROR.TYPE in
an IF function to test for an error value and return a text string, such as a message,
instead of the error value.
Syntax
ERROR.TYPE (error_val)
Arguments
Required
Argument Description
/Optional
The error value whose identifying number you want to find.
Although error_val can be the actual error value, it will
usually be a reference to a cell containing a formula that
Error_val you want to test. Required
The Error Values Table given below shows you what
numbers this Function returns for the different error
values.
Error Values
Error_val What ERROR.TYPE returns
#NULL! 1
#DIV/0! 2
#VALUE! 3
#REF! 4
#NAME? 5
#NUM! 6
#N/A 7
#GETTING_DATA 8
Anything else #N/A
Notes
The following table shows what each of these different error messages mean-
396
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
397
203. INFO Function Advanced Excel Functions
Description
The INFO function returns information about the current operating environment.
Syntax
INFO (type_text)
Arguments
Required
Argument Description
/Optional
Text that specifies the type of Information that is to be
returned.
Type_text Required
The values for Type_text and the corresponding return
Information is given in the table below.
Type_text Values
Type_text Information Returned
"directory" Path of the current directory or folder.
"numfile" Number of active worksheets in the open Workbooks.
Returns the absolute cell reference of the top and leftmost cell visible in
the window, based on the current scrolling position, as text prepended
with "$A:". This value is intended for Lotus 1-2-3 release 3.x compatibility.
"origin" The actual value returned depends on the current Reference Style setting.
For example, with D9, the return value will be-
With A1 Reference Style: "$A:$D$9".
With R1C1 Reference Style: "$A:R9C4"
"osversion" Current operating system version, as text.
"recalc" Current recalculation mode; returns "Automatic" or "Manual".
"release" Version of Microsoft Excel, as text.
Name of the operating environment:
"system"
E.g. Windows = "pcdos"
Notes
If the type_text value is "memavail", "memused", or "totmem", INFO returns a
#N/A error value.
If the type_text value is any other invalid value, INFO returns a #VALUE! Error
value.
398
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
399
204. ISBLANK Function Advanced Excel Functions
Description
The ISBLANK function returns the logical value TRUE if the specified cell is blank (empty).
Otherwise returns FALSE.
Syntax
ISBLANK (value)
Arguments
Argument Description Required
/Optional
value A reference to a cell. Required
Notes
You can use this function to test the contents of a cell before performing a calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
400
205. ISERR Function Advanced Excel Functions
Description
The ISERR function returns the logical value TRUE if the value refers to an Excel
Error, except the #N/A error. Otherwise returns FALSE.
Syntax
ISERR (value)
Arguments
Argument Description Required
/Optional
value An error Required
Notes
This function is useful in formulas for testing the outcome of a calculation. When
combined with the IF function, this function provides a method for locating errors
in formulas
Both ISERR and ISERROR Functions test a value and return True or False
depending on whether the value is an error or not. The only difference is-
o The ISERROR function returns True if value is any error
o The ISERR function returns True if value is any error except the #N/A error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
401
206. ISERROR Function Advanced Excel Functions
Description
The ISERROR function returns the logical value TRUE if the value refers to an Excel Error.
Otherwise returns FALSE.
Syntax
ISERROR (value)
Arguments
Argument Description Required
/Optional
value An error Required
Notes
This function is useful in formulas for testing the outcome of a calculation. When
combined with the IF Function, this Function provides a method for locating errors
in formulas
Both ISERR and ISERROR functions test a value and return True or False depending
on whether the value is an error or not. The only difference is-
o The ISERROR function returns True if value is any error.
o The ISERR function returns True if value is any error except the #N/A error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
402
207. ISEVEN Function Advanced Excel Functions
Description
The ISEVEN function returns TRUE if number is even, or FALSE if number is odd.
Syntax
ISEVEN (number)
Arguments
Argument Description Required
/Optional
Number The value to test. Required
If number is not an integer, it is truncated.
Notes
If number is nonnumeric, ISEVEN returns the #VALUE! error value.
You can use this function to test the contents of a cell before performing a
calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
403
208. ISFORMULA Function Advanced Excel Functions
Description
The ISFORMULA function returns the logical value TRUE if the reference is to a cell that
contains a formula. Otherwise returns FALSE.
Syntax
ISFORMULA (reference)
Arguments
Argument Description Required
/Optional
reference Reference can be a cell reference, a formula, or a Required
name that refers to a cell.
Notes
If reference is not a valid data type, such as a defined name that is not a reference,
ISFORMULA returns the #VALUE! error value.
You can use this Function to test the contents of a cell before performing a
calculation..
Applicability
Excel 2013, Excel 2016
Example
404
209. ISLOGICAL Function Advanced Excel Functions
Description
The ISLOGICAL function returns the logical value TRUE if the specified value or expression
evaluates to a logical value, i.e. True or False. Otherwise returns FALSE.
Syntax
ISLOGICAL (value)
Arguments
Argument Description Required
/Optional
Notes
You can use this function to test the contents of a cell before performing a calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
405
210. ISNA Function Advanced Excel Functions
Description
The ISNA function returns the logical value TRUE if the specified value is Excel #N/A error
value or the expression returns the Excel #N/A error. Otherwise returns FALSE. Excel
#N/A error occurs when a value is not available to your formula.
Syntax
ISNA (value)
Arguments
Argument Description Required
/Optional
value Value or expression. Required
Notes
You can use this function to test the contents of a cell before performing a calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
406
211. ISNONTEXT Function Advanced Excel Functions
Description
The ISNONTEXT function returns the logical value TRUE if the specified value refers to any
item that is not text. Otherwise returns FALSE. The function returns TRUE if the value
refers to a blank cell.
Syntax
ISNONTEXT (value)
Arguments
Argument Description Required
/Optional
value Value or expression or a reference to a cell. Required
Notes
You can use this function to test the contents of a cell before performing a calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
407
212. ISNUMBER Function Advanced Excel Functions
Description
The ISNUMBER function returns the logical value TRUE if the specified value is a number.
Otherwise returns FALSE.
Syntax
ISNUMBER (value)
Arguments
Argument Description Required /Optional
value Refers to a number. Required
Notes
You can use this function to test the contents of a cell before performing a
calculation.
In ISNUMBER, any numeric values that are enclosed in double quotation marks are
treated as text and are not converted. For example, ISNUMBER ("19") returns
FALSE as "19" is not converted from a text value to a number value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
408
213. ISODD Function Advanced Excel Functions
Description
The ISODD function returns TRUE if number is odd, or FALSE if number is even.
Syntax
ISODD (number)
Arguments
Argument Description Required /Optional
Notes
You can use this function to test the contents of a cell before performing a
calculation.
If the specified number argument is not a numeric value, ISODD function returns
#VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
409
214. ISREF Function Advanced Excel Functions
Description
The ISREF function returns the logical value TRUE if the specified value is a reference.
Otherwise returns FALSE.
Syntax
ISREF (value)
Arguments
Argument Description Required /Optional
value A reference to a cell. Required
Notes
You can use this function to test the contents of a cell before performing any action.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
410
215. ISTEXT Function Advanced Excel Functions
Description
The ISTEXT function returns the logical value TRUE if the specified value is text. Otherwise
returns FALSE.
Syntax
ISTEXT (value)
Arguments
Argument Description Required /Optional
value Refers to Text. Required
Notes
You can use this function to test the contents of a cell before performing a calculation.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
411
216. N Function Advanced Excel Functions
Description
The N function returns a value converted to a number.
Syntax
N (value)
Arguments
Argument Description Required
/Optional
Value The value or reference to a value that you want Required
converted.
N converts values listed in the table below.
Notes
You need not use the N function in a formula to convert values to numbers since
Excel automatically converts values as necessary. This function is provided for
compatibility with other spreadsheet programs.
Excel stores dates as sequential serial numbers so they can be used in calculations.
By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial
number 39448 because it is 39,448 days after January 1, 1900.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
412
Advanced Excel Functions
Example
413
217. NA Function Advanced Excel Functions
Description
The NA function returns the error value #N/A. #N/A is the error value that means "no
value is available." Use NA to mark empty cells. You can also get the same result by simply
typing #N/A directly into a Worksheet cell.
By entering NA () or #N/A in cells where you are missing information, you can avoid the
problem of unintentionally including empty cells in your calculations. (When a formula
refers to a cell containing #N/A, the formula returns the #N/A error value.)
Syntax
NA ( )
Arguments
The NA function syntax has no arguments.
Notes
You must include the empty parentheses with the function name. Otherwise,
Microsoft Excel will not recognize it as a function.
You can also type the value #N/A directly into a cell. The NA function is provided
for compatibility with other spreadsheet programs.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
414
218. SHEET Function Advanced Excel Functions
Description
The SHEET function returns the sheet number of the reference sheet.
Syntax
SHEET (value)
Arguments
Required
Argument Description
/Optional
Value is the name of a sheet or a reference for which
you want the sheet number.
Value Optional
If value is omitted, SHEET returns the number of the
sheet that contains the function.
Notes
SHEET includes all worksheets (visible, hidden or very hidden), in addition to all
other sheet types (macro, chart, or dialog sheets).
If the value argument is a non-valid reference, SHEET returns the #REF! error
value.
For example, if the value argument had previously referenced cell Sheet2!A1, and
Sheet2 was deleted later or the cell Al within Sheet2 was deleted later, this would
no longer be a valid reference.
If the value argument is a sheet name that is not valid, SHEET returns the #NA
error value.
Applicability
Excel 2013, Excel 2016
415
Advanced Excel Functions
Example
416
219. SHEETS Function Advanced Excel Functions
Description
The SHEETS function returns the number of sheets in a reference.
Syntax
SHEETS (reference)
Arguments
Required
Argument Description
/Optional
Reference is a reference for which you want to know the
number of sheets it contains.
Reference Optional
If Reference is omitted, SHEETS returns the number of
sheets in the workbook that contains the function.
Notes
SHEETS includes all worksheets (visible, hidden, or very hidden) in addition to all
other sheet types (macro, chart, or dialog sheets).
If reference is not a valid value, SHEETS returns the #REF! error value.
Applicability
Excel 2013, Excel 2016
Example
417
220. TYPE Function Advanced Excel Functions
Description
The TYPE function receives a value and returns an integer that represents the specified
value's data type. Use TYPE when the behavior of another Function depends on the type
of value in a particular cell.
Syntax
TYPE (value)
Arguments
Required
Argument Description
/Optional
Value or a reference to a cell containing the value that you
want to know the type of.
Value Data type can be a number, text, logical value, etc. Required
Look at the Table below for the Integers that TYPE Function
returns and the corresponding Data types.
Notes
TYPE evaluates an empty cell as the value 0, and hence returns the integer 1, to
denote a Number.
TYPE is most useful when you are using Functions that can accept different types
of data. Use TYPE to find out what type of data is returned by a Function or Formula.
You cannot use TYPE to determine whether a cell contains a Formula. TYPE only
determines the type of the resulting, or displayed, value. If value is a cell reference
to a cell that contains a Formula, TYPE returns the type of the Formula's resulting
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
418
Advanced Excel Functions
Example
419
Advanced Excel Functions
Logical Functions
420
221. Logical Functions – Overview Advanced Excel Functions
Logical functions include the boolean operators and conditional tests, which will be an
essential part of many working spreadsheets.
Logical Functions
The following table lists all the Logical functions-
FALSE
2
Returns the logical value FALSE.
IF
3
Specifies a logical test to perform.
IFERROR
4
Returns a different result if the first argument evaluates to an error.
IFNA
5 Returns the value you specify if the expression resolves to #N/A, otherwise
returns the result of the expression.
IFS
6 Checks whether one or more conditions are met and returns a value that
corresponds to the first TRUE condition.
NOT
7
Reverses the logic of its argument.
OR
8
Returns TRUE if any argument is TRUE.
SWITCH
Evaluates an expression against a list of values and returns the result
9
corresponding to the first matching value. If there is no match, an optional
default value may be returned.
10 TRUE
Returns the logical value TRUE.
11 XOR
Returns a logical exclusive OR of all arguments.
421
222. AND Function Advanced Excel Functions
Description
The AND function returns TRUE if all its arguments evaluate to TRUE and returns FALSE if
one or more arguments evaluate to FALSE.
One common use of the AND Function is to expand the usefulness of other functions that
perform logical tests. For example, the IF Function performs a logical test and then returns
one value if the test evaluates to TRUE and another value if the test evaluates to FALSE.
By using the AND Function as the logical_test argument of the IF Function, you can test
many different conditions instead of just one.
Syntax
AND (logical1, [logical2] ...)
Arguments
Required
Argument Description
/Optional
The first condition that you want to test that can
logical1 Required
evaluate to either TRUE or FALSE.
Additional conditions that you want to test that can
logical2, ... evaluate to either TRUE or FALSE, up to a maximum Optional
of 255 conditions.
Notes
The arguments must evaluate to logical values, such as TRUE or FALSE, or the
arguments must be 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, the AND Function returns the
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
422
Advanced Excel Functions
Example
423
223. FALSE Function Advanced Excel Functions
Description
The FALSE function returns the logical value FALSE.
Syntax
FALSE ()
Arguments
The FALSE function has no arguments.
Notes
You can also type the word FALSE directly onto the worksheet or into the formula,
and Microsoft Excel interprets it as the logical value FALSE
The FALSE function is provided primarily for compatibility with other spreadsheet
programs
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
424
224. IF Function Advanced Excel Functions
Description
The IF function returns one value if a condition is TRUE and another value if it is FALSE.
Syntax
IF (logical_test, value_if_true, [value_if_false])
Arguments
Argument Description Required
/Optional
logical_test The condition you want to test. Required
value_if_true The value that you want returned if the result Required
of logical_test is TRUE.
value_if_false The value that you want returned if the result Optional
of logical_test is FALSE.
Notes
IF Function returns an error 0 (zero) in cell, if neither value_if_true nor
value_if_false are provided.
To see the right value returned, add argument text to the two arguments, or add
TRUE or FALSE to the argument.
If any of the arguments to the IF Function are arrays, every element of the array
is evaluated when the IF statement is carried out.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
425
Advanced Excel Functions
Example
426
225. IFERROR Function Advanced Excel Functions
Description
The IFERROR function returns a value you specify if a formula evaluates to an error.
Otherwise, returns the result of the formula. Use the IFERROR function to trap and handle
errors in a formula.
Syntax
IFERROR (value, value_if_error)
Arguments
Required
Argument Description
/Optional
value The argument that is checked for an error. Required
The value to return if the formula evaluates to an
error. The following error types are evaluated: #N/A,
value_if_error Required
#VALUE! , #REF!, #DIV/0!, #NUM!, #NAME?, or
#NULL!.
Notes
If Value or Value_if_error is an empty cell, IFERROR treats it as an empty string
value ("")
If Value is an array formula, IFERROR returns an array of results for each cell in
the range specified in value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
427
226. IFNA Function Advanced Excel Functions
Description
The IFNA function returns the value you specify if the formula returns the #N/A error
value. Otherwise, returns the result of the formula.
Syntax
IFNA (value, value_if_na)
Arguments
Argument Description Required
/Optional
value The argument that is checked for the #N/A error Required
value.
value_if_na The value to return if the formula evaluates to the Required
#N/A error value.
Notes
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.
Applicability
Excel 2013, Excel 2016
428
Advanced Excel Functions
Example
429
227. IFS Function Advanced Excel Functions
Description
The IFS function checks whether one or more conditions are met and returns a value that
corresponds to the first TRUE condition. This Function was added in Excel 2016.
Syntax
IFS (logical_test1, value_if_true1, [logical_test2, value_if_true2],
[logical_test3, value_if_true3]…)
Arguments
Required
Argument Description
/Optional
Condition that evaluates to TRUE or
logical_test1 Required
FALSE.
value_if_true1 Result to be returned if logical_test1
Required
evaluates to TRUE. Can be empty.
Condition that evaluates to TRUE or
logical_test2…logical_test127 Optional
FALSE.
Result to be returned if logical_testN
evaluates to TRUE. Each
value_if_true2…value_if_true127 Optional
value_if_trueN corresponds with a
condition logical_testN. Can be empty.
Notes
As functions are limited to 254 parameters, you can use up to 127 pairs of condition
and result arguments.
To specify a default result, enter a condition that will always be true for your final
logical_test argument, such as TRUE or 1=1. The corresponding value will return,
if none of the other conditions are met.
Applicability
Excel 2016
430
Advanced Excel Functions
Example
431
228. NOT Function Advanced Excel Functions
Description
The NOT function reverses the value of its argument. Use NOT when you want to make
sure a value is not equal to one particular value.
Syntax
NOT (logical)
Arguments
Argument Description Required /Optional
Notes
If logical is FALSE, NOT returns TRUE.
If logical is TRUE, NOT returns FALSE.
If the argument is not a logical or a numeric value, NOT function returns error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
432
229. OR Function Advanced Excel Functions
Description
The OR function returns a TRUE if any argument is TRUE and returns FALSE if all arguments
are FALSE.
Syntax
OR (logical1, [logical2], ...)
Arguments
Argument Description Required
/Optional
logical1 1 to 255 conditions you want to test that can be Required
either TRUE or FALSE.
logical2, … logical1 is required and subsequent logical values (up Optional
to 254) are optional.
Notes
The arguments must evaluate to logical values such as TRUE or FALSE, or in arrays
or references that contain logical values.
If any of the supplied logical_test arguments are text values, OR returns the
#VALUE! error value.
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.
If the logical_tests return numbers, instead of logical values, zero is treated as the
logical value FALSE and all non-zero numbers are treated as the logical value TRUE.
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
Common functions used with the OR function include the IF function, AND function,
and NOT function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
433
Advanced Excel Functions
Example
434
230. SWITCH Function Advanced Excel Functions
Description
The SWITCH function evaluates an expression against a list of values and returns the result
corresponding to the first matching value. If there is no match, an optional default value
may be returned. This function was added in Excel 2016.
Syntax
SWITCH (expression, value1, result1, [default or value2, result2],…[default or
value3, result3])
Arguments
Required
Argument Description
/Optional
435
Advanced Excel Functions
Notes
As functions are limited to 254 arguments, you can use up to 126 pairs of value
and result arguments.
Applicability
Excel 2016
Example
436
231. TRUE Function Advanced Excel Functions
Description
The TRUE function returns the logical value TRUE.
You can use this function when you want to return the value TRUE based on a condition.
Example =IF (A1=1, TRUE ()).
You can also enter the value TRUE directly into cells and formulas without using this
function. Example =IF(A1=1,TRUE)
If the condition is met, Excel returns TRUE in both examples. If the condition is not met,
Excel returns FALSE in both examples.
Syntax
TRUE ()
Arguments
The TRUE function syntax has no arguments.
Notes
The TRUE function is provided primarily for compatibility with other spreadsheet programs.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
437
232. XOR Function Advanced Excel Functions
Description
The XOR function returns a logical Exclusive OR of all arguments. The XOR Function returns
TRUE if an odd number of the supplied conditions evaluate to TRUE, and FALSE otherwise.
Syntax
XOR (logical1, [logical2],…)
Arguments
Argument Description Required
/Optional
logical1 logical1 is required and subsequent logical values are Required
optional.1 to 254 conditions you want to test that can
logical2, … be either TRUE or FALSE, and can be logical values, Optional
arrays, or references.
Notes
Exclusive OR
o The Exclusive OR logical operation returns True if one (and only one) of two
supplied conditions evaluate to True. It can be thought of as "either A or B,
but not both A and B".
o When there is just one condition or when there are more than two
conditions, the Exclusive OR operation evaluates to True if an odd number
of conditions evaluate to True.
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.
438
Advanced Excel Functions
#NAME? Error occurs if Excel does not recognize the function name. This is probably
because you have an earlier version of Excel, which does not support the Xor
function.
Applicability
Excel 2013, Excel 2016
Example
439
Advanced Excel Functions
440
233. Lookup & Reference Functions – Overview Advanced Excel Functions
Lookup & Reference functions help you to work with arrays of data, and are particularly
useful when you need to cross reference between different data sets. They perform tasks
such as providing information about a range, returning the location of a given address or
value, or looking up specific values.
1 ADDRESS
Returns a reference as text to a single cell in a worksheet
2 AREAS
Returns the number of areas in a reference
3 CHOOSE
Chooses a value from a list of values
4 COLUMN
Returns the column number of a reference
5 COLUMNS
Returns the number of columns in a reference
6 FORMULATEXT
Returns the formula at the given reference as text
7 GETPIVOTDATA
Returns data stored in a PivotTable
HLOOKUP
8 Searches for a value in the top row of a table and then returns a value in the
same column from a row you specify in the table
HYPERLINK
9 Creates a shortcut that opens a document on your hard drive, a server, or
the Internet
10 INDEX
Uses an index to choose a value from a reference or array
11 INDIRECT
Returns a reference indicated by a text value
12 LOOKUP
Returns a value either from a one-row or one-column range or from an array
13 MATCH
Returns the relative position of an item in an array
14 OFFSET
Returns a reference offset from a given reference
441
Advanced Excel Functions
15 ROW
Returns the row number of a reference
16 ROWS
Returns the number of rows in a reference
17 RTD
Returns real-time data from a program that supports COM automation
18 TRANSPOSE
Returns the transpose of an array
VLOOKUP
19 Searches for a value in the leftmost column of a table and then returns a
value in the same row from a column you specify in the table
442
234. ADDRESS Function Advanced Excel Functions
Description
You can use the ADDRESS function to obtain the address of a cell in a worksheet, given
specified row and column numbers.
For example, ADDRESS (2,3) returns $C$2. As another example, ADDRESS (77,300)
returns $KN$77. You can use other functions, such as the ROW and COLUMN functions, to
provide the row and column number arguments for the ADDRESS function.
Syntax
ADDRESS (row_num, column_num, [abs_num], [a1], [sheet_text])
Arguments
Required
Argument Description
/Optional
A numeric value that specifies the row number to use
row_num Required
in the cell reference.
A numeric value that specifies the column number to
column_num Required
use in the cell reference.
A numeric value that specifies the type of reference
abs_num to return. Optional
See the Table given below.
A logical value that specifies the A1 or R1C1
reference style.
In A1 style, columns are labeled alphabetically, and
rows are labeled numerically.
In R1C1 reference style, both columns and rows are
a1 Optional
labeled numerically.
If the A1 argument is TRUE or omitted, the ADDRESS
function returns an A1-style reference
If the A1 argument is FALSE, the ADDRESS function
returns an R1C1-style reference.
A text value that specifies the name of the worksheet
to be used as the external reference.
For example, the formula =ADDRESS
sheet_text (1,1,,,"Sheet2") returns Sheet2!$A$1. Optional
If the sheet_text argument is omitted, no sheet name
is used, and the address returned by the function
refers to a cell on the current sheet.
443
Advanced Excel Functions
1 or omitted Absolute
2 Absolute row; relative column
3 Relative row; absolute column
4 Relative
Notes
If the row_num is less than 1 or greater than the number of rows in the
spreadsheet, ADDRESS Functions returns #VALUE error.
If the column_num is less than 1 or greater than the number of columns in the
spreadsheet, ADDRESS Functions returns #VALUE error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
444
235. AREAS Function Advanced Excel Functions
Description
The AREAS function returns the number of areas in a reference. An area is a range of
contiguous cells or a single cell.
Syntax
AREAS (reference)
Arguments
Required
Argument Description
/Optional
A standard Excel reference to a cell or range of cells
OR
A named range
OR
reference A list of references, separated by commas and Required
surrounded by parentheses.
Then, the list is taken as a single argument, and
Microsoft Excel will not interpret the comma as a field
separator.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
445
Advanced Excel Functions
Example
In the example given below, two teams are selected (i.e. the Ranges are selected) and
given the Name Team1 and Team 2. The Areas function returns 2 as there are two ranges
in the selection.
446
236. CHOOSE Function Advanced Excel Functions
Description
The CHOOSE function returns a value from an array that corresponds to a supplied index
number (position). You can consider CHOOSE Function as a function that returns the nth
entry in a given list. CHOOSE function uses index_num to return a value from the list of
value arguments. You can use it to select one of up to 254 values based on the index
number.
For example, if value1 through value7 are the days of the week, the CHOOSE function
returns one of the days when a number between 1 and 7 is used as index_num.
Syntax
CHOOSE (index_num, value1, [value2], ...)
Arguments
Required
Argument Description
/Optional
Notes
If index_num is an array, every value is evaluated when CHOOSE Function is
evaluated.
The value arguments to CHOOSE Function can be range references as well as single
values.
If any of the Value arguments are text values that are not enclosed in quotes,
CHOOSE Function returns #NAME? error.
If any of the Value arguments are not valid cell references, the CHOOSE Function
returns #NAME? error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
448
237. COLUMN Function Advanced Excel Functions
Description
The COLUMN function returns the first Column number within a supplied reference. If no
reference is supplied, the Column Function returns the number of the current Column in
the current Excel Worksheet.
Syntax
COLUMN ([reference])
Arguments
Required
Argument Description
/Optional
The cell or range of cells for which you want to return
the first Column number.
If reference is omitted, the Column Function returns
reference Optional
the number of the current Column in the current
Excel Worksheet, in which the Function appears.
See Notes Below.
Notes
If the reference argument is omitted or refers to a range of cells, and if
the COLUMN function is entered as a horizontal array formula,
the COLUMN function returns the column numbers of reference as a horizontal
array.
To enter a formula as an array formula- Starting with the formula cell, select the
range that you want to contain the array formula. Press F2, and then press
CTRL+SHIFT+ENTER.
If the reference argument is a range of cells, and if the COLUMN function is not
entered as a horizontal array formula, the COLUMN function returns the number of
the leftmost Column (the first Column in the Range).
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
449
Advanced Excel Functions
Example
450
238. COLUMNS Function Advanced Excel Functions
Description
The COLUMNS function returns the number of Columns in an array or reference.
Syntax
COLUMNS (array)
Arguments
Argument Description Required
/Optional
array An array or array formula, or a reference to a range Required
of cells for which you want the number of Columns.
Notes
=COLUMNS (1:1) returns the number of Columns in Excel, i.e. 16384.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
451
239. FORMULATEXT Function Advanced Excel Functions
Description
The FORMULATEXT function returns a formula as a string.
Syntax
FORMULATEXT (reference)
Arguments
Argument Description Required
/Optional
reference A reference to a cell or range of cells. Required
Notes
The FORMULATEXT function returns what is displayed in the formula bar if you
select the referenced cell.
Invalid data types used as inputs will produce a #VALUE! error value.
If the Reference argument is not a valid cell reference, FORMULATEXT returns the
#VALUE! error value.
452
Advanced Excel Functions
Entering a reference to the cell in which you are entering the function as the
argument will not result in a circular reference warning. FORMULATEXT will
successfully return the formula as text in the cell.
Applicability
Excel 2013, Excel 2016
Example
453
240. GETPIVOTDATA Function Advanced Excel Functions
Description
The GETPIVOTDATA function returns data stored in a PivotTable report. You can use it to
retrieve summary data from a PivotTable report, provided the summary data is visible in
the report.
You can quickly enter a simple GETPIVOTDATA formula by typing = (the equal sign) in the
cell you want to return the value to and then clicking the cell in the PivotTable report that
contains the data you want to return. Excel then automatically inserts the GETPIVOTDATA
function into the active cell.
In order to have this quick entry of GETPIVOTDATA function, 'Use GetPivotData functions
for PivotTable references' Excel option should be enabled.
Step 1: Click File > Options. The Excel Options Window appears.
454
Advanced Excel Functions
Syntax
GETPIVOTDATA (data_field, pivot_table, [field1, item1, field2, item2] ...)
Arguments
Required
Argument Description
/Optional
The name, enclosed in quotation marks, for the data
field that contains the data that you want to
data_field Required
retrieve.
455
Advanced Excel Functions
Required
Argument Description
/Optional
For OLAP PivotTable reports, items can contain the
source name of the dimension and also the source
name of the item. A field and item pair for an OLAP
PivotTable might look like this:
"[Product]","[Product].[All
Products].[Foods].[Baked Goods]"
Notes
Calculated fields or items and custom calculations are included in GETPIVOTDATA
calculations.
If pivot_table is a range that includes two or more PivotTable reports, data will be
retrieved from whichever report was created most recently in the range.
If the field and item arguments describe a single cell, the value of that cell is
returned regardless of whether it is a string, number, error, etc.
For example, an item referring to the date March 5, 1999 could be entered as
36224 or DATE (1999,3,5).
If the arguments do not describe a visible field, or if they include a report filter in
which the filtered data is not displayed, GETPIVOTDATA returns the #REF! error
value.
Any of the fields specified by the data_field, [field] or [item] arguments are not
valid fields within the specified pivot table, GETPIVOTDATA returns the #REF! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
456
Advanced Excel Functions
Example
457
241. HLOOKUP Function Advanced Excel Functions
Description
The HLOOKUP function searches for a value in the top row of a table or an array of values,
and then returns a value in the same column from a row you specify in the table or array.
You can use HLOOKUP when your comparison values are located in a row across the top
of a table of data, and you want to look down a specified number of rows.
The H in HLOOKUP stands for "Horizontal". You can use VLOOKUP when your comparison
values are located in a column to the left of the data you want to find.
Syntax
HLOOKUP (lookup_value, table_array, row_index_num, [range_lookup])
Arguments
Required
Argument Description
/Optional
The value to be found in the first row of the table.
458
Advanced Excel Functions
Required
Argument Description
/Optional
found, the next largest value that is less than
lookup_value is returned.
Notes
table_array
If lookup_value is smaller than the smallest value in the first row of table_array,
HLOOKUP function 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 find an actual question mark or asterisk, type a tilde (~) before the
character.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
459
Advanced Excel Functions
Example
460
242. HYPERLINK Function Advanced Excel Functions
Description
The HYPERLINK function creates a shortcut or jump that opens a document stored on a
network server, an intranet, or the Internet.
When you click the cell that contains the HYPERLINK function, Microsoft Excel opens the
file that is stored at link_location.
Syntax
HYPERLINK (link_location, [friendly_name])
Arguments
Required
Argument Description
/Optional
The path and file name to the document to be opened.
Link_location can refer to a place in a document —
such as a specific cell or named range in an Excel
worksheet or workbook, or to a bookmark in a
Microsoft Word document.
Link_location The path can be to a file that is stored on a hard disk Required
drive.
The path can also be a universal naming convention
(UNC) path on a server (in Microsoft Excel for
Windows) or a Uniform Resource Locator (URL) path
on the Internet or an intranet.
The jump text or numeric value that is displayed in the
cell.
Friendly_name Friendly_name is displayed in blue and is underlined. Optional
If friendly_name is omitted, the cell displays the
link_location as the jump text.
Notes
Friendly_name can be a value, a text string, a name, or a cell that contains the
jump text or value.
If friendly_name returns an error value (for example, #VALUE!), the cell displays
the error instead of the jump text.
461
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
462
243. INDEX Function Advanced Excel Functions
Description
The INDEX function returns a value or the reference to a value from within a table or
range. You can use INDEX function in two ways-
Description
The function returns the value of an element in a table or an array, selected by the row
and column number indexes.
Syntax
INDEX (array, row_num, [column_num])
Arguments
Required
Argument Description
/Optional
A range of cells or an array constant.
If array contains only one row or column, the
corresponding Row_num or Column_num argument
is optional.
Array Required
If array has more than one row and more than one
column, and only Row_num or Column_num is used,
INDEX returns an array of the entire row or column
in array.
Selects the row in array from which to return a value.
Row_num Required
If Row_num is omitted, Column_num is required.
Selects the column in array from which to return a
Column_num value. Optional
If Column_num is omitted, Row_num is required.
Notes
If both the Row_num and Column_num arguments are used, INDEX returns the
value in the cell at the intersection of Row_num and Column_num.
If you set Row_num or Column_num to 0 (zero), INDEX returns the array of values
for the entire column or row, respectively. To use values returned as an array,
463
Advanced Excel Functions
enter the INDEX function as an array formula in a horizontal range of cells for a
row, and in a vertical range of cells for a column. To enter an array formula, press
CTRL+SHIFT+ENTER
Row_num and Column_num must point to a cell within array. Otherwise, INDEX
returns the #REF! error value.
Description
The function returns the reference of the cell at the intersection of a particular row and
column. If the reference is made up of nonadjacent selections, you can pick the selection
to look in.
Syntax
INDEX (reference, row_num, [column_num], [area_num])
Arguments
Required
Argument Description
/Optional
A reference to one or more cell ranges.
If you are entering a nonadjacent range for the
reference, enclose reference in parentheses.
If each area in reference contains only one row or
Reference Required
column, the Row_num or Column_num argument,
respectively, is optional. E.g. for a single row reference,
use:
INDEX(reference,,column_num)
The number of the row in reference from which to return
Row_num Required
a reference.
The number of the column in reference from which to
Column_num Optional
return a reference.
Selects a range in reference from which to return the
intersection of Row_num and Column_num. The first
Area_num area selected or entered is numbered 1, the second is Optional
2, and so on.
If Area_num is omitted, INDEX uses area 1.
Notes
After Reference and Area_num have selected a particular range, Row_num and
Column_num select a particular cell: Row_num 1 is the first row in the range,
Column_num 1 is the first column, and so on. The reference returned by INDEX is
the intersection of Row_num and Column_num.
If you set Row_num or Column_num to 0 (zero), INDEX returns the reference for
the entire column or row, respectively.
464
Advanced Excel Functions
The result of the INDEX function is a reference and is interpreted as such by other
formulas. Depending on the formula, the return value of INDEX may be used as a
reference or as a value. For example, the formula CELL("width",INDEX(A1:B2,1,2))
is equivalent to CELL("width",B1). The CELL function uses the return value of INDEX
as a cell reference. On the other hand, a formula such as 2*INDEX(A1:B2,1,2)
translates the return value of INDEX into the number in cell B1.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
465
244. INDIRECT Function Advanced Excel Functions
Description
The INDIRECT function returns the reference specified by a text string.
If you type the reference B1 in an Excel Formula, Excel understands that this refers to cell
B1. However, Excel does not understand the text string "B1" to be a reference. Hence, if
your cell reference takes the form of a text string, you will need to use the INDIRECT
function to convert this into an actual cell reference.
References are immediately evaluated to display their contents. Use INDIRECT when you
want to change the reference to a cell within a formula without changing the formula itself.
Syntax
INDIRECT (ref_text, [a1])
Arguments
Required
Argument Description
/Optional
A reference to a cell that contains an A1-style reference, an
R1C1-style reference, a name defined as a reference, or a
Ref_text Required
reference to a cell as a text string.
See Notes below.
A logical value that specifies what type of reference is
contained in the cell ref_text.
If a1 is TRUE or omitted, ref_text is interpreted as an A1-
A1 Optional
style reference.
If a1 is FALSE, ref_text is interpreted as an R1C1-style
reference.
Notes
If ref_text is not a valid cell reference, INDIRECT returns the #REF! error value
If ref_text refers to another workbook (an external reference), the other workbook
must be open. If the source workbook is not open, INDIRECT returns the #REF!
error value
If ref_text refers to a cell range outside the row limit of 1,048,576 or the column
limit of 16,384 (XFD), INDIRECT returns a #REF! error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
466
Advanced Excel Functions
Example
467
245. LOOKUP Function Advanced Excel Functions
Description
Use LOOKUP function when you need to look in a single row or column and find a value
from the same position in a second row or column. Use the LOOKUP Function to search
one row or one column.
Use VLOOKUP Function to search one row or column, or to search multiple rows and
columns (like a table). It is a much improved version of LOOKUP.
Vector form: Use this form of LOOKUP to search one row or one column for a value. Use
the vector form when you want to specify the range that contains the values that you want
to match.
Array form: Microsoft strongly recommends using VLOOKUP or HLOOKUP instead of the
array form. The array form is provided for compatibility with other spreadsheet programs,
but its functionality is limited.
An array is a collection of values in rows and columns (like a table) that you want to
search.
Vector form
The vector form of LOOKUP looks in a one-row or one-column range (known as a vector)
for a value and returns a value from the same position in a second one-row or one-column
range.
Syntax
LOOKUP (lookup_value, lookup_vector, [result_vector])
Arguments
Required
Argument Description
/Optional
A value that LOOKUP searches for in the lookup_vector.
lookup_value Lookup_value can be a number, text, a logical value, Required
or a name or reference that refers to a value.
A range that contains only one row or one column.
The values in lookup_vector can be text, numbers, or
logical values.
lookup_vector The values in lookup_vector must be placed in Required
ascending order: ..., -2, -1, 0, 1, 2... A-Z, FALSE, TRUE.
Otherwise, LOOKUP might not return the correct value.
Uppercase and lowercase text are equivalent.
468
Advanced Excel Functions
Notes
If the LOOKUP Function cannot find the lookup_value, the Function matches the
largest value in lookup_vector that is less than or equal to lookup_value.
If the lookup_vector is not in ascending order, LOOKUP returns the #N/A error
value.
If the LOOKUP Function is attempting to reference cells that do not exist, LOOKUP
returns the #REF! Error value. i.e. when
o Cells being deleted after the Lookup function has been entered.
o Relative references in the Lookup function, which become invalid when the
function is copied to other cells.
If the contents of the cells that are being compared have different data types,
LOOKUP might not return the correct value.
If there are unseen spaces at the start or end of either the lookup_value, or in the
cells of lookup_vector, LOOKUP might not return the correct value.
Array form
You can consider using VLOOKUP or HLOOKUP instead of the array form. The array form
of LOOKUP is provided for compatibility with other spreadsheet programs, but its
functionality is limited. The array form of LOOKUP looks in the first row or column of an
array for the specified value and returns a value from the same position in the last row or
column of the array.
Use this form of LOOKUP when the values that you want to match are in the first row or
column of the array.
Syntax
LOOKUP (lookup_value, array)
Arguments
Required
Argument Description
/Optional
A value that LOOKUP searches for in an array.
lookup_value Lookup_value can be a number, text, a logical value, Required
or a name or reference that refers to a value.
A range of cells that contains text, numbers, or logical
values that you want to compare with lookup_value.
array Required
The values in array must be placed in ascending
order: ..., -2, -1, 0, 1, 2... A-Z, FALSE, TRUE.
469
Advanced Excel Functions
Notes
If the LOOKUP Function cannot find the lookup_value, the Function matches the
largest value in the array that is less than or equal to lookup_value.
If lookup_value is smaller than the smallest value in the first row or column
(depending on the array dimensions), LOOKUP returns the #N/A error value.
If the LOOKUP Function is attempting to reference cells that do not exist, LOOKUP
returns the #REF! Error value. i.e. when
o Cells being deleted after the Lookup function has been entered.
o Relative references in the Lookup function, which become invalid when the
function is copied to other cells.
If the contents of the cells that are being compared have different data types,
LOOKUP might not return the correct value.
If there are unseen spaces at the start or end of either the lookup_value, or in the
cells of array, LOOKUP might not return the correct value.
The array form of LOOKUP is very similar to the HLOOKUP and VLOOKUP functions.
The difference is that HLOOKUP searches for the value of lookup_value in the first
row, VLOOKUP searches in the first column, and LOOKUP searches according to the
dimensions of array.
o If array covers an area that is wider than it is tall (more columns than rows),
LOOKUP searches for the value of lookup_value in the first row.
o With the HLOOKUP and VLOOKUP functions, you can index down or across,
but LOOKUP always selects the last value in the row or column.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
470
Advanced Excel Functions
Example
Vector Form
Array Form
471
246. MATCH Function Advanced Excel Functions
Description
The MATCH Function searches for a specified item in a range of cells, and then returns the
relative position of that item in the range.
Use MATCH instead of one of the LOOKUP Functions when you need the position of an item
in a range instead of the item itself. E.g. you can use the MATCH Function to provide a
value for the row_num argument of the INDEX Function.
Syntax
MATCH (lookup_value, lookup_array, [match_type])
Arguments
Required
Argument Description
/Optional
The value that you want to match in lookup_array.
E.g. when you look up someone's number in a
telephone book, you are using the person's name as the
lookup value, but the telephone number is the value you
lookup_value Required
want.
The lookup_value argument can be a value (number,
text, or logical value) or a cell reference to a number,
text, or logical value.
lookup_array The range of cells being searched. Required
The number -1, 0, or 1.
The match_type argument specifies how Excel matches
lookup_value with values in lookup_array.
match_type Optional
The default value for this argument is 1.
See below to know how the function finds values based
on the match_type argument.
472
Advanced Excel Functions
Notes
MATCH returns the position of the matched value within lookup_array, not the
value itself. E.g. MATCH ("b",{"a","b","c"},0) returns 2, which is the relative
position of "b" within the array {"a","b","c"}
MATCH does not distinguish between uppercase and lowercase letters when
matching text values.
If match_type is 0 and lookup_value is a text string, you can use the wildcard
characters - the question mark (?) and asterisk (*) - in the lookup_value argument
o A question mark matches any single character
o An asterisk matches any sequence of characters
o If you want to find an actual question mark or asterisk, type a tilde (~)
before the character
If the lookup_array not being ordered correctly, Match Function returns the wrong
result
Match Function returns a #N/A error value when the Function fails to find a match
for the lookup_value. This can happen
o If lookup_value and the data in the lookup_array have different data types.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
473
Advanced Excel Functions
Example
474
247. OFFSET Function Advanced Excel Functions
Description
The OFFSET function returns a reference to a range that is a specified number of rows and
columns from a cell or range of cells.
The reference that is returned can be a single cell or a range of cells. You can specify the
number of rows and the number of columns to be returned.
Syntax
OFFSET (reference, rows, cols, [height], [width])
Arguments
Required
Argument Description
/Optional
The reference from which you want to base the offset.
Reference Reference must refer to a cell or range of adjacent cells. Required
Otherwise, OFFSET returns the #VALUE! Error value.
The number of rows, up or down, that you want the upper-
left cell to refer to.
E.g. Using 5 as the rows argument specifies that the
upper-left cell in the reference is five rows below
Rows Required
reference.
Rows can be positive (which means below the starting
reference) or negative (which means above the starting
reference).
The number of columns, to the left or right that you want
the upper-left cell of the result to refer to.
E.g. Using 5 as the cols argument specifies that the upper-
left cell in the reference is five columns to the right of
Cols Required
reference.
Cols can be positive (which means to the right of the
starting reference) or negative (which means to the left of
the starting reference).
The height, in number of rows that you want the returned
Height reference to be. Optional
Height must be a positive number.
The width, in number of columns that you want the
Width returned reference to be. Optional
Width must be a positive number.
Notes
If height or width is omitted, it is assumed to be the same height or width as
reference
OFFSET does not actually move any cells or change the selection. It just returns a
reference.
475
Advanced Excel Functions
OFFSET can be used with any function expecting a reference argument. E.g. the
formula SUM(OFFSET(C2,1,2,3,1)) calculates the total value of a 3-row by 1-
column range that is 1 row below and 2 columns to the right of cell C2.
If rows and cols offset reference over the edge of the worksheet, OFFSET returns
the #REF! error value.
If any the arguments, rows, cols, height or width is non-numeric, OFFSET returns
the # VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
476
248. ROW Function Advanced Excel Functions
Description
The ROW function returns the row number of a reference.
Syntax
ROW ([reference])
Arguments
Required
Argument Description
/Optional
The cell or range of cells for which you want the row
number.
Reference If reference is omitted, it is assumed to be the reference Optional
of the cell in which the ROW function appears.
See Notes below.
Notes
If reference is a range of cells, and if ROW is entered as a vertical array, ROW
returns the row numbers of reference as a vertical array.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
477
249. ROWS Function Advanced Excel Functions
Description
The ROWS function returns the number of rows in a reference or array.
Syntax
ROWS (array)
Arguments
Required
Argument Description
/Optional
An array, an array formula, or a reference to a range of
Array Required
cells for which you want the number of rows.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
478
250. RTD Function Advanced Excel Functions
Description
The RTD function retrieves real-time data from a program that supports COM automation.
Syntax
RTD (ProgID, server, topic1, [topic2] ...)
Arguments
Required
Argument Description
/Optional
The name of the ProgID of a registered COM
automation add-in that has been installed on the
ProgID Required
local computer.
Enclose the name in quotation marks.
Name of the server where the add-in should be
run.
If there is no server, and the program is run
locally, leave the argument blank.
Otherwise, enter quotation marks ("") around the
server Required
server name.
When using RTD within Visual Basic for
Applications (VBA), double quotation marks or the
VBA NullString property are required for the
server, even if the server is running locally.
Topic1 is required, subsequent topics are optional. Topic1 Required
Topic1, topic2,
1 to 253 parameters that together represent a Other Topics
...
unique piece of real-time data. Optional
Notes
The RTD COM automation add-in must be created and registered on a local
computer. If you have not installed a real-time data server, the RTD function
returns the #NAME? error message in a cell when you try to use the RTD function.
When the server has been programmed to continually update results, unlike other
functions, RTD formulas will change when Microsoft Excel is in automatic calculation
mode.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
479
Advanced Excel Functions
Example
480
251. TRANSPOSE Function Advanced Excel Functions
Description
The TRANSPOSE function returns a vertical range of cells as a horizontal range, or vice
versa. The TRANSPOSE Function must be entered as an array formula in a range that has
the same number of rows and columns, respectively, as the source range has columns and
rows.
You can use TRANSPOSE to shift the vertical and horizontal orientation of an array or range
on a worksheet.
Syntax
TRANSPOSE (array)
Press CTRL+SHIFT+ENTER after you type the function, as this function returns an array
of values, it must be entered as an Array Formula.
Arguments
Required
Argument Description
/Optional
An array or range of cells on a worksheet that you want
to transpose.
The transpose of an array is created by using the first
array Required
row of the array as the first column of the new array, the
second row of the array as the second column of the new
array, and so on.
Notes
As the result is an Array, you need to input this function as an Array formula-
481
Advanced Excel Functions
Excel surrounds the formula with braces ({ }). You can observe this in the formula bar. It
does that automatically, and you cannot enter them yourself. If you do, the formula will
not work because Excel treats the braces as text, and it cannot calculate text. Hence,
make sure you press Ctrl+Shift+Enter.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
482
Advanced Excel Functions
Example
483
252. VLOOKUP Function Advanced Excel Functions
Description
Use VLOOKUP when you need to find things in a table or a range by row. Organize your
data so that the value you look up is to the left of the return value you want to find.
Syntax
VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
Arguments
Required
Argument Description
/Optional
The value you want to look up.
The value you want to look up must be in the first
lookup_value Required
column of the range of cells you specify in table_array.
Lookup_value can be a value or a reference to a cell.
The range of cells in which the VLOOKUP will search
for the lookup_value and the return value.
The first column in the cell range must contain the
table_array Required
lookup_value.
The cell range also needs to include the return value
you want to find.
The column number (starting with 1 for the left-most
col_index_num Required
column of table-array) that contains the return value.
A logical value that specifies whether you want
VLOOKUP to find an exact match or an approximate
match:
TRUE assumes the first column in the table is
range_lookup sorted either numerically or alphabetically, and will Optional
then search for the closest value. This is the default
method if you do not specify one.
FALSE searches for the exact value in the first
column.
Notes
Use absolute references for range_lookup as it allows you to fill-down a formula so
that it always looks at the same exact lookup range.
When searching number or date values, ensure that the data in the first column of
table_array is not stored as text values. Otherwise, VLOOKUP might return an
incorrect or unexpected value.
If range_lookup is FALSE and lookup_value is text, you can use the wildcard
characters—the question mark (?) and the asterisk (*)—in lookup_value. A
question mark matches any single character. An asterisk matches any sequence of
484
Advanced Excel Functions
characters. If you want to find an actual question mark or asterisk, type a tilde (~)
in front of the character.
If range_lookup is TRUE or left out, the first column of the table_array needs to be
sorted alphabetically or numerically. If the first column is not sorted, the return
value can be wrong.
Either sort the first column of the table_array, or use FALSE for an exact match.
When searching text values in the first column, make sure the data in the first
column does not have leading spaces, trailing spaces, inconsistent use of straight
( ' or " ) and curly ( ‘ or “) quotation marks, or nonprinting characters. In these
cases, VLOOKUP might return an unexpected value
If range_lookup is TRUE, then if the value in the lookup_value is smaller than the
smallest value in the first column of the table_array, you will get the #N/A error
value
If range_lookup is FALSE and the exact number isn't found, you will get the #N/A
error value
If the table_array is less than 1, you will get the #VALUE! error value
If the formula is missing quotes, you will get the #NAME? error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
485
Advanced Excel Functions
486
253. Math & Trigonometric Functions – Overview Advanced Excel Functions
The Excel Math & Trig functions perform many of the common mathematical calculations,
including basic arithmetic, conditional sums & products, exponents & logarithms, and the
trigonometric ratios.
1 ABS
Returns the absolute value of a number
2 ACOS
Returns the arccosine of a number
3 ACOSH
Returns the inverse hyperbolic cosine of a number
4 ACOT
Returns the arccotangent of a number
5 ACOTH
Returns the hyperbolic arccotangent of a number
6 AGGREGATE
Returns an aggregate in a list or database
7 ARABIC
Converts a Roman number to Arabic, as a number
8 ASIN
Returns the arcsine of a number
9 ASINH
Returns the inverse hyperbolic sine of a number
10 ATAN
Returns the arctangent of a number
11 ATAN2
Returns the arctangent from x and y coordinates
12 ATANH
Returns the inverse hyperbolic tangent of a number
13 BASE
Converts a number into a text representation with the given radix (base)
487
Advanced Excel Functions
CEILING.MATH
14 Rounds a number up, to the nearest integer or to the nearest multiple of
significance
15 COMBIN
Returns the number of combinations for a given number of objects
COMBINA
16 Returns the number of combinations with repetitions for a given number of
items
17 COS
Returns the cosine of a number
18 COSH
Returns the hyperbolic cosine of a number
19 COT
Returns the cotangent of an angle
20 COTH
Returns the hyperbolic cotangent of a number
21 CSC
Returns the cosecant of an angle
22 CSCH
Returns the hyperbolic cosecant of an angle
DECIMAL
23 Converts a text representation of a number in a given base into a decimal
number
24 DEGREES
Converts radians to degrees
25 EVEN
Rounds a number up to the nearest even integer
26 EXP
Returns e raised to the power of a given number
27 FACT
Returns the factorial of a number
28 FACTDOUBLE
Returns the double factorial of a number
FLOOR.MATH
29 Rounds a number down, to the nearest integer or to the nearest multiple of
significance
30 GCD
Returns the greatest common divisor
31 INT
Rounds a number down to the nearest integer
488
Advanced Excel Functions
32 LCM
Returns the least common multiple
33 LN
Returns the natural logarithm of a number
34 LOG
Returns the logarithm of a number to a specified base
LOG10
35
Returns the base-10 logarithm of a number
36 MDETERM
Returns the matrix determinant of an array
37 MINVERSE
Returns the matrix inverse of an array
38 MMULT
Returns the matrix product of two arrays
39 MOD
Returns the remainder from division
40 MROUND
Returns a number rounded to the desired multiple
41 MULTINOMIAL
Returns the multinomial of a set of numbers
42 MUNIT
Returns the unit matrix or the specified dimension
43 ODD
Rounds a number up to the nearest odd integer
44 PI
Returns the value of pi
45 POWER
Returns the result of a number raised to a power
46 PRODUCT
Multiplies its arguments
47 QUOTIENT
Returns the integer portion of a division
48 RADIANS
Converts degrees to radians
49 RAND
Returns a random number between 0 and 1
50 RANDBETWEEN
Returns a random number between the numbers that you specify
51 ROMAN
Converts an Arabic numeral to Roman, as text
489
Advanced Excel Functions
52 ROUND
Rounds a number to a specified number of digits
53 ROUNDDOWN
Rounds a number down, toward 0
54 ROUNDUP
Rounds a number up, away from 0
55 SEC
Returns the secant of an angle
56 SECH
Returns the hyperbolic secant of an angle
57 SERIESSUM
Returns the sum of a power series based on the formula
SIGN
58
Returns the sign of a number
59 SIN
Returns the sine of the given angle
60 SINH
Returns the hyperbolic sine of a number
61 SQRT
Returns a positive square root
62 SQRTPI
Returns the square root of pi
63 SUBTOTAL
Returns a subtotal in a list or database
64 SUM
Adds its arguments
65 SUMIF
Adds the cells specified by a given criteria
66 SUMIFS
Adds the cells specified by a multiple criteria
67 SUMPRODUCT
Returns the sum of the products of corresponding array components
68 SUMSQ
Returns the sum of the squares of the arguments
SUMX2MY2
69 Returns the sum of the difference of squares of corresponding values in two
arrays
70 SUMX2PY2
Returns the sum of the sum of squares of corresponding values in two arrays
SUMXMY2
71 Returns the sum of squares of differences of corresponding values in two
arrays
490
Advanced Excel Functions
72 TAN
Returns the tangent of a number
73 TANH
Returns the hyperbolic tangent of a number
74 TRUNC
Truncates a number (you specify the precision of the truncation)
491
254. ABS Function Advanced Excel Functions
Description
The ABS function returns the remainder after number is divided by divisor. The result has
the same sign as divisor.
Syntax
MOD (number, divisor)
Arguments
Required
Argument Description
/Optional
Number The number for which you want to find the remainder. Required
Notes
If divisor is 0, MOD returns the #DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
492
255. ACOS Function Advanced Excel Functions
Description
The ACOS function returns the arccosine, or inverse cosine, of a number. The arccosine is
the angle whose cosine is number. The returned angle is given in radians between 0 and
ϖ.
Syntax
ACOS (number)
Arguments
Required
Argument Description
/Optional
The cosine of the angle you want and must be from -1 to
Number Required
1.
Notes
If you want the angle returned by the ACOS Function to be expressed in degrees,
you can convert it,
o using the Excel Degrees Function =DEGREES (radians)
o or, by multiplying it by 180/PI()
If the specified number is outside the range -1 to +1, ACOS returns #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
493
256. ACOSH Function Advanced Excel Functions
Description
The ACOSH function returns the inverse hyperbolic cosine of a number. The inverse
hyperbolic cosine is the value whose hyperbolic cosine is number. i.e.
Syntax
ACOSH (number)
Arguments
Argument Description Required
/Optional
Number Any real number equal to or greater than 1. Required
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
494
257. ACOT FUNCTION Advanced Excel Functions
Description
The ACOT function returns the principal value of the arccotangent, or inverse cotangent,
of a number as an angle, in radians, between 0 and π.
Syntax
ACOT (number)
Arguments
Required
Argument Description
/Optional
Number is the cotangent of the angle you want.
Number Required
This must be a real number.
Notes
To convert the result from radians to degrees,
o use the DEGREES function (=DEGREES (radians))
o or, multiply it by 180/PI()
If Number is a non-numeric value, ACOT returns the #VALUE! Error.
Applicability
Excel 2013, Excel 2016
Example
495
258. ACOTH Function Advanced Excel Functions
Description
The ACOTH function returns the inverse hyperbolic cotangent of a number.
Syntax
ACOTH (number)
Arguments
Required
Argument Description
/Optional
The absolute value of Number must be greater than 1.
Number i.e., Number must be must be less than -1 or greater than Required
+1.
Notes
The equation used to calculate the hyperbolic arccotangent is-
Applicability
Excel 2013, Excel 2016
Example
496
259. AGGREGATE Function Advanced Excel Functions
Description
Returns an aggregate in a list or database. The AGGREGATE Function can apply different
aggregate functions to a list or database with the option to ignore hidden rows and error
values.
Reference Format
Array Format
Reference Format
Syntax
AGGREGATE (function_num, options, ref1, [ref2] …)
Arguments
Required
Argument Description
/Optional
A number 1 to 19 that specifies which function to use.
Function_num Look at the Function_num Table given below to know Required
the Functions.
A number, between 0 and 7, that determines which
values to be ignored in the calculation of the Function.
options Required
Look at the options Table given below to know the
values.
The first numeric argument for functions that take
ref1 multiple numeric arguments for which you want the Required
aggregate value.
Numeric arguments 2 to 253 for which you want the
ref2 … Optional
aggregate value.
Array Format
Syntax
AGGREGATE (function_num, options, array, [k])
497
Advanced Excel Functions
Arguments
Required
Argument Description
/Optional
A number 1 to 19 that specifies which function to
use.
Function_num Required
Look at the Function_num Table given below to
know the Functions.
A number, between 0 and 7, that determines which
values to be ignored in the calculation of the
options Function. Required
Look at the options Table given below to know the
values.
An array, an array formula, or a reference to a
array range of cells for which you want the aggregate Required
value.
An integer that denotes the position in the array
for Functions that require this additional argument.
k Required for the 'Large', 'Small', 'Percentile' and Optional
'Quartile' Functions
Look at the argument k Table given below.
Function_num Table
Function_num Function
1 AVERAGE
2 COUNT
3 COUNTA
4 MAX
5 MIN
6 PRODUCT
7 STDEV.S
8 STDEV.P
9 SUM
10 VAR.S
11 VAR.P
12 MEDIAN
13 MODE.SNGL
14 LARGE
15 SMALL
16 PERCENTILE.INC
17 QUARTILE.INC
18 PERCENTILE.EXC
19 QUARTILE.EXC
Options Table
Option Behavior
0 or
Ignore nested SUBTOTAL and AGGREGATE Functions
omitted
1 Ignore hidden rows, nested SUBTOTAL and AGGREGATE Functions
2 Ignore error values, nested SUBTOTAL and AGGREGATE Functions
Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE
3
Functions
498
Advanced Excel Functions
4 Ignore nothing
5 Ignore hidden rows
6 Ignore error values
7 Ignore hidden rows and error values
Argument k Table
Function Meaning of k
Large Return the kth largest value
Small Return the kth smallest value
Percentile.Inc
Return the kth percentile
Percentile.Exc
Quartile.Inc
Return the kth quartile
Quartile.Exc
Notes
When you enter the AGGREGATE function into a cell on the worksheet, as soon as
you type the function_num argument, you will see a list of all Functions that you
can use as arguments.
If argument k is required but not provided, i.e. when the function_num argument
is between 14 and 19 (denoting the 'Large', 'Small', 'Percentile' or 'Quartile'
functions), AGGREGATE returns a #VALUE! Error.
If one or more of the references are 3-D references, AGGREGATE returns the
#VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
499
Advanced Excel Functions
Example
500
260. ARABIC Function Advanced Excel Functions
Description
The ARABIC function converts a Roman numeral to an Arabic numeral.
Syntax
ARABIC (text)
Arguments
Required
Argument Description
/Optional
A string enclosed in quotation marks, an empty string
Text Required
(""), or a reference to a cell containing text.
Notes
If an empty string ("") is used as an input value, 0 is returned..
The maximum length of the argument is 255 characters. Therefore, the largest
number that can be returned is 255,000.
The case of the text argument is ignored. For example, "mxmvii" evaluates to the
same result (1997) as "MXMVII."
If Text is not a valid value, ARABIC returns the #VALUE! error value.
Values that return a #VALUE! Error value include numbers, dates, and text that is
not a valid Roman numeral.
If Text is not encased in quotation marks, ARABIC returns the #NAME? error value.
If ARABIC Function is not recognized (in case of versions previous to Excel 2013),
the #NAME? error value is returned.
Applicability
Excel 2013, Excel 2016
501
Advanced Excel Functions
Example
502
261. ASIN Function Advanced Excel Functions
Description
The ASIN function returns the arcsine, or inverse sine of a given number, and returns an
angle in radians, between -π/2 and π/2.
Syntax
ASIN (number)
Arguments
Required
Argument Description
/Optional
The sine of the angle you want and must be from -1
Number Required
to 1.
Notes
If you want the angle returned by the ASIN Function to be expressed in degrees,
you can convert it,
o using the Excel Degrees Function(=DEGREES (radians))
o or, by multiplying it by 180/PI()
If the specified number is outside the range -1 to +1, ASIN returns #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
503
262. ASINH Function Advanced Excel Functions
Description
The ASINH function returns the inverse hyperbolic sine of a number. The inverse
hyperbolic sine is the value whose hyperbolic sine is number, i.e. ASINH (SINH (number))
equals number.
Syntax
ASINH (number)
Arguments
Argument Description Required
/Optional
Number Any real number. Required
Notes
If the specified number is not recognized as a numeric value, ASIN returns #VALUE! error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
504
263. ATAN Function Advanced Excel Functions
Description
The ATAN function returns the arctangent, or inverse tangent, of a number. The returned
angle is given in radians between -π/2 and +π/2. The arctangent is the angle whose
tangent is number.
Syntax
ATAN (number)
Arguments
Argument Description Required /Optional
Notes
If you want the angle returned by the ATAN Function to be expressed in degrees,
you can convert it,
o using the Excel Degrees Function (=DEGREES (radians))
o or, by multiplying it by 180/PI()
If the specified number is not recognized as a numeric value, ATAN returns
#VALUE! error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
505
264. ATAN2 Function Advanced Excel Functions
Description
The ATAN2 function returns the arctangent, or inverse tangent, of the specified x- and y-
coordinates, in radians, between -π/2 and +π/2.
Syntax
ATAN2 (x_num, y_num)
Arguments
Required
Argument Description
/Optional
X_num The x-coordinate of the point. Required
Notes
A positive result represents a counterclockwise angle from the x-axis. A negative
result represents a clockwise angle
If you want the angle returned by the ATAN2 Function to be expressed in degrees,
you can convert it,
o using the Excel Degrees Function(=DEGREES (radians))
o or, by multiplying it by 180/PI()
ATAN2 (a, b) equals ATAN (b/a), except that a can equal 0 in ATAN2.
If both x_num and y_num are 0, ATAN2 returns the #DIV/0! error value.
If either x_num or y_num is non-numeric, ATAN2 returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
506
Advanced Excel Functions
Example
507
265. ATANH Function Advanced Excel Functions
Description
The ATANH function returns the inverse hyperbolic tangent of a number. The inverse
hyperbolic tangent is the value whose hyperbolic tangent is number, so ATANH (TANH
(number)) equals number.
Syntax
ATANH (number)
Arguments
Required
Argument Description
/Optional
Number Any real number between (but not equal to) 1 and -1. Required
Notes
If the specified number is ≤ -1 or ≥ 1, ATANH returns #NUM! error.
If the specified number is non-numeric, ATANH returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
508
266. BASE Function Advanced Excel Functions
Description
The BASE function converts a number into a text representation with the given radix
(base).
Syntax
BASE (Number, Radix [Min_length])
Arguments
Required
Argument Description
/Optional
The number that you want to convert.
Number Must be an integer greater than or equal to 0 and less Required
than 2^53.
The base radix that you want to convert the number into.
Radix Must be an integer greater than or equal to 2 and less Required
than or equal to 36.
The minimum length of the returned string.
Min_length Optional
Must be an integer greater than or equal to 0.
Notes
Any non-integer number entered as an argument is truncated to an integer.
If the Min_length argument is included, leading zeros are added to the result if the
result would otherwise be shorter than the minimum length specified.
For example, BASE (16,2) returns 10000, but BASE(16,2,8) returns 00010000.
Applicability
Excel 2013, Excel 2016
509
Advanced Excel Functions
Example
510
267. CEILING.MATH Function Advanced Excel Functions
Description
The CEILING.MATH function rounds a number up to the nearest integer or to the nearest
multiple of significance. The Excel CEILING.MATH Function is one of the fifteen rounding
Functions in Excel.
Syntax
CEILING.MATH (number, [significance], [mode])
Arguments
Required
Argument Description
/Optional
Number must be less than 9.99E+307 and greater than -
Number Required
2.229E-308.
The multiple to which Number is to be rounded.
If omitted, the significance argument takes on the default
value 1 (i.e. round up to the nearest integer).
Significance Optional
The arithmetic sign of the significance argument is
ignored.
See Notes below.
For negative numbers, controls whether Number is
rounded toward or away from zero.
If mode = 0 (or is omitted), negative numbers are
Mode rounded towards zero. Optional
If mode = any other numeric value, negative numbers
are rounded away from zero.
See Notes below.
Notes
By default, significance is +1 for positive numbers and -1 for negative numbers
By default, positive numbers with decimal portions are rounded up to the nearest
integer. For example, 6.3 is rounded up to 7.
By specifying the Significance and Mode arguments, you can change the direction
of the rounding for negative numbers. For example, rounding -6.3 to a significance
of 1 with a mode of 1 rounds away from 0, to -7.
There are many combinations of Significance and Mode values that affect rounding
of negative numbers in different ways.
511
Advanced Excel Functions
The significance argument rounds the number up to the nearest integer that is a
multiple of the significance specified. The exception is where the number to be
rounded is an integer. For example, significance of 3 means the number is rounded
up to the next integer that is a multiple of 3.
Applicability
Excel 2013, Excel 2016
Example
512
268. COMBIN Function Advanced Excel Functions
Description
The COMBIN function returns the number of combinations for a given number of items.
Use COMBIN to determine the total possible number of groups for a given number of items.
Syntax
COMBIN (number, number_chosen)
Arguments
Required
Argument Description
/Optional
Number The number of items. Required
Number_chosen The number of items in each combination. Required
Notes
A combination is any set or subset of items, regardless of their internal order.
Combinations are distinct from permutations, for which the internal order is
significant
Where:
If either of the arguments is nonnumeric, COMBIN returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
513
Advanced Excel Functions
Example
514
269. COMBINA Function Advanced Excel Functions
Description
The COMBINA function returns the number of combinations (with repetitions) for a given
number of items.
Syntax
COMBINA (number, number_chosen)
Arguments
Required
Argument Description
/Optional
Must be greater than or equal to 0, and greater than
Number or equal to Number_chosen. Required
Non-integer values are truncated.
Must be greater than or equal to 0.
Number_chosen Required
Non-integer values are truncated.
Notes
The following equation is used-
If the value of either argument is outside of its constraints, COMBINA returns the
#NUM! error value.
Applicability
Excel 2013, Excel 2016
515
Advanced Excel Functions
Example
516
270. COS Function Advanced Excel Functions
Description
The COS function returns the cosine of the given angle.
Syntax
COS (number)
Arguments
Argument Description Required /Optional
The angle in radians for which you want the
Number Required
cosine.
Notes
If the angle is in degrees, either multiply the angle by PI()/180 or use the RADIANS
function to convert the angle to radians
=RADIANS (degrees)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
517
271. COSH Function Advanced Excel Functions
Description
The COSH function returns the hyperbolic cosine of a number.
Syntax
COSH (number)
Arguments
Required
Argument Description
/Optional
Any real number for which you want to find the hyperbolic
Number Required
cosine.
Notes
The formula for the hyperbolic cosine is:
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
518
272. COT Function Advanced Excel Functions
Description
The COT function return the cotangent of an angle specified in radians.
Syntax
COT (number)
Arguments
Required
Argument Description
/Optional
Number The angle in radians for which you want the cotangent. Required
Notes
If the angle is in degrees, convert it to radians by multiplying with by PI()/180 or
use the RADIANS Function
=RADIANS (degrees)
The absolute value of Number must be less than 2^27.
If Number is outside its constraints, COT returns the #NUM! error value.
If Number is a non-numeric value, COT returns the #VALUE! error value.
COT (0) returns the #DIV/0! error value.
Applicability
Excel 2013, Excel 2016
Example
519
273. COTH Function Advanced Excel Functions
Description
The COTH function returns the hyperbolic cotangent of a hyperbolic angle.
Syntax
COTH (number)
Arguments
Required
Argument Description
/Optional
The angle in radians for which you want the
Number Required
hyperbolic cotangent.
Notes
The following equation is used:
Applicability
Excel 2013, Excel 2016
Example
520
274. CSC Function Advanced Excel Functions
Description
The CSC function returns the cosecant of an angle specified in radians.
Syntax
CSC (number)
Arguments
Required
Argument Description
/Optional
The angle (in radians) that you want to calculate the
Number Required
cosecant of.
Notes
CSC (n) equals 1/SIN (n)
Applicability
Excel 2013, Excel 2016
Example
521
275. CSCH Function Advanced Excel Functions
Description
The CSCH function returns the hyperbolic cosecant of an angle specified in radians.
Syntax
CSCH (number)
Arguments
Required
Argument Description
/Optional
The angle (in radians) that you want to calculate the
Number Required
hyperbolic cosecant of.
Notes
The value of the hyperbolic cosecant is given by the equation-
=RADIANS (degrees)
Applicability
Excel 2013, Excel 2016
522
Advanced Excel Functions
Example
523
276. DECIMAL Function Advanced Excel Functions
Description
The DECIMAL function converts a text representation of a number in a given base into a
decimal number.
Syntax
DECIMAL (text, radix)
Arguments
Required
Argument Description
/Optional
The text representation of the number that you want to
convert
Text Required
The string length of Text must be less than or equal to 255
characters.
The base (radix) of the supplied number
Radix Required
Radix must be an integer
Notes
The Text argument can be any combination of alpha-numeric characters that are
valid for the radix, and is not case sensitive.
Excel supports a Text argument greater than or equal to 0 and less than 2^53. A
text argument that resolves to a number greater than 2^53 may result in a loss of
precision.
Radix must be greater than or equal to 2 (binary, or base 2) and less than or equal
to 36 (base 36)
o A radix greater than 10 use the numeric values 0-9 and the letters A-Z as
needed. For example, base 16 (hexadecimal) uses 0-9 and A-F, and base
36 uses 0-9 and A-Z.
If the specified radix is < 2 or > 36, DECIMAL returns the #NUM! error value
If the specified text argument is not recognized as a number in the specified base
(radix), DECIMAL returns the #NUM! error value
If the specified text argument is greater than 255 characters long, DECIMAL returns
the #VALUE! error value
If the specified text argument is non-numeric, DECIMAL returns the #VALUE! error
value
524
Advanced Excel Functions
Applicability
Excel 2013, Excel 2016
Example
525
277. DEGREES Function Advanced Excel Functions
Description
The DEGREES function converts radians into degrees.
Syntax
DEGREES (angle)
Arguments
Argument Description Required /Optional
Angle The angle in radians that you want to convert. Required
Notes
The conversion between Radians and Degrees is calculated by the relationship
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
526
278. EVEN Function Advanced Excel Functions
Description
The EVEN function returns number rounded up to the nearest even integer. You can use
this function for processing items that come in twos.
Syntax
EVEN (number)
Arguments
Required
Argument Description
/Optional
Number The value to round. Required
Notes
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 rounding occurs.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
527
279. EXP Function Advanced Excel Functions
Description
The EXP function returns e raised to the power of number. The constant e equals
2.71828182845904, the base of the natural logarithm.
Syntax
EXP (number)
Arguments
Required
Argument Description
/Optional
Number The exponent applied to the base e. Required
Notes
To calculate powers of other bases, use the exponentiation operator (^)
EXP is the inverse of LN, the natural logarithm of number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
528
280. FACT Function Advanced Excel Functions
Description
The FACT function returns the factorial of a number. The factorial of a number is equal to
1*2*3*...* number.
Syntax
FACT (number)
Arguments
Required
Argument Description
/Optional
The nonnegative number for which you want the factorial.
Number Required
If number is not an integer, it is truncated.
Notes
If the specified number is < 0, FACT returns #NUM! error.
If the specified number is non-numeric, FACT returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
529
281. FACTDOUBLE Function Advanced Excel Functions
Description
The FACTDOUBLE function returns the double factorial of a number.
Syntax
FACTDOUBLE (number)
Arguments
Required
Argument Description
/Optional
The value for which to return the double factorial. If
Number Required
number is not an integer, it is truncated.
Notes
The Double Factorial of a number, n, is
, if number is even
, if number is odd
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
530
282. FLOOR.MATH Function Advanced Excel Functions
Description
The FLOOR.MATH function rounds a number down to the nearest integer or to the nearest
multiple of significance.
Syntax
FLOOR.MATH (number, significance, mode)
Arguments
Required
Argument Description
/Optional
Number The number to be rounded down. Required
Significance The multiple to which you want to round. Optional
The direction (toward or away from 0) to round negative
Mode Optional
numbers.
Notes
By default, positive numbers with decimal portions are rounded down to the nearest
integer.
By default, negative numbers with decimal portions are rounded away from 0 to
the nearest integer.
By using 0 or a negative number as the Mode argument, you can change the
direction of the rounding for negative numbers.
The Significance argument rounds the number down to the nearest integer that is
a multiple of the significance specified. The exception is where the number to be
rounded is an integer.
Applicability
Excel 2013, Excel 2016
531
Advanced Excel Functions
Example
532
283. GCD Function Advanced Excel Functions
Description
The GCD function returns the greatest common divisor of two or more integers. The
greatest common divisor is the largest integer that divides both number1 and number2
without a remainder.
Syntax
GCD (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 values. Required
Notes
One divides any value evenly.
A prime number has only itself and one as even divisors.
If any argument is nonnumeric, GCD returns the #VALUE! error value.
If any argument is less than zero, GCD returns the #NUM! error value.
If a parameter to GCD is >=2^53, GCD returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
533
Advanced Excel Functions
Example
534
284. INT Function Advanced Excel Functions
Description
The INT function rounds a number down to the nearest integer.
Syntax
INT (number)
Arguments
Argument Description Required /Optional
The real number you want to round down to
Number Required
an integer.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
535
285. LCM Function Advanced Excel Functions
Description
The LCM function returns the least common multiple of integers. The least common
multiple is the smallest positive integer that is a multiple of all integer arguments number1,
number2, and so on. Use LCM to add fractions with different denominators.
Syntax
LCM (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 is
1 to 255 values for which you want the least Required.
Number1,
common multiple. Subsequent
number2...
If value is not an integer, it is truncated. numbers are
Optional.
Notes
If any argument is nonnumeric, LCM returns the #VALUE! error value.
If any argument is less than zero, LCM returns the #NUM! error value.
If LCM (a, b) >=2^53, LCM returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
536
286. LN Function Advanced Excel Functions
Description
The LN function returns the natural logarithm of a number. Natural logarithms are based
on the constant e (2.71828182845904).
Syntax
LN (number)
Arguments
Argument Description Required
/Optional
Number The positive real number for which you want the natural Required
logarithm.
Notes
The Natural Logarithm of a number, written as Ln(x) or Loge(x), is the logarithm to
the base e
If ex = y, then Ln(y) = x
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
537
Advanced Excel Functions
Example
538
287. LOG Function Advanced Excel Functions
Description
The LOG function returns the logarithm of a number to the base you specify.
Syntax
LOG (number, [base])
Arguments
Required
Argument Description
/Optional
The positive real number for which you want the
Number Required
logarithm.
The base of the logarithm. If base is omitted, it is
Base Optional
assumed to be 10.
Notes
The Logarithm of a number, to a given base, is the power to which the base must
be raised to give that number
If ax = b, then Lna(b) = x
If either the specified number or the specified base is negative or zero, LOG returns
#NUM! error.
If the specified number or the specified base is not a numeric value, LOG returns
#VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
539
Advanced Excel Functions
Example
540
288. LOG10 Function Advanced Excel Functions
Description
The LOG10 function returns the base-10 logarithm of a number.
Syntax
LOG10 (number)
Arguments
Required
Argument Description
/Optional
The positive real number for which you want the base-
Number Required
10 logarithm.
Notes
The base 10 Logarithm of a number, (also known as the Common Logarithm, and
written as Log10(x)), is the logarithm to the base 10
If the specified number is not a numeric value, LOG10 returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
541
289. MDETERM Function Advanced Excel Functions
Description
The MDETERM function returns the matrix determinant of an array.
Syntax
MDETERM (array)
Arguments
Required
Argument Description
/Optional
A numeric array with an equal number of rows and
Array Required
columns.
Notes
Array can be given as a cell range, for example, A1:C3; as an array constant, such
as {1,2,3;4,5,6;7,8,9}; or as a name to either of these
The matrix determinant is a number derived from the values in array. For a three-
row, three-column array, A1:C3, the determinant is defined as-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
542
Advanced Excel Functions
Example
543
290. MINVERSE Function Advanced Excel Functions
Description
The MINVERSE function returns the inverse matrix for the matrix stored in an array.
Syntax
MINVERSE (array)
Arguments
Argument Description Required
/Optional
Array A numeric array with an equal number of rows and Required
columns.
Notes
Array can be given as a cell range, such as A1:C3 or as an array constant, such as
{1,2,3;4,5,6;7,8,9} or as a name for either of these.
Inverse matrices, like determinants, are generally used for solving systems of
mathematical equations involving several variables. The product of a matrix and
its inverse is the identity matrix. i.e. the square array in which the diagonal values
equal 1, and all other values equal 0.
If a matrix is not invertible, MINVERSE returns the #NUM! Error value. The matrix
is singular and the determinant is 0.
If any cells in Array are empty or contain text, MINVERSE returns the #VALUE!
error value.
If array does not have an equal number of rows and columns, MINVERSE returns
the #VALUE! error value.
If you select additional cells that are not part of the resulting matrix, MINVERSE
returns the #N/A error value in these cells.
544
Advanced Excel Functions
If you do not highlight the full range of cells for the resulting matrix, Excel will just
show the part of the result that fits into the highlighted range. There will be no
error message to let you know that your highlighted range is not big enough.
If you do not enter the formula as an array formula, the cell in which you enter the
formula will just show you the first entry of the resulting matrix and there will be
no error message.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
545
291. MMULT Function Advanced Excel Functions
Description
The MMULT function returns the matrix product of two arrays array1 and array2. The result
is an array with the same number of rows as array1 and the same number of columns as
array2.
Syntax
MMULT (array1, array2)
Arguments
Required
Argument Description
/Optional
Array1
The arrays you want to multiply. Required
Array2
Notes
The number of columns in Array1 must be the same as the number of rows in
Array2, and both arrays must contain only numbers.
Array1 and Array2 can be given as cell ranges, array constants, or references.
If you do not highlight the full range of cells for the resulting matrix, Excel will just
show the part of the result that fits into the highlighted range. There will be no
error message to let you know that your highlighted range is not big enough.
546
Advanced Excel Functions
If you do not enter the formula as an array formula, the cell in which you enter the
formula will just show you the first entry of the resulting matrix and there will be
no error message.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
547
292. MOD Function Advanced Excel Functions
Description
The MOD function returns the remainder after number is divided by divisor. The result has
the same sign as divisor.
Syntax
MOD (number, divisor)
Arguments
Argument Description Required
/Optional
Number The number for which you want to find the remainder. Required
Notes
The MOD function can be expressed in terms of the INT function:
MOD (n, d) = n - d*INT (n/d)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
548
293. MROUND Function Advanced Excel Functions
Description
The MROUND function returns a number rounded to the desired multiple. MROUND
function is one of fifteen rounding functions in Excel.
Syntax
MROUND (number, multiple)
Arguments
Required
Argument Description
/Optional
Number The value to round. Required
Notes
MROUND rounds up, away from zero, if the remainder of dividing number by
multiple is greater than or equal to half the value of multiple.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
549
294. MULTINOMIAL Function Advanced Excel Functions
Description
The MULTINOMIAL function returns the ratio of the factorial of a sum of values to the
product of factorials.
Syntax
MULTINOMIAL (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 Required
1 to 255 values for which you want the multinomial.
number2, ... Optional
Notes
The multinomial is-
If any argument is less than zero, MULTINOMIAL returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
550
295. MUNIT Function Advanced Excel Functions
Description
The MUNIT function returns the unit matrix for the specified dimension.
Syntax
MUNIT (dimension)
Arguments
Required
Argument Description
/Optional
Dimension is an integer specifying the dimension of the
Dimension unit matrix that you want to return. Required
The dimension has to be greater than zero.
Notes
MUNIT returns an array. Hence, it should be entered as an array formula
MUNIT (N) =
If dimension is a value that is equal to or smaller than zero (0), MUNIT returns the
#VALUE! error value.
If you select additional cells that are not part of the resulting matrix, MUNIT returns
the #N/A error value in these cells.
If you do not highlight the full range of cells for the resulting matrix, Excel will just
show the part of the result that fits into the highlighted range. There will be no
error message to let you know that your highlighted range is not big enough.
If you do not enter the formula as an array formula, the cell in which you enter the
formula will just show you the first entry of the resulting matrix and there will be
no error message.
Applicability
Excel 2013, Excel 2016
551
Advanced Excel Functions
Example
552
296. ODD Function Advanced Excel Functions
Description
The ODD function returns number rounded up to the nearest odd integer. ODD Function
is one of fifteen rounding Functions in Excel.
Syntax
ODD (number)
Arguments
Argument Description Required /Optional
Notes
Regardless of the sign of number, a value is rounded away from zero to the next
odd number.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
553
Advanced Excel Functions
Example
554
297. PI Function Advanced Excel Functions
Description
The PI function returns the number 3.14159265358979, the mathematical constant pi,
accurate to 15 digits.
Syntax
PI ()
Arguments
The PI function syntax has no arguments.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
555
298. POWER Function Advanced Excel Functions
Description
The POWER function returns the result of a number raised to a power.
Syntax
POWER (number, power)
Arguments
Required
Argument Description
/Optional
The base number.
Number Required
It can be any real number.
Power The exponent to which the base number is raised. Required
Notes
The "^" operator can be used instead of POWER to indicate to what power the base
number is to be raised, such as in 5^2
The number and power arguments are numerical values that can be supplied to the
Function either directly or as values returned from other functions or as references
to cells containing numbers.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
556
299. PRODUCT Function Advanced Excel Functions
Description
The PRODUCT function multiplies all the numbers given as arguments and returns the
product.
For example, if cells A1 and A2 contain numbers, to multiply those two numbers together,
you can use the formula
=A1 * A2
The PRODUCT Function is useful when you need to multiply many cells together.
Example
This is same as
=A1 * A2 * A3 * C1 * C2 * C3.
Syntax
PRODUCT (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
number1 The first number or range that you want to multiply. Required
Additional numbers or ranges that you want to
number2, ... Optional
multiply, up to a maximum of 255 arguments.
Notes
Numbers and Dates are always counted as numeric values by the Product Function.
However, text and logical values are handled differently, depending on whether
they are values stored in the cells of the Worksheet, or they are supplied directly
to the function.
557
Advanced Excel Functions
The table given below shows which values are included in the Product Function
calculation, and which values are ignored or produce errors-
If any of the arguments that is supplied directly to the Product function cannot be
interpreted as numeric value, Product Function returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
558
300. QUOTIENT Function Advanced Excel Functions
Description
The QUOTIENT function returns the integer portion of a division. Use this function when
you want to discard the remainder of a division.
Syntax
QUOTIENT (numerator, denominator)
Arguments
Required
Argument Description
/Optional
Numerator The dividend. Required
Notes
If you want to divide numeric values and keep a remainder use the "/" operator as
there is no DIVIDE Function in Excel.
For example, to divide 5 by 2, you would type "=5/2" (without the quotes) into a
cell, which returns 2.5. The QUOTIENT Function for these same numbers QUOTIENT
(5, 2) returns 2.
If the specified denominator is zero, QUOTIENT returns the #DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
559
Advanced Excel Functions
Example
560
301. RADIANS Function Advanced Excel Functions
Description
The RADIANS function converts degrees to radians. The conversion between Degrees and
Radians is calculated by the relationship
Syntax
RADIANS (angle)
Arguments
Required
Argument Description
/Optional
Angle An angle in degrees that you want to convert. Required
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
561
302. RAND Function Advanced Excel Functions
Description
The RAND function returns an evenly distributed random real number greater than or equal
to 0 and less than 1. A new random real number is returned every time the Worksheet is
calculated.
Syntax
RAND ()
Arguments
The RAND Function has no arguments.
Notes
You can generate a random real number between a and b, with
=RAND ()*(b-a)+a
If you want to use RAND to generate a random number but do not want the
numbers to change every time the cell is calculated, enter =RAND() in the formula
bar, and then press F9 to change the formula to a random number
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
562
303. RANDBETWEEN Function Advanced Excel Functions
Description
The RANDBETWEEN function returns a random integer number between the numbers you
specify. A new random integer number is returned every time the Worksheet is calculated.
Syntax
RANDBETWEEN (bottom, top)
Arguments
Required
Argument Description
/Optional
Bottom The smallest integer RANDBETWEEN will return. Required
Top The largest integer RANDBETWEEN will return. Required
Notes
If the specified bottom argument is greater than the supplied top argument,
RANDBETWEEN returns #NUM! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
563
304. ROMAN Function Advanced Excel Functions
Description
The ROMAN function converts an Arabic numeral to roman, as text.
Syntax
ROMAN (number, [form])
Arguments
Required
Argument Description
/Optional
Number The Arabic numeral you want converted. Required
A number specifying the type of roman numeral you want.
The roman numeral style ranges from Classic to Simplified,
becoming more concise as the value of form increases.
Form Optional
See the Roman numeral Styles Table given below.
If omitted, it takes on the default value of 0 (denoting the
classic form is used).
Notes
If any of the arguments is specified as a decimal value, it is truncated to integer.
If form is specified, but is invalid, i.e. is not one of the values 0, 1, 2, 3 4, TRUE or
FALSE, ROMAN returns the #VALUE! Error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
564
Advanced Excel Functions
Example
565
305. ROUND Function Advanced Excel Functions
Description
The ROUND function rounds a number to a specified number of digits. ROUND is one of the
Excel Rounding Functions.
Syntax
ROUND (number, num_digits)
Arguments
Argument Description Required
/Optional
number The number that you want to round. Required
num_digits The number of digits to which you want to round the Required
number argument.
Notes
If num_digits is greater than 0 (zero), then number is rounded to the specified
number of decimal places.
If num_digits is less than 0, the number is rounded to the left of the decimal point.
To round a number to a specific multiple (for example, to round to the nearest 0.5),
use the MROUND Function
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
566
Advanced Excel Functions
Example
567
306. ROUNDDOWN Function Advanced Excel Functions
Description
The ROUNDOWN function rounds a number down, toward zero. ROUNDDOWN is one of
the Excel Rounding Functions.
Syntax
ROUNDDOWN (number, num_digits)
Arguments
Argument Description Required
/Optional
Number Any real number that you want rounded down. Required
Num_digits The number of digits to which you want to round number. Required
Notes
ROUNDDOWN behaves like ROUND, except that it always rounds a number down.
If num_digits is less than 0, then number is rounded down to the left of the decimal
point.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
568
307. ROUNDUP Function Advanced Excel Functions
Description
The ROUNDUP function rounds a number up, away from 0 (zero). ROUNDUP is one of the
Excel Rounding Functions.
Syntax
ROUNDUP (number, num_digits)
Arguments
Argument Description Required
/Optional
Number Any real number that you want rounded up. Required
Num_digits The number of digits to which you want to round number. Required
Notes
ROUNDUP behaves like ROUND, except that it always rounds a number up.
If num_digits is less than 0, then number is rounded up to the left of the decimal
point.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
569
Advanced Excel Functions
Example
570
308. SEC Function Advanced Excel Functions
Description
The SEC function returns the secant of an angle.
Syntax
SEC (number)
Arguments
Required
Argument Description
/Optional
Number is the angle in radians for which you want the
Number Required
secant.
Notes
The absolute value of number must be less than 2^27
If the angle is in degrees, either multiply the angle by PI()/180 or use the RADIANS
Function to covert the angle to radians
= RADIANS (degrees)
If number is outside of its constraints, SEC returns the #NUM! error value.
Applicability
Excel 2013, Excel 2016
Example
571
309. SECH Function Advanced Excel Functions
Description
The SECH function returns the hyperbolic secant of an angle. The hyperbolic secant is the
reciprocal of the hyperbolic cosine. Hence, the value of the hyperbolic secant is given by
the equation-
Syntax
SECH (number)
Arguments
Required
Argument Description
/Optional
Number is the angle in radians for which you want the
Number Required
hyperbolic secant.
Notes
The absolute value of number must be less than 2^27
If the angle is in degrees, either multiply the angle by PI()/180 or use the RADIANS
Function to covert the angle to radians
=RADIANS (degrees)
If number is outside of its constraints, SECH returns the #NUM! error value.
Applicability
Excel 2013, Excel 2016
572
Advanced Excel Functions
Example
573
310. SERIESSUM Function Advanced Excel Functions
Description
The SERIESSUM function returns the sum of a power series. Many functions can be
approximated by a power series expansion.
Syntax
SERIESSUM (x, n, m, coefficients)
Arguments
Required
Argument Description
/Optional
X The input value to the power series. Required
N The initial power to which you want to raise x. Required
The step by which to increase n for each term in the
M Required
series.
A set of coefficients by which each successive power of
Coefficients x is multiplied. The number of values in coefficients Required
determines the number of terms in the power series.
Notes
The sum of a power series is given by
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
574
Advanced Excel Functions
Example
575
311. SIGN Function Advanced Excel Functions
Description
The SIGN function determines the sign of a number. The function returns-
Syntax
SIGN (number)
Arguments
Argument Description Required
/Optional
Number Any real number. Required
Notes
If the specified number is not recognized as a numeric value, SIGN returns #VALUE! error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
576
312. SIN Function Advanced Excel Functions
Description
The SIN function returns the sine of the given angle.
Syntax
SIN (number)
Arguments
Argument Description Required
/Optional
Number The angle in radians for which you want the sine. Required
Notes
If number is in degrees, multiply it by PI()/180 or use the RADIANS Function to convert it
to radians
=RADIANS (degrees)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
577
313. SINH Function Advanced Excel Functions
Description
The SINH function returns the hyperbolic sine of a number.
Syntax
SINH (number)
Arguments
Argument Description Required
/Optional
Number Any real number. Required
Notes
The formula for the hyperbolic sine is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
578
314. SQRT Function Advanced Excel Functions
Description
The SQRT function returns a positive square root.
Syntax
SQRT (number)
Arguments
Argument Description Required
/Optional
Number The number for which you want the square root. Required
Notes
If specified number is negative, SQRT returns the #NUM! error value.
If specified number is non-numeric, SQRT returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
579
315. SQRTPI Function Advanced Excel Functions
Description
The SQRTPI function returns the square root of (number * pi).
Syntax
SQRTPI (number)
Arguments
Argument Description Required
/Optional
Number The number by which pi is multiplied. Required
Notes
If the specified number < 0, SQRTPI returns the #NUM! error value.
If the specified number is non-numeric, SQRTPI returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
580
316. SUBTOTAL Function Advanced Excel Functions
Description
The SUBTOTAL function returns a subtotal in a list or database. You can create a list with
subtotals by using the Subtotal command in the Outline group on the Data tab in Excel.
Once the subtotal list is created, you can modify it by editing the SUBTOTAL Function.
Syntax
SUBTOTAL (function_num, ref1, [ref2]...)
Arguments
Required
Argument Description
/Optional
The number 1-11 or 101-111 that specifies the
function to use for the subtotal.
1-11 includes manually-hidden rows
Function_num 101-111 excludes them Required
Filtered-out cells are always excluded.
Look at the Function_num Table below to know the
Functions.
The first named range or reference for which you want
Ref1 Required
the subtotal.
Named ranges or references 2 to 254 for which you
Ref2... Optional
want the subtotal.
Function_num Table
Function_num Function_num Function
(includes hidden values) (ignores hidden values)
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP
Notes
If there are other subtotals within ref1, ref2… (or nested subtotals), these nested
subtotals are ignored to avoid double counting.
581
Advanced Excel Functions
For the function_num constants from 1 to 11, the SUBTOTAL function includes the
values of rows hidden by the Hide Rows command under the Hide & Unhide
submenu of the Format command in the Cells group on the Home tab in Excel.
Use these constants when you want to subtotal hidden and nonhidden numbers in
a list.
For the function_Num constants from 101 to 111, the SUBTOTAL function ignores
values of rows hidden by the Hide Rows command. Use these constants when you
want to 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 you use.
If any of the references are 3-D references, SUBTOTAL returns the #VALUE! error
value
If the specified function_num is not one of the permitted values (an integer
between 1 & 11 or between 101 & 111), SUBTOTAL returns the #VALUE! error
value.
If the required calculation involves a division by zero (e.g. finding the average,
standard deviation or variance for a range of cells that do not contain any numeric
values), SUBTOTAL returns the #DIV/0!error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
582
317. SUM Function Advanced Excel Functions
Description
The SUM function adds values.
Syntax
SUM (number1, [number2]...)
Arguments
Required
Argument Description
/Optional
The first number you want to add. The number can
number1 Required
be a value, a cell reference, or a cell range.
number2, … You can specify up to 255 additional numbers. Optional
Notes
Numbers and Dates are always counted as numeric values by the SUM function.
If any of the number arguments that are supplied directly to the SUM function cannot be
interpreted as numeric values, SUM returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
583
Advanced Excel Functions
Example
584
318. SUMIF Function Advanced Excel Functions
Description
You can use the SUMIF Function to sum the values in a range that meet criteria that you
specify.
Syntax
SUMIF (range, criteria, [sum_range])
Arguments
Required
Argument Description
/Optional
The range of cells that you want evaluated by criteria.
Cells in each range must be numbers or names, arrays,
or references that contain numbers.
range Required
Blank and text values are ignored.
The selected range may contain Dates in standard Excel
format.
The criteria in the form of a number, expression, a cell
reference, text, or a Function that defines which cells will
be added.
Any text criteria or any criteria that includes logical or
criteria Required
mathematical symbols must be enclosed in double
quotation marks (").
If the criteria is numeric, double quotation marks are not
required.
The actual cells to add, if you want to add cells other than
those specified in the range argument.
sum_range If sum_range is omitted, Excel adds the cells that are Optional
specified in the range (the same cells to which the criteria
is applied).
Notes
You can use the wildcard characters—the question mark (?) and asterisk (*) - as
the criteria argument. A question mark matches any single character and an
asterisk matches any sequence of characters. If you want to find an actual question
mark or asterisk, type a tilde (~) preceding the character.
The SUMIF function returns incorrect results when you use it to match strings
longer than 255 characters or to the string #VALUE!
The sum_range argument does not have to be the same size and shape as the
range argument. The actual cells that are added are determined by using the upper
leftmost cell in the sum_range argument as the beginning cell, and then including
cells that correspond in size and shape to the range argument
585
Advanced Excel Functions
However, when the range and sum_range arguments in the SUMIF function do not
contain the same number of cells, worksheet recalculation may take longer than
expected.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
586
319. SUMIFS Function Advanced Excel Functions
Description
The SUMIFS Function adds all of its arguments that meet multiple criteria.
Syntax
SUMIFS (sum_range, criteria_range1, criteria1, [criteria_range2, criteria2] ...)
Arguments
Required
Argument Description
/Optional
Notes
If the length of any of the supplied criteria_range arrays is not equal to the length
of the sum_range array, SUMIFS returns #VALUE! Error.
You can use wildcard characters like the question mark (?) and asterisk (*) in
criteria1, 2 to find matches that are similar but not exact.
A question mark matches any single character. An asterisk matches any sequence
of characters. If you want to find an actual question mark or asterisk, type a tilde
(~) in front of the question mark.
The order of arguments differ between SUMIFS and SUMIF. In particular, the
sum_range argument is the first argument in SUMIFS, but it is the third argument
in SUMIF.
The Criteria_range argument must contain the same number of rows and columns
as the Sum_range argument.
587
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
588
320. SUMPRODUCT Function Advanced Excel Functions
Description
The SUMPRODUCT function multiplies corresponding components in the given arrays, and
returns the sum of those products.
Syntax
SUMPRODUCT (array1, [array2], [array3] ...)
Arguments
Argument Description Required
/Optional
Array1 The first array argument whose components you Required
want to multiply and then add.
Array2, array3... Array arguments 2 to 255 whose components you Optional
want to multiply and then add.
Notes
All of the supplied arrays must have the same dimensions.
If just one array is supplied, the function returns the sum of the values in that
array.
Non-numeric values in the supplied arrays are treated as the value zero.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
589
Advanced Excel Functions
Example
590
321. SUMSQ Function Advanced Excel Functions
Description
The SUMSQ function returns the sum of the squares of the arguments.
Syntax
SUMSQ (number1, [number2] ...)
Arguments
Argument Description Required
/Optional
Number1 1 to 255 arguments for which you want the sum of the Required
squares.
number2, ... Optional
You can also use a single array or a reference to an array
instead of arguments separated by commas.
Notes
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.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
591
Advanced Excel Functions
Example
592
322. SUMX2MY2 Function Advanced Excel Functions
Description
The SUMX2MY2 function returns the sum of the difference of squares of corresponding
values in two arrays.
Syntax
SUMX2MY2 (array_x, array_y)
Arguments
Argument Description Required /Optional
Notes
The arguments should be either numbers or names, arrays, or references that
contain numbers.
If array_x and array_y have a different number of values, SUMX2MY2 returns the
#N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
593
Advanced Excel Functions
Example
594
323. SUMX2PY2 Function Advanced Excel Functions
Description
The SUMX2PY2 function returns the sum of the sum of squares of corresponding values in
two arrays.
Syntax
SUMX2PY2 (array_x, array_y)
Arguments
Argument Description Required /Optional
Array_x The first array or range of values. Required
Array_y The second array or range of values. Required
Notes
The arguments should be either numbers or names, arrays, or references that
contain numbers.
If array_x and array_y have a different number of values, SUMX2PY2 returns the
#N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
595
Advanced Excel Functions
Example
596
324. SUMXMY2 Function Advanced Excel Functions
Description
The SUMXMY2 function returns the sum of squares of differences of corresponding values
in two arrays.
Syntax
SUMXMY2 (array_x, array_y)
Arguments
Argument Description Required
/Optional
Array_x The first array or range of values. Required
Array_y The second array or range of values. Required
Notes
The arguments should be either numbers or names, arrays, or references that
contain numbers.
If array_x and array_y have a different number of values, SUMXMY2 returns the
#N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
597
Advanced Excel Functions
Example
598
325. TAN Function Advanced Excel Functions
Description
The TAN function returns the tangent of the given angle.
Syntax
TAN (number)
Arguments
Required
Argument Description
/Optional
Number The angle in radians for which you want the tangent. Required
Notes
If Number is in degrees, multiply it by PI()/180 or use the RADIANS Function to convert it
to radians
= RADIANS (degrees)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
599
326. TANH Function Advanced Excel Functions
Description
The TANH function returns the hyperbolic tangent of a number.
Syntax
TANH (number)
Arguments
Argument Description Required
/Optional
Number Any real number. Required
Notes
The formula for the hyperbolic tangent is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
600
327. TRUNC Function Advanced Excel Functions
Description
The TRUNC function truncates a number to an integer by removing the fractional part of
the number.
Syntax
TRUNC (number, [num_digits])
Arguments
Required
Argument Description
/Optional
Number The number you want to truncate. Required
A number specifying the precision of the truncation.
Num_digits Optional
The default value for num_digits is 0 (zero).
Notes
TRUNC and INT are similar in that both return integers
o TRUNC removes the fractional part of the number
o INT rounds numbers down to the nearest integer based on the value of the
fractional part of the number
INT and TRUNC are different only when using negative numbers.
For example, TRUNC (-4.3) returns -4, but INT (-4.3) returns -5 because -5 is the
lower number
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
601
Advanced Excel Functions
Example
602
Advanced Excel Functions
Statistical Functions
603
328. Statistical Functions – Overview Advanced Excel Functions
Statistical functions perform calculations ranging from basic mean, median & mode to the
more complex statistical distribution and probability tests.
Statistical Functions
The following table lists all the Statistical functions-
604
Advanced Excel Functions
CHISQ.TEST
15
Returns the test for independence
CONFIDENCE.NORM
16
Returns the confidence interval for a population mean
CONFIDENCE.T
17 Returns the confidence interval for a population mean, using a Student's t
distribution
CORREL
18
Returns the correlation coefficient between two data sets
COUNT
19
Counts how many numbers are in the list of arguments
COUNTA
20
Counts how many values are in the list of arguments
COUNTBLANK
21
Counts the number of blank cells in the argument range
COUNTIF
22 Counts the number of cells that meet the criteria you specify in the
argument
COUNTIFS
23
Counts the number of cells that meet multiple criteria
COVARIANCE.P
24
Returns covariance, the average of the products of paired deviations
COVARIANCE.S
25 Returns the sample covariance, the average of the products deviations for
each data point pair in two data sets
DEVSQ
26
Returns the sum of squares of deviations
EXPON.DIST
27
Returns the exponential distribution
F.DIST
28
Returns the F probability distribution
F.DIST.RT
29
Returns the F probability distribution
F.INV
30
Returns the inverse of the F probability distribution
F.INV.RT
31
Returns the inverse of the F probability distribution
F.TEST
32
Returns the result of an F-test
FISHER
33
Returns the Fisher transformation
FISHERINV
34
Returns the inverse of the Fisher transformation
605
Advanced Excel Functions
FORECAST
35
Returns a value along a linear trend
FORECAST.ETS
36 Calculates a future value based on existing values using the Exponential
Triple Smoothing (ETS) algorithm
FORECAST.ETS.CONFINT
37 Returns a confidence interval for the forecast value at the specified target
date
FORECAST.ETS.SEASONALITY
38 Returns the length of the repetitive pattern detected for the specified time
series
FORECAST.ETS.STAT
39
Returns a statistical value as a result of time series forecasting
FORECAST.LINEAR
40
Calculates a future value by using existing values, using linear regression.
FREQUENCY
41
Returns a frequency distribution as a vertical array
GAMMA
42
Returns the Gamma function value
GAMMA.DIST
43
Returns the gamma distribution
GAMMA.INV
44
Returns the inverse of the gamma cumulative distribution
GAMMALN
45
Returns the natural logarithm of the gamma function, G(x)
GAMMALN.PRECISE
46
Returns the natural logarithm of the gamma function, G(x)
GAUSS
47
Returns 0.5 less than the standard normal cumulative distribution
GEOMEAN
48
Returns the geometric mean
GROWTH
49
Returns values along an exponential trend
HARMEAN
50
Returns the harmonic mean
HYPGEOM.DIST
51
Returns the hypergeometric distribution
INTERCEPT
52
Returns the intercept of the linear regression line
KURT
53
Returns the kurtosis of a data set
LARGE
54
Returns the kth largest value in a data set
606
Advanced Excel Functions
LINEST
55
Returns the parameters of a linear trend
LOGEST
56
Returns the parameters of an exponential trend
LOGNORM.DIST
57
Returns the cumulative lognormal distribution
LOGNORM.INV
58
Returns the inverse of the lognormal cumulative distribution
MAX
59 Returns the maximum value in a list of arguments, ignoring logical values
and text
MAXA
60 Returns the maximum value in a list of arguments, including logical values
and text
MAXIFS
61 Returns the maximum value among cells specified by a given set of conditions
or criteria.
MEDIAN
62
Returns the median of the given numbers
MIN
63 Returns the minimum value in a list of arguments, ignoring logical values
and text
MINA
64 Returns the minimum value in a list of arguments, including logical values
and text
MINIFS
65 Returns the minimum value among cells specified by a given set of conditions
or criteria.
MODE.MULT
66 Returns a vertical array of the most frequently occurring, or repetitive values
in an array or range of data
MODE.SNGL
67
Returns the most common value in a data set
NEGBINOM.DIST
68
Returns the negative binomial distribution
NORM.DIST
69
Returns the normal cumulative distribution
NORM.INV
70
Returns the inverse of the normal cumulative distribution
NORM.S.DIST
71
Returns the standard normal cumulative distribution
NORM.S.INV
72
Returns the inverse of the standard normal cumulative distribution
607
Advanced Excel Functions
PEARSON
73
Returns the Pearson product moment correlation coefficient
PERCENTILE.EXC
74 Returns the k-th percentile of values in a range, where k is in the range 0..1,
exclusive
PERCENTILE.INC
75
Returns the k-th percentile of values in a range
PERCENTRANK.EXC
76 Returns the rank of a value in a data set as a percentage (0..1, exclusive) of
the data set
PERCENTRANK.INC
77
Returns the percentage rank of a value in a data set
PERMUT
78
Returns the number of permutations for a given number of objects
PERMUTATIONA
79 Returns the number of permutations for a given number of objects (with
repetitions) that can be selected from the total objects
PHI
80
Returns the value of the density function for a standard normal distribution
POISSON.DIST
81
Returns the Poisson distribution
PROB
82
Returns the probability that values in a range are between two limits
QUARTILE.EXC
83 Returns the quartile of the data set, based on percentile values from 0..1,
exclusive
QUARTILE.INC
84
Returns the quartile of a data set
RANK.AVG
85
Returns the rank of a number in a list of numbers
RANK.EQ
86
Returns the rank of a number in a list of numbers
RSQ
87
Returns the square of the Pearson product moment correlation coefficient
SKEW
88
Returns the skewness of a distribution
SKEW.P
Returns the skewness of a distribution based on a population: a
89
characterization of the degree of asymmetry of a distribution around its
mean
SLOPE
90
Returns the slope of the linear regression line
SMALL
91
Returns the kth smallest value in a data set
608
Advanced Excel Functions
STANDARDIZE
92
Returns a normalized value
STDEV.P
93
Calculates standard deviation based on the entire population
STDEV.S
94
Estimates standard deviation based on a sample
STDEVA
95 Estimates standard deviation based on a sample, including text and logical
values
STDEVPA
96 Calculates standard deviation based on the entire population, including text
and logical values
STEYX
97 Returns the standard error of the predicted y-value for each x in the
regression
T.DIST
98
Returns the Percentage Points (probability) for the Student t-distribution
T.DIST.2T
99
Returns the Percentage Points (probability) for the Student t-distribution
T.DIST.RT
100
Returns the Student's t-distribution
T.INV
101 Returns the t-value of the Student's t-distribution as a function of the
probability and the degrees of freedom
T.INV.2T
102
Returns the inverse of the Student's t-distribution
T.TEST
103
Returns the probability associated with a Student's t-test
TREND
104
Returns values along a linear trend
TRIMMEAN
105
Returns the mean of the interior of a data set
VAR.P
106
Calculates variance based on the entire population
VAR.S
107
Estimates variance based on a sample
VARA
108
Estimates variance based on a sample, including logical values and text
VARPA
109 Calculates variance based on the entire population, including logical values
and text
WEIBULL.DIST
110
Returns the Weibull distribution
609
Advanced Excel Functions
Z.TEST
111
Returns the one-tailed probability-value of a z-test
BAHTTEXT
112 Converts a number to Thai text and adds a suffix of "Baht."
CHAR
Returns the character specified by a number. Use CHAR to translate code
113
page numbers you might get from files on other types of computers into
characters.
CLEAN
Removes all nonprintable characters from text. Use CLEAN on text imported
114
from other applications that contains characters that may not print with your
operating system.
CODE
115 Returns a numeric code for the first character in a text string. The returned
code corresponds to the ANSI character set for the Windows System.
CONCAT
116 Combines the text from multiple ranges and/or strings, but it doesn't provide
the delimiter or IgnoreEmpty arguments.
CONCATENATE
117
Joins two or more text strings into one string.
DOLLAR
Converts a number to text format and applies a currency symbol. The name
118
of the Function and the symbol that it applies depend upon your language
settings.
EXACT
119 Compares two text strings and returns TRUE if they are exactly the same,
FALSE otherwise.
FIND
FIND and FINDB locate one text string within a second text string, and
120
return the number of the starting position of the first text string from the
first character of the second text string.
FIXED
121 Rounds a number to the specified number of decimals, formats the number
in decimal format using a period and commas, and returns the result as text.
LEFT
122 Returns the first character or characters in a text string, based on the
number of characters you specify.
LEN
123 LEN returns the number of characters in a text string. LENB returns the
number of bytes used to represent the characters in a text string.
LOWER
124
Converts all uppercase letters in a text string to lowercase.
610
Advanced Excel Functions
PROPER
Capitalizes the first letter in a text string and any other letters in text that
127
follow any character other than a letter. Converts all other letters to
lowercase letters.
REPLACE
128 Replaces part of a text string, based on the number of characters you
specify, with a different text string.
REPT
129 Repeats text a given number of times. Use REPT to fill a cell with a number
of instances of a text string.
RIGHT
130 Returns the last character or characters in a text string, based on the
number of characters you specify.
SEARCH
The SEARCH and SEARCHB functions locate one text string within a second
131
text string, and return the number of the starting position of the first text
string from the first character of the second text string.
SUBSTITUTE
132
Substitutes new_text for old_text in a text string.
T Function
133
The T function returns the text referred to by value.
TEXT
Converts a numeric value to text and lets you specify the display formatting
134
by using special format strings.
TEXTJOIN
Combines the text from multiple ranges and/or strings, and includes a
135 delimiter you specify between each text value that will be combined. If the
delimiter is an empty text string, this function will effectively concatenate the
ranges.
TRIM
Removes all spaces from text except for single spaces between words. Use
136
TRIM on text that you have received from another application that may have
irregular spacing.
UNICHAR
137
Returns the Unicode character that is referenced by the given numeric value.
UNICODE
138 Returns the number (code point) corresponding to the first character of the
text.
611
Advanced Excel Functions
UPPER
139
Converts text to uppercase.
VALUE
140
Converts a text string that represents a number to a number.
ENCODEURL
141
Returns a URL-encoded string.
FILTERXML
142
Returns specific data from the XML content by using the specified XPath.
WEBSERVICE
143
Returns data from a web service on the Internet or Intranet.
612
329. AVEDEV Function Advanced Excel Functions
Description
The AVEDEV function returns the average of the absolute deviations of data points from
their mean. AVEDEV is a measure of the variability in a data set.
Syntax
AVEDEV (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 arguments for which you want the average Required
of the absolute deviations.
number2, ... You can also use a single array or a reference to an Optional
array instead of arguments separated by commas.
Notes
The equation for average deviation is-
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
Text representations of numbers that are supplied as a part of an array are not
interpreted as numeric values by the AVEDEV function.
If none of the values supplied to the Function are numeric, AVEDEV returns #DIV/0!
Error.
If any of the number arguments that are supplied directly to the Function are non-
numeric text strings, AVEDEV returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
613
Advanced Excel Functions
Example
614
330. AVERAGE Function Advanced Excel Functions
Description
The AVERAGE function returns the average (arithmetic mean) of the arguments.
Syntax
AVERAGE (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
The first number, cell reference, or range for which
Number1 Required
you want the average.
Additional numbers, cell references or ranges for
Number2, ... which you want the average, up to a maximum of Optional
255.
Notes
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 with the value zero are included.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If you want to calculate the average of only the values that meet certain criteria,
use the AVERAGEIF Function or the AVERAGEIFS function.
The AVERAGE function measures central tendency, which is the location of the
center of a group of numbers in a statistical distribution. The three most common
measures of central tendency are-
615
Advanced Excel Functions
o Median, which is the middle number of a group of numbers; that is, half
the numbers have values that are greater than the median, and half the
numbers have values that are less than the median. For example, the
median of 2, 3, 3, 5, 7, and 10 is 4
When you average cells, keep in mind the difference between empty cells and those
containing the value zero, especially if you have cleared the Show a zero in cells
that have a zero value check box in the Excel Options dialog box in Excel. When
this option is selected, empty cells are not counted, but zero values are
If the values to be averaged are all non-numeric, AVERAGE returns #DIV/0! Error
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
In the example given below, same range is selected for the AVERAGE Function. The result
depends on the contents of the cells in the range.
616
331. AVERAGEA Function Advanced Excel Functions
Description
The AVERAGEA function calculates the average (arithmetic mean) of the values in the list
of arguments.
Syntax
AVERAGEA (value1, [value2] ...)
Arguments
Argument Description Required
/Optional
Value1 1 to 255 cells, ranges of cells, or values for which you Required
value2, ... want the average. Optional
Notes
Arguments can be the following-
o numbers
o names, arrays, or references that contain numbers
o text representations of numbers
o logical values, such as TRUE and FALSE, in a reference
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
If you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the AVERAGE function.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If the arguments to the Function are all references to blank cells, AVERAGEA returns
#DIV/0! Error.
617
Advanced Excel Functions
If any of the arguments that is supplied directly to the Function are text values that
cannot be interpreted as numbers, AVERAGEA returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
618
332. AVERAGEIF Function Advanced Excel Functions
Description
The AVERAGEIF function returns the average (arithmetic mean) of all the cells in a range
that meet a given criteria.
Syntax
AVERAGEIF (range, criteria, [average_range])
Arguments
Required
Argument Description
/Optional
One or more cells to average, including numbers or
Range Required
names, arrays, or references that contain numbers.
The criteria in the form of a number, expression, cell
Criteria reference, or text that defines which cells are Required
averaged.
The actual set of cells to average. If omitted, range is
Average_range Optional
used.
Notes
Cells in range that contain TRUE or FALSE are ignored.
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria.
A question mark matches any single character; an asterisk matches any sequence
of 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 by using the top, left cell in average_range
as the beginning cell, and then including cells that correspond in size and shape to
range.
If range is a blank or text value, AVERAGEIF returns the #DIV0! error value.
If no cells in the range meet the criteria, AVERAGEIF returns the #DIV/0! error
value.
If values to be averaged are all non-numeric, AVERAGEIF returns the #DIV0! error
value.
619
Advanced Excel Functions
If the criteria argument is a text string with length greater than 255 characters,
AVERAGEIF returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
620
333. AVERAGEIFS Function Advanced Excel Functions
Description
The AVERAGEIFS function returns the average (arithmetic mean) of all cells that meet
multiple criteria.
Syntax
AVERAGEIFS (average_range, criteria_range1, criteria1, [criteria_range2,
criteria2] ...)
Arguments
Required
Argument Description
/Optional
One or more cells to average, including
Average_range numbers or names, arrays, or references that Required
contain numbers.
Criteria_range1 1 to 127 ranges in which to evaluate the Required
criteria_range2, … associated criteria. Optional
Criteria1 1 to 127 criteria in the form of a number, Required
expression, cell reference, or text that define
criteria2, ... Optional
which cells will be averaged.
Notes
If average_range is a blank or text value, AVERAGEIFS returns the #DIV0! error
value
Cells in range that contain TRUE evaluate as 1. Cells in range that contain FALSE
evaluate as 0 (zero).
Each cell in average_range is used in the average calculation only if all of the
corresponding criteria specified are true for that cell.
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria.
A question mark matches any single character; an asterisk matches any sequence
of characters. If you want to find an actual question mark or asterisk, type a tilde
(~) before the character.
Unlike the range and criteria arguments in the AVERAGEIF function, in AVERAGEIFS
each criteria_range must be the same size and shape as average_range.
If the length of any of the supplied criteria_range arrays is not equal to the length
of the average_range array, AVERAGEIFS returns the #VALUE! error value.
621
Advanced Excel Functions
If there are no cells that meet all the criteria, AVERAGEIFS returns the #DIV/0!
error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
622
334. BETA.DIST Function Advanced Excel Functions
Description
The BETA.DIST function returns the beta distribution. The beta distribution is commonly
used to study variation in the percentage of something across samples.
Syntax
BETA.DIST(x,alpha,beta,cumulative,[A],[B])
Arguments
Required
Argument Description
/Optional
The value between A and B at which to evaluate the
X Required
function.
Alpha A parameter of the distribution. Required
Beta A parameter of the distribution. Required
A logical value that determines the form of the
function.
BETA.DIST returns-
Cumulative the cumulative distribution function if cumulative Required
is TRUE
the probability density function if cumulative is
FALSE
A A lower bound to the interval of x. Optional
B An upper bound to the interval of x. Optional
Notes
If you omit values for A and B, BETA.DIST uses the standard cumulative beta
distribution, so that A = 0 and B = 1
Applicability
Excel 2010, Excel 2013, Excel 2016
623
Advanced Excel Functions
Example
624
335. BETA.INV Function Advanced Excel Functions
Description
The BETA.INV function returns the inverse of the beta cumulative probability density
function (BETA.DIST). If probability = BETA.DIST(x ...TRUE), then BETA.INV
(probability...) = x.
The beta distribution can be used in project planning to model probable completion times
given an expected completion time and variability.
Syntax
BETA.INV (probability,alpha,beta,[A],[B])
Arguments
Argument Description Required
/Optional
Probability A probability associated with the beta distribution. Required
Alpha A parameter of the distribution. Required
Beta A parameter of the distribution. Required
A A lower bound to the interval of x. Optional
B An upper bound to the interval of x. Optional
Notes
If you omit values for A and B, BETA.INV uses the standard cumulative beta
distribution, so that A = 0 and B = 1
Given a value for probability, BETA.INV seeks that value x such that
Applicability
Excel 2010, Excel 2013, Excel 2016
625
Advanced Excel Functions
Example
626
336. BINOM.DIST Function Advanced Excel Functions
Description
The BINOM.DIST function returns the individual term binomial distribution probability.
Syntax
BINOM.DIST (number_s,trials,probability_s,cumulative)
Arguments
Required
Argument Description
/Optional
Number_s The number of successes in trials. Required
Trials The number of independent trials. Required
Notes
Number_s and trials are truncated to integers.
If number_s < 0 or number_s > trials, BINOM.DIST returns the #NUM! error value.
627
Advanced Excel Functions
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
628
337. BINOM.DIST.RANGE Function Advanced Excel Functions
Description
The BINOM.DIST.RANGE function returns the probability of a trial result using a binomial
distribution.
Syntax
BINOM.DIST.RANGE (trials,probability_s,number_s,[number_s2])
Arguments
Required
Argument Description
/Optional
The number of independent trials. Must be greater than
Trials Required
or equal to 0.
The probability of success in each trial.
Probability_s Must be greater than or equal to 0 and less than or equal Required
to 1.
The number of successes in trials.
Number_s Must be greater than or equal to 0 and less than or equal Required
to Trials.
If provided, returns the probability that the number of
successful trials will fall between Number_s and
Number_s2 number_s2. Optional
Must be greater than or equal to Number_s and less than
or equal to Trials.
Notes
If number_s is < 0 or > trials, BINOM.DIST.RANGE returns the #NUM! error value.
629
Advanced Excel Functions
Applicability
Excel 2013, Excel 2016
Example
630
338. BINOM.INV Function Advanced Excel Functions
Description
The BINOM.INV function returns the smallest value for which the cumulative binomial
distribution is greater than or equal to a criterion value.
Syntax
BINOM.INV (trials,probability_s,alpha)
Arguments
Argument Description Required
/Optional
Trials The number of Bernoulli trials. Required
Probability_s The probability of a success on each trial. Required
Alpha The criterion value. Required
Notes
If trials is not an integer, it is truncated.
If any argument is nonnumeric, BINOM.INV returns the #VALUE! error value.
If trials < 0, BINOM.INV returns the #NUM! error value.
If probability_s is < 0 or probability_s > 1, BINOM.INV returns the #NUM! error
value.
If alpha < 0 or alpha > 1, BINOM.INV returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
631
339. CHISQ.DIST Function Advanced Excel Functions
Description
The CHISQ.DIST function returns the chi-squared distribution. The chi-squared distribution
is commonly used to study variation in the percentage of something across samples, such
as the fraction of the day people spend watching television.
Syntax
CHISQ.DIST(x,deg_freedom,cumulative)
Arguments
Required
Argument Description
/Optional
The value at which you want to evaluate the
X Required
distribution.
Deg_freedom The number of degrees of freedom. Required
A logical value that determines the form of the function.
If cumulative is TRUE, CHISQ.DIST returns the
Cumulative cumulative distribution function. Required
If cumulative is FALSE, CHISQ.DIST returns the
probability density function.
Notes
If deg_freedom is not an integer, it is truncated.
If any argument is nonnumeric, CHISQ.DIST returns the #VALUE! error value.
If x is negative, CHISQ.DIST returns the #NUM! error value.
If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.DIST returns the #NUM!
error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
632
Advanced Excel Functions
Example
633
340. CHISQ.DIST.RT Function Advanced Excel Functions
Description
The CHISQ.DIST.RT function returns the right-tailed probability of the chi-squared
distribution.
The χ2 distribution is associated with a χ2 test. Use the χ2 test to compare observed and
expected values. By comparing the observed results with the expected ones, you can
decide whether your original hypothesis is valid.
Syntax
CHISQ.DIST.RT(x,deg_freedom)
Arguments
Required
Argument Description
/Optional
The value at which you want to evaluate the
X Required
distribution.
Deg_freedom The number of degrees of freedom. Required
Notes
If deg_freedom is not an integer, it is truncated.
Applicability
Excel 2010, Excel 2013, Excel 2016
634
Advanced Excel Functions
Example
635
341. CHISQ.INV Function Advanced Excel Functions
Description
The CHISQ.INV function returns the inverse of the left-tailed probability of the chi-squared
distribution. The chi-squared distribution is commonly used to study variation in the
percentage of something across samples.
Syntax
CHISQ.INV (probability,deg_freedom)
Arguments
Required
Argument Description
/Optional
A probability associated with the chi-squared
Probability Required
distribution.
Deg_freedom The number of degrees of freedom. Required
Notes
If deg_freedom is not an integer, it is truncated.
If argument is nonnumeric, CHISQ.INV returns the #VALUE! error value.
If probability < 0 or probability > 1, CHISQ.INV returns the #NUM! error value.
If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.INV returns the #NUM! error
value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
636
342. CHISQ.INV.RT Function Advanced Excel Functions
Description
The CHISQ.INV.RT function returns the inverse of the right-tailed probability of the chi-
squared distribution. If probability = CHISQ.DIST.RT(x...), then
CHISQ.INV.RT(probability,...) = x.
Use this function to compare observed results with expected ones in order to decide
whether your original hypothesis is valid.
Syntax
CHISQ.INV.RT (probability,deg_freedom)
Arguments
Required
Argument Description
/Optional
A probability associated with the chi-squared
Probability Required
distribution.
Notes
If deg_freedom is not an integer, it is truncated
If either argument is nonnumeric, CHISQ.INV.RT returns the #VALUE! error value
If probability < 0 or probability > 1, CHISQ.INV.RT returns the #NUM! error value
If deg_freedom < 1, CHISQ.INV.RT returns the #NUM! error value
Given a value for probability, CHISQ.INV.RT seeks that value x such that
CHISQ.DIST.RT(x, deg_freedom) = probability. Thus, precision of CHISQ.INV.RT
depends on precision of CHISQ.DIST.RT.
CHISQ.INV.RT uses an iterative search technique. If the search has not converged
after 64 iterations, the function returns the #N/A error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
637
Advanced Excel Functions
Example
638
343. CHISQ.TEST Function Advanced Excel Functions
Description
The CHISQ.TEST function returns the test for independence. CHISQ.TEST returns the value
from the chi-squared (χ2) distribution for the statistic and the appropriate degrees of
freedom. You can use χ2 tests to determine whether hypothesized results are verified by
an experiment.
Syntax
CHISQ.TEST (actual_range,expected_range)
Arguments
Required
Argument Description
/Optional
The range of data that contains observations to test
Actual_range Required
against expected values.
The range of data that contains the ratio of the
Expected_range product of row totals and column totals to the grand Required
total.
Notes
The χ2 test first calculates a χ2 statistic using the formula-
Where:
Aij = actual frequency in the i-th row, j-th column
Eij = expected frequency in the i-th row, j-th column
r = number or rows
c = number of columns
If actual_range and expected_range have a different number of data points,
CHISQ.TEST returns the #N/A error value.
CHISQ.TEST returns the probability that a value of the χ 2 statistic at least as high
as the value calculated by the above formula could have happened by chance under
the assumption of independence
o In computing this probability, CHISQ.TEST uses the χ 2 distribution with an
appropriate number of degrees of freedom, df
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
640
344. CONFIDENCE.NORM Function Advanced Excel Functions
Description
The CONFIDENCE.NORM function returns the confidence interval for a population mean,
using a normal distribution.
The confidence interval is a range of values. Your sample mean, x, is at the center of this
range and the range is x ± CONFIDENCE.NORM.
Syntax
CONFIDENCE.NORM (alpha,standard_dev,size)
Arguments
Required
Argument Description
/Optional
The significance level used to compute the confidence
level.
The confidence level equals
Alpha Required
100*(1 - alpha)%
In other words, an alpha of 0.05 indicates a 95 percent
confidence level.
The population standard deviation for the data range
Standard_dev Required
and is assumed to be known.
Size The sample size. Required
Notes
If we assume alpha equals 0.05, we need to calculate the area under the standard
normal curve that equals (1 - alpha), or 95 percent. This value is ± 1.96. The
confidence interval is therefore:
Applicability
Excel 2010, Excel 2013, Excel 2016
641
Advanced Excel Functions
Example
642
345. CONFIDENCE.T Function Advanced Excel Functions
Description
The CONFIDENCE.T function returns the confidence interval for a population mean, using
a student's t distribution.
Syntax
CONFIDENCE.T (alpha,standard_dev,size)
Arguments
Required
Argument Description
/Optional
The significance level used to compute the
confidence level.
The confidence level equals
Alpha Required
100*(1 - alpha)%
In other words, an alpha of 0.05 indicates a 95
percent confidence level.
The population standard deviation for the data range
Standard_dev Required
and is assumed to be known.
Size The sample size. Required
Notes
If size is not an integer, it is truncated.
If size equals 1, CONFIDENCE.T returns #DIV/0! error value.
If size < 1, CONFIDENCE.T returns #NUM! error value.
If alpha ≤ 0 or alpha ≥ 1, CONFIDENCE.T returns the #NUM! error value.
If standard_dev ≤ 0, CONFIDENCE.T returns the #NUM! error value.
If any argument is nonnumeric, CONFIDENCE.T returns the #VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
643
Advanced Excel Functions
Example
644
346. CORREL Function Advanced Excel Functions
Description
The CORREL function returns the correlation coefficient of the Array1 and Array2 cell
ranges. Use the correlation coefficient to determine the relationship between two
properties.
Syntax
CORREL (array1, array2)
Arguments
Required
Argument Description
/Optional
Array1 A cell range of values. Required
Notes
The equation for the correlation coefficient is-
If Array1 and Array2 have a different number of data points, CORREL returns the
#N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
645
Advanced Excel Functions
Example
646
347. COUNT Function Advanced Excel Functions
Description
The COUNT Function counts the number of cells that contain numbers, and counts
numbers within the list of arguments. Use the COUNT function to get the number of entries
in a number field that is in a range or array of numbers.
Syntax
COUNT (value1, [value2] ...)
Arguments
Required
Argument Description
/Optional
The first item, cell reference, or range within which you
value1 Required
want to count numbers.
Up to 255 additional items, cell references, or ranges
value2, ... Optional
within which you want to count numbers.
Notes
The arguments can contain or refer to a variety of different types of data, but only
numbers are counted.
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 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 COUNTIFS function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
647
Advanced Excel Functions
Example
648
348. COUNTA Function Advanced Excel Functions
Description
The COUNTA function counts the number of cells that are not empty in a range.
Syntax
COUNTA (value1, [value2] ...)
Arguments
Required
Argument Description
/Optional
The first argument representing the values that you
value1 Required
want to count.
Additional arguments representing the values that
value2, ... you want to count, up to a maximum of 255 Optional
arguments.
Notes
The COUNTA function counts cells containing any type of information, including
error values and empty text ("").
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 numbers), use the COUNT function.
If you want to count only cells that meet certain criteria, use the COUNTIF function
or the COUNTIFS function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
649
Advanced Excel Functions
Example
650
349. COUNTBLANK Function Advanced Excel Functions
Description
The COUNTBLANK function counts empty cells in a specified range of cells.
Syntax
COUNTBLANK (range)
Arguments
Required
Argument Description
/Optional
The range from which you want to count the blank
Range Required
cells.
Notes
Cells with formulas that return "" (empty text) are also counted. Cells with zero
values are not counted.
To use this function, ensure that the iterative calculation is turned off i.e the
Enable iterative calculation check box is cleared in
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
651
Advanced Excel Functions
Example
652
350. COUNTIF Function Advanced Excel Functions
Description
The COUNTIF function counts the number of cells that meet a criterion.
Syntax
COUNTIF (range, criteria)
Arguments
Required
Argument Description
/Optional
The group of cells you want to count.
Range can contain numbers, arrays, a named range, or
range Required
references that contain numbers.
Blank and text values are ignored.
A number, expression, cell reference, or text string that
criteria Required
determines which cells will be counted.
Notes
Criteria are not case sensitive. E.g. the string "apples" and the string "APPLES" will
match the same cells.
Wildcard characters the question mark (?) and asterisk (*) can be used in criteria.
A question mark matches any single character. An asterisk matches any sequence
of characters. If you want to find an actual question mark or asterisk, type a tilde
(~) in front of the character.
When counting text values, make sure the data doesn't contain leading spaces,
trailing spaces, inconsistent use of straight and curly quotation marks, or
nonprinting characters. In these cases, COUNTIF might return an unexpected
value.
COUNTIF supports named ranges. The named range can be in the current
Worksheet, another Worksheet in the same Workbook, or from a different
Workbook. To reference from another Workbook, that second Workbook also must
be open.
COUNTIF uses only a single criteria. Use COUNTIFS to use multiple criteria.
If the specified criteria argument is a text string that is greater than 255 characters
in length, COUNTIF returns #VALUE! Error value.
653
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
654
351. COUNTIFS Function Advanced Excel Functions
Description
The COUNTIFS function applies multiple criteria to cells across multiple ranges and counts
the number of times all criteria are met.
Syntax
COUNTIFS (criteria_range1, criteria1, [criteria_range2, criteria2]…)
Arguments
Required
Argument Description
/Optional
The first range in which to evaluate the associated
criteria_range1 Required
criteria.
The criteria in the form of a number, expression,
criteria1 cell reference, or text that define which cells will be Required
counted.
criteria_range2, Additional ranges and their associated criteria.
Optional
criteria2, ... Up to 127 range/criteria pairs are allowed.
Notes
Each additional range must have the same number of rows and columns as the
criteria_range1 argument.
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 1. If all of the second cells meet their
associated criteria, the count increases by 1 again, and so on until all of the cells
are evaluated.
You can use the wildcard characters the question mark (?) and asterisk (*) in
criteria. A question mark matches any single character, and an asterisk matches
any sequence of characters. If you want to find an actual question mark or asterisk,
type a tilde (~) before the character.
If all the supplied criteria_range arrays do not have equal length, COUNTIFS
returns #VALUE! Error value.
If any of the specified criteria arguments are text strings that are greater than 255
characters long, COUNTIFS returns #VALUE! Error value.
655
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
656
352. COVARIANCE.P Function Advanced Excel Functions
Description
The COVARIANCE.P function returns population covariance, the average of the products
of deviations for each data point pair in two data sets. Use covariance to determine the
relationship between two data sets.
Syntax
COVARIANCE.P (array1, array2)
Arguments
Required
Argument Description
/Optional
Array1 The first cell range of integers. Required
Notes
Covariance is given by-
Where n is the sample size and are the sample means AVERAGE (array1)
and AVERAGE (array2).
If array1 and array2 have different numbers of data points, COVARIANCE.P returns
the #N/A error value.
If either array1 or array2 is empty, COVARIANCE.P returns the #DIV/0! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
657
Advanced Excel Functions
Example
658
353. COVARIANCE.S Function Advanced Excel Functions
Description
The COVARIANCE.S function returns the sample covariance, the average of the products
of deviations for each data point pair in two data sets.
Syntax
COVARIANCE.S (array1, array2)
Arguments
Required
Argument Description
/Optional
Array1 The first cell range of integers. Required
Array2 The second cell range of integers. Required
Notes
The arguments must either be numbers or be names, arrays, or references that
contain numbers.
If array1 and array2 have different numbers of data points, COVARIANCE.S returns
the #N/A error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
659
Advanced Excel Functions
Example
660
354. DEVSQ Function Advanced Excel Functions
Description
The DEVSQ function returns the sum of squares of deviations of data points from their
sample mean.
Syntax
DEVSQ (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 arguments for which you want to calculate Required
the sum of squared deviations.
You can also use a single array or a reference to an
number2, ... Optional
array instead of arguments separated by commas.
Notes
The equation for the sum of squared deviations is-
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
Text representations of numbers, that are supplied as a part of an array, are not
interpreted as numeric values by the DEVSQ function.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If none of the values supplied to the Function are numeric DEVSQ returns #NUM!
error value.
If any of the number arguments that are supplied directly to the Function are non-
numeric text strings, DEVSQ returns #VALUE! error value.
661
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
662
355. EXPON.DIST Function Advanced Excel Functions
Description
The EXPON.DIST function returns the exponential distribution. Use EXPON.DIST to model
the time between events.
Syntax
EXPON.DIST(x,lambda,cumulative)
Arguments
Required
Argument Description
/Optional
X The value of the function. Required
Lambda The parameter value. Required
A logical value that indicates which form of the
exponential function to provide.
If cumulative is TRUE, EXPON.DIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, EXPON.DIST returns the
probability density function.
Notes
Applicability
Excel 2010, Excel 2013, Excel 2016
663
Advanced Excel Functions
Example
664
356. F.DIST Function Advanced Excel Functions
Description
The F.DIST function returns the F probability distribution. You can use this function to
determine whether two data sets have different degrees of diversity.
Syntax
F.DIST(x,deg_freedom1,deg_freedom2,cumulative)
Arguments
Required
Argument Description
/Optional
X The value at which to evaluate the function. Required
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
A logical value that determines the form of the
function.
If cumulative is TRUE, F.DIST returns the cumulative
Cumulative Required
distribution function.
If cumulative is FALSE, F.DIST returns the probability
density function.
Notes
If deg_freedom1 or deg_freedom2 is not an integer, it is truncated.
If any argument is nonnumeric, F.DIST returns the #VALUE! error value.
If x is negative, F.DIST returns the #NUM! error value.
If deg_freedom1 < 1, F.DIST returns the #NUM! error value.
If deg_freedom2 < 1, F.DIST returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
665
Advanced Excel Functions
Example
666
357. F.DIST.RT Function Advanced Excel Functions
Description
The F.DIST.RT function returns the (right-tailed) F probability distribution (degree of
diversity) for two data sets. You can use this function to determine whether two data sets
have different degrees of diversity.
Syntax
F.DIST.RT(x,deg_freedom1,deg_freedom2)
Arguments
Required
Argument Description
/Optional
X The value at which to evaluate the function. Required
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
Notes
F.DIST.RT is calculated as
F.DIST.RT=P (F>x)
Applicability
Excel 2010, Excel 2013, Excel 2016
667
Advanced Excel Functions
Example
668
358. F.INV Function Advanced Excel Functions
Description
The F.INV function returns the inverse of the F probability distribution.
The F distribution can be used in an F-test that compares the degree of variability in two
data sets.
Syntax
F.INV (probability,deg_freedom1,deg_freedom2)
Arguments
Required
Argument Description
/Optional
A probability associated with the F cumulative
Probability Required
distribution.
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
Notes
If deg_freedom1 or deg_freedom2 is not an integer, it is truncated.
If any argument is nonnumeric, F.INV returns the #VALUE! error value.
If probability < 0 or probability > 1, F.INV returns the #NUM! error value.
If deg_freedom1 < 1, or deg_freedom2 < 1, F.INV returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
669
Advanced Excel Functions
Example
670
359. F.INV.RT Function Advanced Excel Functions
Description
The F.INV.RT function returns the inverse of the (right-tailed) F probability distribution.
The F distribution can be used in an F-test that compares the degree of variability in two
data sets.
Syntax
F.INV.RT (probability,deg_freedom1,deg_freedom2)
Arguments
Required
Argument Description
/Optional
A probability associated with the F cumulative
Probability Required
distribution.
Deg_freedom1 The numerator degrees of freedom. Required
Deg_freedom2 The denominator degrees of freedom. Required
Notes
If Deg_freedom1 or Deg_freedom2 is not an integer, it is truncated.
If Probability is < 0 or probability is > 1, F.INV.RT returns the #NUM! error value.
Given a value for probability, F.INV.RT seeks that value x such that
o F.INV.RT uses an iterative search technique. If the search has not converged
after 64 iterations, the function returns the #N/A error value.
671
Advanced Excel Functions
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
672
360. F.TEST Function Advanced Excel Functions
Description
The F.TEST function returns the result of an F-test, the two-tailed probability that the
variances in array1 and array2 are not significantly different. Use this function to
determine whether two samples have different variances.
Syntax
F.TEST (array1, array2)
Arguments
Argument Description Required
/Optional
Array1 The first array or range of data. Required
Notes
The arguments must be either numbers or names, arrays, or references that
contain numbers.
If the number of data points in array1 or array2 is less than 2, or if the variance of
array1 or array2 is zero, F.TEST returns the #DIV/0! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
673
Advanced Excel Functions
Example
674
361. FISHER Function Advanced Excel Functions
Description
The FISHER function returns the Fisher transformation at x. This transformation produces
a Function that is normally distributed rather than skewed. Use this function to perform
hypothesis testing on the correlation coefficient.
Syntax
FISHER(x)
Arguments
Required
Argument Description
/Optional
A numeric value for which you want the
X Required
transformation.
Notes
The equation for the Fisher transformation is:
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
675
362. FISHERINV Function Advanced Excel Functions
Description
The FISHERINV function returns the inverse of the Fisher transformation. Use this
transformation when analyzing correlations between ranges or arrays of data. If y =
FISHER(x), then FISHERINV(y) = x.
Syntax
FISHERINV(y)
Arguments
Required
Argument Description
/Optional
The value for which you want to perform the inverse
Y Required
of the transformation.
Notes
The equation for the inverse of the Fisher transformation is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
676
363. FORECAST Function Advanced Excel Functions
Description
The FORECAST function calculates, or predicts, a future value by using existing values.
The predicted value is a y-value for a given x-value. The known values are existing x-
values and y-values, and the new value is predicted by using linear regression.
Syntax
FORECAST(x, known_y's, known_x's)
Arguments
Required
Argument Description
/Optional
X The data point for which you want to predict a value. Required
Known_y's The dependent array or range of data. Required
Known_x's The independent array or range of data. Required
Notes
The equation for FORECAST is a+bx, where-
and
If known_y's and known_x's are empty or contain a different number of data points,
FORECAST returns the #N/A error value.
If the variance of known_x's equals zero, then FORECAST returns the #DIV/0! error
value.
677
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
678
364. FORECAST.ETS.CONFINT Function Advanced Excel Functions
Description
The FORECAST.ETS.CONFINT function returns a confidence interval for the forecast value
at the specified target date.
A confidence interval of 95% means that 95% of future points are expected to fall within
this radius from the result FORECAST.ETS forecasted (with normal distribution). Using
confidence interval can help grasp the accuracy of the predicted model. A smaller interval
would imply more confidence in the prediction for this specific point.
Syntax
FORECAST.ETS.CONFINT (target_date, values, timeline, [confidence_level],
[seasonality], [data_completion], [aggregation])
Arguments
Required
Argument Description
/Optional
The data point for which you want to predict a value.
Target_date Required
Target date can be date/time or numeric.
Values are the historical values, for which you want
Values Required
to forecast the next points.
The independent array or range of numeric data.
The dates in the timeline must have a consistent
step between them and cannot be zero.
However, FORECAST.ETS.CONFINT supports up to
Timeline 30% missing data, and will automatically adjust for Required
it.
The timeline is not required to be sorted, as
FORECAST.ETS.CONFINT will sort it implicitly for
calculations.
A numerical value between 0 and 1 (exclusive),
indicating a confidence_level for the calculated
confidence interval.
Confidence_level For example, for a 90% confidence interval, a 90% Optional
confidence level will be computed (90% of future
points are to fall within this radius from prediction).
The default value is 95%.
A numeric value.
The default value of 1 means Excel detects
seasonality automatically for the forecast and uses
positive, whole numbers for the length of the
Seasonality seasonal pattern. Optional
0 indicates no seasonality, meaning the prediction
will be linear.
Positive whole numbers will indicate to the algorithm
to use patterns of this length as the seasonality.
679
Advanced Excel Functions
Required
Argument Description
/Optional
Maximum supported seasonality is 8,760 (number
of hours in a year).
FORECAST.ETS.CONFINT supports up to 30%
missing data in the timeline and will automatically
adjust for it based on Data_completion.
The default value of 1 will account for missing points
Data_completion Optional
by completing them to be the average of the
neighboring points.
0 will indicate the algorithm to account for missing
points as zeros.
Although the timeline requires a constant step
between data points, FORECAST.ETS.CONFINT will
aggregate multiple points which have the same time
stamp.
The aggregation parameter is a numeric value
Aggregation Optional
indicating which method will be used to aggregate
several values with the same time stamp.
The default value of 0 will use AVERAGE, while other
options are SUM, COUNT, COUNTA, MIN, MAX, and
MEDIAN.
Notes
FORECAST.ETS.CONFINT Function is added in Excel 2016.
If the target date is chronologically before the end of the historical timeline,
FORECAST.ETS.CONFINT returns the #NUM! error.
If the ranges of the timeline and values are not of same size,
FORECAST.ETS.CONFINT returns the #N/A error.
Applicability
Excel 2016
680
365. FORECAST.ETS Function Advanced Excel Functions
Description
The FORECAST.ETS function calculates or predicts a future value based on existing
(historical) values by using the AAA version of the Exponential Smoothing (ETS) algorithm.
The predicted value is a continuation of the historical values in the specified target date,
which should be a continuation of the timeline.
Syntax
FORECAST.ETS (target_date, values, timeline, [seasonality], [data_completion],
[aggregation])
Arguments
Required
Argument Description
/Optional
The data point for which you want to predict a
Target_date value. Required
Target date can be date/time or numeric.
Values are the historical values, for which you want
Values Required
to forecast the next points.
The independent array or range of numeric data.
The dates in the timeline must have a consistent
step between them and cannot be zero.
Timeline However, FORECAST.ETS supports up to 30% Required
missing data, and will automatically adjust for it.
The timeline is not required to be sorted, as
FORECAST.ETS will sort it implicitly for calculations.
A numeric value.
The default value of 1 means Excel detects
seasonality automatically for the forecast and uses
positive, whole numbers for the length of the
seasonal pattern.
0 indicates no seasonality, meaning the prediction
Seasonality Optional
will be linear.
Positive whole numbers will indicate to the
algorithm to use patterns of this length as the
seasonality.
Maximum supported seasonality is 8,760 (number
of hours in a year).
FORECAST.ETS supports up to 30% missing data in
the timeline and will automatically adjust for it
based on Data_completion.
The default value of 1 will account for missing
Data_completion Optional
points by completing them to be the average of the
neighboring points.
0 will indicate the algorithm to account for missing
points as zeros.
681
Advanced Excel Functions
Required
Argument Description
/Optional
Although the timeline requires a constant step
between data points, FORECAST.ETS will aggregate
multiple points which have the same time stamp.
The aggregation parameter is a numeric value
Aggregation indicating which method will be used to aggregate Optional
several values with the same time stamp.
The default value of 0 will use AVERAGE, while
other options are SUM, COUNT, COUNTA, MIN,
MAX, and MEDIAN.
Notes
If the target date is chronologically before the end of the historical timeline,
FORECAST.ETS returns the #NUM! error.
If the ranges of the timeline and values are not of same size, FORECAST.ETS
returns the #N/A error.
Applicability
Excel 2016
682
366. FORECAST.ETS.SEASONALITY Function Advanced Excel Functions
Description
The FORECAST.ETS.SEASONALITY function returns the length of the repetitive pattern
Excel detects for the specified time series.
Syntax
FORECAST.ETS.SEASONALITY (values, timeline, [data_completion], [aggregation])
Arguments
Required
Argument Description
/Optional
Values are the historical values, for which you want
Values Required
to forecast the next points.
683
Advanced Excel Functions
Required
Argument Description
/Optional
The aggregation parameter is a numeric value
indicating which method will be used to aggregate
several values with the same time stamp.
Notes
FORECAST.ETS.SEASONALITY Function is added in Excel 2016.
If the ranges of the timeline and values are not of same size,
FORECAST.ETS.SEASONALITY returns the #N/A error.
Applicability
Excel 2016
684
367. FORECAST.ETS.STAT Function Advanced Excel Functions
Description
The FORECAST.ETS.STAF function returns a statistical value as a result of time series
forecasting. Statistic type indicates which statistic is requested by this function.
Syntax
FORECAST.ETS.STAT (values, timeline, statistic_type, [seasonality],
[data_completion], [aggregation])
Arguments
Required
Argument Description
/Optional
Values are the historical values, for which you want
Values Required
to forecast the next points.
A numeric value.
The default value of 1 means Excel detects
seasonality automatically for the forecast and uses
positive, whole numbers for the length of the
seasonal pattern.
0 indicates no seasonality, meaning the prediction
Seasonality Optional
will be linear.
Positive whole numbers will indicate to the
algorithm to use patterns of this length as the
seasonality.
Maximum supported seasonality is 8,760 (number
of hours in a year).
685
Advanced Excel Functions
Required
Argument Description
/Optional
0 will indicate the algorithm to account for missing
points as zeros.
Notes
FORECAST.ETS.STAT function is added in Excel 2016.
If the ranges of the timeline and values are not of same size, FORECAST.ETS.STAT
returns the #N/A error.
Alpha parameter of ETS algorithm Returns the base value parameter—a higher
value gives more weight to recent data points.
Beta parameter of ETS algorithm Returns the trend value parameter—a higher
value gives more weight to the recent trend.
Gamma parameter of ETS algorithm Returns the seasonality value parameter—a
higher value gives more weight to the recent
seasonal period.
MASE metric Returns the mean absolute scaled error metric—
a measure of the accuracy of forecasts.
SMAPE metric Returns the symmetric mean absolute
percentage error metric—an accuracy measure
based on percentage errors.
MAE metric Returns the symmetric mean absolute
percentage error metric—an accuracy measure
based on percentage errors.
686
Advanced Excel Functions
Applicability
Excel 2016
687
368. FORECAST.LINEAR Function Advanced Excel Functions
Description
The FORECAST.LINEAR function calculates, or predicts, a future value by using existing
values. The predicted value is a y-value for a given x-value. The known values are existing
x-values and y-values, and the new value is predicted by using linear regression.
Syntax
FORECAST.LINEAR(x, known_y's, known_x's)
Arguments
Required
Argument Description
/Optional
X The data point for which you want to predict a value. Required
Known_y's The dependent array or range of data. Required
Known_x's The independent array or range of data. Required
Notes
FORECAST.LINEAR Function is added in Excel 2016 and replaces the FORECAST Function
of the earlier Excel Versions
Applicability
Excel 2016
688
369. FREQUENCY Function Advanced Excel Functions
Description
The FREQUENCY function calculates how often values occur within a range of values, and
then returns a vertical array of numbers. Since FREQUENCY returns an array, it must be
entered as an array formula.
Syntax
FREQUENCY (data_array, bins_array)
Arguments
Required
Argument Description
/Optional
An array of or reference to a set of values for which you
want to count frequencies.
Data_array Required
If data_array contains no values, FREQUENCY returns an
array of zeros.
An array of or reference to intervals into which you want
to group the values in data_array.
Bins_array Required
If bins_array contains no values, FREQUENCY returns the
number of elements in data_array.
Notes
FREQUENCY is entered as an array formula after you select a range of adjacent
cells into which you want the returned distribution to appear.
The number of elements in the returned array is one more than the number of
elements in bins_array. The extra element in the returned array returns the count
of any values above the highest interval.
If the array formula is entered into a range of cells that is too large, #N/A error
appears in all cells after the nth cell, where n is the length of the bins_array + 1
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
689
Advanced Excel Functions
Example
690
370. GAMMA.DIST Function Advanced Excel Functions
Description
The GAMMA.DIST function returns the gamma distribution. You can use this function to
study variables that may have a skewed distribution. The gamma distribution is commonly
used in queuing analysis.
Syntax
GAMMA.DIST(x,alpha,beta,cumulative)
Arguments
Required
Argument Description
/Optional
X The value at which you want to evaluate the distribution. Required
Alpha A parameter to the distribution. Required
A parameter to the distribution.
Beta If beta = 1, GAMMA.DIST returns the standard gamma Required
distribution.
A logical value that determines the form of the function.
If cumulative is TRUE, GAMMA.DIST returns the
Cumulative cumulative distribution function. Required
If cumulative is FALSE, GAMMA.DIST returns the
probability density function.
Notes
The equation for the gamma probability density function is-
For a positive integer n, when alpha = n/2, beta = 2, and cumulative = TRUE,
GAMMA.DIST returns (1 - CHISQ.DIST.RT(x)) with n degrees of freedom.
691
Advanced Excel Functions
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
692
371. GAMMA Function Advanced Excel Functions
Description
The GAMMA function returns the gamma function value.
Syntax
GAMMA (number)
Arguments
Argument Description Required
/Optional
Number Returns a number. Required
Notes
GAMMA uses the following equation-
Г(N+1) = N * Г(N)
If Number is a negative integer or 0, GAMMA returns the #NUM! error value.
If Number contains characters that are not valid, GAMMA returns the #VALUE! error
value.
Applicability
Excel 2013, Excel 2016
Example
693
372. GAMMA.INV Function Advanced Excel Functions
Description
The GAMMA.INV function returns the inverse of the gamma cumulative distribution.
If p = GAMMA.DIST(x...), then GAMMA.INV (p...) = x. You can use this Function to study
a variable whose distribution may be skewed.
Syntax
GAMMA.INV (probability,alpha,beta)
Arguments
Required
Argument Description
/Optional
The probability associated with the gamma
Probability Required
distribution.
Alpha A parameter to the distribution. Required
A parameter to the distribution.
Beta If beta = 1, GAMMA.INV returns the standard gamma Required
distribution.
Notes
If any argument is text, GAMMA.INV returns the #VALUE! error value.
If probability < 0 or probability > 1, GAMMA.INV returns the #NUM! error value.
If alpha ≤ 0 or if beta ≤ 0, GAMMA.INV returns the #NUM! error value.
Given a value for probability, GAMMA.INV seeks that value x such that
Applicability
Excel 2010, Excel 2013, Excel 2016
694
Advanced Excel Functions
Example
695
373. GAMMALN Function Advanced Excel Functions
Description
The GAMMALN function returns the natural logarithm of the gamma function, Γ(x).
Syntax
GAMMALN(x)
Arguments
Required
Argument Description
/Optional
X The value for which you want to calculate GAMMALN. Required
Notes
GAMMALN is calculated as follows-
Where
The number e raised to the GAMMALN(i) power, where i is an integer, returns the
same result as (i - 1)!
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
696
Advanced Excel Functions
Example
697
374. GAMMALN.PRECISE Function Advanced Excel Functions
Description
The GAMMALN.PRECISE function returns the natural logarithm of the gamma function,
Γ(x).
Syntax
GAMMALN.PRECISE(x)
Arguments
Required
Argument Description
/Optional
The value for which you want to calculate
X Required
GAMMALN.PRECISE.
Notes
GAMMALN.PRECISE is calculated as follows-
GAMMALN.PRECISE = LN(Γ(x))
Where:
Applicability
Excel 2010, Excel 2013, Excel 2016
698
Advanced Excel Functions
Example
699
375. GAUSS Function Advanced Excel Functions
Description
The GAUSS function calculates the probability that a member of a standard normal
population will fall between the mean and z standard deviations from the mean.
Syntax
GAUSS (z)
Arguments
Argument Description Required
/Optional
Z Returns a number. Required
Notes
Because NORM.S.DIST(0,True) always returns 0.5, GAUSS (z) will always be 0.5
less than NORM.S.DIST(z,True)
If z is not a valid data type, GAUSS returns the #VALUE! error value.
Applicability
Excel 2013, Excel 2016
Example
700
376. GEOMEAN Function Advanced Excel Functions
Description
The GEOMEAN function returns the geometric mean of an array or range of positive data.
Syntax
GEOMEAN (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
number1 1 to 255 arguments for which you want to calculate Required
the mean.
You can also use a single array or a reference to an
number2, ... Optional
array instead of arguments separated by commas.
Notes
The equation for the geometric mean is-
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
701
Advanced Excel Functions
Example
702
377. GROWTH Function Advanced Excel Functions
Description
The GROWTH function calculates predicted exponential growth by using existing data.
GROWTH returns the y-values for a series of new x-values that you specify by using
existing x-values and y-values. You can also use the GROWTH function to fit an exponential
curve to existing x-values and y-values.
Syntax
GROWTH (known_y's, [known_x's], [new_x's], [const])
Arguments
Required
Argument Description
/Optional
Required
Argument Description
/Optional
A logical value specifying whether to force the constant
b to equal 1.
Const If const is TRUE or omitted, b is calculated normally. Optional
If const is FALSE, b is set equal to 1 and the m-values
are adjusted so that y = m^x.
Notes
Formulas that return arrays must be entered as array formulas after selecting the
correct number of cells.
When entering an array constant for an argument such as known_x's, use commas
to separate values in the same row and semicolons to separate rows.
If the known_x's array has a different length to the known_y's array, GROWTH
returns the #REF! error value.
If any of the values in the supplied known_y's, known_x's or new_x's arrays are
non-numeric, GROWTH returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
When new x’s are given-
704
Advanced Excel Functions
705
378. HARMEAN Function Advanced Excel Functions
Description
The HARMEAN function returns the harmonic mean of a data set. The harmonic mean is
the reciprocal of the arithmetic mean of reciprocals.
Syntax
HARMEAN (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 arguments for which you want to calculate required
the mean.
number2, ... You can also use a single array or a reference to an optional
array instead of arguments separated by commas.
Notes
The equation for the harmonic mean is-
The harmonic mean is always less than the geometric mean, which is always less
than the arithmetic mean.
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
706
Advanced Excel Functions
Example
707
379. HYPGEOM.DIST Function Advanced Excel Functions
Description
The HYPGEOM.DIST function returns the hypergeometric distribution. HYPGEOM.DIST
returns the probability of a given number of sample successes, given the sample size,
population successes, and population size.
Use HYPGEOM.DIST for problems with a finite population, where each observation is either
a success or a failure, and where each subset of a given size is chosen with equal likelihood.
Syntax
HYPGEOM.DIST (sample_s, number_sample, population_s, number_pop, cumulative)
Arguments
Required
Argument Description
/Optional
Sample_s The number of successes in the sample. Required
Number_sample The size of the sample. Required
Population_s The number of successes in the population. Required
Number_pop The population size. Required
A logical value that determines the form of the
function.
If cumulative is TRUE, then HYPGEOM.DIST returns
Cumulative Required
the cumulative distribution function.
If cumulative is FALSE, HYPGEOM.DIST returns the
probability mass function.
Notes
The equation for the hypergeometric distribution is-
Where-
x = sample_s
n = number_sample
M = population_s
N = number_pop
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
709
380. INTERCEPT Function Advanced Excel Functions
Description
The INTERCEPT function calculates the point at which a line will intersect the y-axis by
using existing x-values and y-values. The intercept point is based on a best-fit regression
line plotted through the known x-values and known y-values.
Use the INTERCEPT function when you want to determine the value of the dependent
variable when the independent variable is 0 (zero).
Syntax
INTERCEPT (known_y's, known_x's)
Arguments
Required
Argument Description
/Optional
Known_y's The dependent set of observations or data. Required
Known_x's The independent set of observations or data. Required
Notes
The equation for the intercept of the regression line, a, is-
Where x and y are the sample means AVERAGE (known_x's) and AVERAGE
(known_y's).
The underlying algorithm used in the INTERCEPT and SLOPE functions is different
than the underlying algorithm used in the LINEST function. The difference between
these algorithms can lead to different results when data is undetermined and
collinear.
For example, if the data points of the known_y's argument are 0 and the data
points of the known_x's argument are 1, then-
o INTERCEPT and SLOPE return a #DIV/0! error. The INTERCEPT and SLOPE
algorithm is designed to look for one and only one answer, and in this case
there can be more than one answer.
710
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
711
381. KURT Function Advanced Excel Functions
Description
The KURT function returns the kurtosis of a data set. Kurtosis characterizes the relative
peakedness or flatness of a distribution compared with the normal distribution.
Syntax
KURT (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Notes
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.
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If any of the supplied number arguments that are supplied directly to the Function
are not recognized as numeric values, KURT returns the #VALUE! error value.
If there are fewer than four data points, or if the standard deviation of the sample
equals zero, KURT returns the #DIV/0! error value.
712
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
713
382. LARGE Function Advanced Excel Functions
Description
The LARGE function returns the k-th largest value in a data set. You can use this function
to select a value based on its relative standing.
Syntax
LARGE (array, k)
Arguments
Required
Argument Description
/Optional
The array or range of data for which you want to
Array Required
determine the k-th largest value.
The position (from the largest) in the array or cell
K Required
range of data to return.
Notes
If n is the number of data points in a range, then-
o LARGE (array,1) returns the largest value
o LARGE(array,n) returns the smallest value
If k ≤ 0 or if k is greater than the number of data points, LARGE returns the #NUM!
error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
714
Advanced Excel Functions
Example
715
383. LINEST Function Advanced Excel Functions
Description
The LINEST function calculates the statistics for a line by using the "least squares" method
to calculate a straight line that best fits your data, and then returns an array that describes
the line.
You can also combine LINEST with other functions to calculate the statistics for other types
of models that are linear in the unknown parameters, including polynomial, logarithmic,
exponential, and power series.
Since this function returns an array of values, it must be entered as an array formula.
Syntax
LINEST (known_y's, [known_x's], [const], [stats])
Arguments
Required
Argument Description
/Optional
The set of y-values that you already know in the
relationship y = mx + b.
If the range of known_y's is in a single column, each
column of known_x's is interpreted as a separate
known_y's Required
variable.
If the range of known_y's is contained in a single row,
each row of known_x's is interpreted as a separate
variable.
A set of x-values that you may already know in the
relationship y = mx + b.
The range of known_x's can include one or more sets of
variables.
If only one variable is used, known_y's and known_x's
can be ranges of any shape, as long as they have equal
known_x's Optional
dimensions.
If more than one variable is used, known_y's must be a
vector (that is, a range with a height of one row or a
width of one column).
If known_x's is omitted, it is assumed to be the array
{1,2,3,...} that is the same size as known_y's.
A logical value specifying whether to force the constant
b to equal 0.
const If const is TRUE or omitted, b is calculated normally. Optional
If const is FALSE, b is set equal to 0 and the m-values
are adjusted to fit y = mx.
A logical value specifying whether to return additional
stats Optional
regression statistics.
716
Advanced Excel Functions
Required
Argument Description
/Optional
If stats is TRUE, LINEST returns the additional regression
statistics. As a result, the returned array is
{mn, mn-1 ,..., m1, b; sen ,sen-1, ..., se1, seb; r2, sey;
F, df; ssreg, ssresid}.
If stats is FALSE or omitted, LINEST returns only the m-
coefficients and the constant b.
The additional regression statistics are as given in the
Table below.
Notes
y = mx + b
or
If there are multiple ranges of x-values, where the dependent y-values are a
function of the independent x-values, then-
o The m-values are coefficients corresponding to each x-value, and b is a
constant value
717
Advanced Excel Functions
The array that the LINEST Function returns is {mn, mn-1… m1, b}
You can describe any straight line with the slope and the y-intercept:
o Slope (m) :
To find the slope of a line, often written as m, take two points on the line,
(x1,y1) and (x2,y2). The slope is equal to
o Y-intercept (b):
The y-intercept of a line, often written as b, is the value of y at the point
where the line crosses the y-axis.
The equation of a straight line is y = mx + b. Once you know the values of m and
b, you can calculate any point on the line by plugging the y- or x-value into that
equation. You can also use the TREND Function
When you have only one independent x-variable, you can obtain the slope and y-
intercept values directly by using the following formulas:
o Slope:
o Y-intercept:
The accuracy of the line calculated by the LINEST Function depends on the degree
of scatter in your data. The more linear the data, the more accurate the LINEST
model.
LINEST uses the method of least squares for determining the best fit for the data.
When you have only one independent x-variable, the calculations for m and b are
based on the following formulas-
y = AVERAGE (known_y's)
The line and curve-fitting Functions LINEST and LOGEST can calculate the best
straight line or exponential curve that fits your data. However, you have to decide
which of the two results best fits your data. You can calculate TREND
(known_y's,known_x's) for a straight line, or GROWTH(known_y's, known_x's) for
an exponential curve. These Functions, without the known_x's argument omitted,
return an array of y-values predicted along that line or curve at your actual data
718
Advanced Excel Functions
points. You can then compare the predicted values with the actual values. You may
want to chart them both for a visual comparison.
In regression analysis, Excel calculates for each point the squared difference
between the y-value estimated for that point and its actual y-value. The sum of
these squared differences is called the residual sum of squares, ssresid. Excel then
calculates the total sum of squares, sstotal. When the const argument = TRUE or
is omitted, the total sum of squares is the sum of the squared differences between
the actual y-values and the average of the y-values.
When the const argument = FALSE, the total sum of squares is the sum of the
squares of the actual y-values (without subtracting the average y-value from each
individual y-value). Then regression sum of squares, ssreg, can be found from:
ssreg = sstotal - ssresid. The smaller the residual sum of squares is, compared with
the total sum of squares, the larger the value of the coefficient of determination,
r2, which is an indicator of how well the equation resulting from the regression
analysis explains the relationship among the variables. The value of r2 equals
ssreg/sstotal
In some cases, one or more of the X columns (assume that Y’s and X’s are in
columns) may have no additional predictive value in the presence of the other X
columns. i.e., eliminating one or more X columns might lead to predicted Y values
that are equally accurate. In that case these redundant X columns should be
omitted from the regression model. This phenomenon is called “collinearity”
because any redundant X column can be expressed as a sum of multiples of the
non-redundant X columns.
The LINEST Function checks for collinearity and removes any redundant X columns
from the regression model when it identifies them. Removed X columns can be
recognized in LINEST output as having 0 coefficients in addition to 0 se values. If
one or more columns are removed as redundant, df is affected because df depends
on the number of X columns actually used for predictive purposes.
719
Advanced Excel Functions
Note that the y-values predicted by the regression equation may not be valid if
they are outside the range of the y-values you used to determine the equation.
The underlying algorithm used in the LINEST function is different than the
underlying algorithm used in the SLOPE and INTERCEPT functions. The difference
between these algorithms can lead to different results when data is undetermined
and collinear
In addition to using LOGEST to calculate statistics for other regression types, you
can use LINEST to calculate a range of other regression types by entering functions
of the x and y variables as the x and y series for LINEST. For example, the following
formula:
Works when you have a single column of y-values and a single column of x-values
to calculate the cubic (polynomial of order 3) approximation of the form:
You can adjust this formula to calculate other types of regression, but in some
cases it requires the adjustment of the output values and other statistics.
The F-test value that is returned by the LINEST Function differs from the F-test
value that is returned by the FTEST Function. LINEST returns the F statistic,
whereas FTEST returns the probability.
If the array of known_x's is not the same length as the array of known_y's, LINEST
returns the #REF! error value.
If any of the values in the supplied known_x's or known_y's arrays are not numeric
(this may include text representations of numbers, as the LINEST Function does
not recognize these as numbers), LINEST returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
720
Advanced Excel Functions
Example
721
384. LOGEST Function Advanced Excel Functions
Description
In regression analysis, calculates an exponential curve that fits your data and returns an
array of values that describes the curve. Since this function returns an array of values, it
must be entered as an array formula.
Syntax
LOGEST (known_y's, [known_x's], [const], [stats])
Arguments
Required
Argument Description
/Optional
The set of y-values you already know in the relationship y
= b*m^x.
If the array known_y's is in a single column, then each
Known_y's Required
column of known_x's is interpreted as a separate variable.
If the array known_y's is in a single row, then each row of
known_x's is interpreted as a separate variable.
An optional set of x-values that you may already know in
the relationship y = b*m^x.
The array known_x's can include one or more sets of
variables. If only one variable is used, known_y's and
known_x's can be ranges of any shape, as long as they
Known_x's have equal dimensions. If more than one variable is used, Optional
known_y's must be a range of cells with a height of one
row or a width of one column (which is also known as a
vector).
If known_x's is omitted, it is assumed to be the array
{1,2,3,...} that is the same size as known_y's.
A logical value specifying whether to force the constant b
to equal 1.
Const If const is TRUE or omitted, b is calculated normally. Optional
If const is FALSE, b is set equal to 1, and the m-values are
fitted to y = m^x.
A logical value specifying whether to return additional
regression statistics.
If stats is TRUE, LOGEST returns the additional regression
statistics, so the returned array is {mn,mn-
1,...,m1,b;sen,sen-1,...,se1,seb;r 2,sey;
Stats Optional
F,df;ssreg,ssresid}.
If stats is FALSE or omitted, LOGEST returns only the m-
coefficients and the constant b.
For more information about additional regression
statistics, refer the LINEST Function.
722
Advanced Excel Functions
Notes
y = b*m^x
or
y = (b*(m1^x1)*(m2^x2)*_)
If there are multiple x-values, where the dependent y-value is a function of the
independent x-values. The m-values are bases corresponding to each exponent x-
value, and b is a constant value. Note that y, x, and m can be vectors.
The more a plot of your data resembles an exponential curve, the better the
calculated line will fit your data. Both LINEST and LOGEST return an array of values
that describes a relationship among the values, but LINEST fits a straight line to
your data, whereas LOGEST fits an exponential curve.
When you have only one independent x-variable, you can obtain y-intercept (b)
values directly by using the following formula-
You can use the y = b*m^x equation to predict future values of y, but the GROWTH
Function does the same.
You should note that the y-values predicted by the regression equation may not be
valid if they are outside the range of y-values you used to determine the equation.
If the array of known_x's is not the same length as the array of known_y's, LOGEST
returns the #REF! error value.
If any of the values in the supplied known_x's or known_y's arrays are not numeric
(this may include text representations of numbers, as the LOGEST Function does
not recognize these as numbers), LOGEST returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
723
Advanced Excel Functions
Example
724
385. LOGNORM.DIST Function Advanced Excel Functions
Description
The LOGNORM.DIST function returns the lognormal distribution of x, where ln(x) is
normally distributed with parameters Mean and Standard_dev. Use this function to analyze
data that has been logarithmically transformed.
Syntax
LOGNORM.DIST(x,mean,standard_dev,cumulative)
Arguments
Required
Argument Description
/Optional
X The value at which to evaluate the function. Required
Mean The mean of ln(x). Required
Standard_dev The standard deviation of ln(x). Required
A logical value that determines the form of the
function.
If cumulative is TRUE, LOGNORM.DIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, LOGNORM.DIST returns the
probability density function.
Notes
The equation for the lognormal cumulative distribution function is-
LOGNORM.DIST(x,µ,o) = NORM.S.DIST(1n(x)-µ / o)
Applicability
Excel 2010, Excel 2013, Excel 2016
725
Advanced Excel Functions
Example
726
386. LOGNORM.INV Function Advanced Excel Functions
Description
The LOGNORM.INV function returns the inverse of the lognormal cumulative distribution
function of x, where ln(x) is normally distributed with parameters Mean and Standard_dev.
Syntax
LOGNORM.INV (probability, mean, standard_dev)
Arguments
Required
Argument Description
/Optional
A probability associated with the lognormal
Probability Required
distribution.
Mean The mean of ln(x). Required
Standard_dev The standard deviation of ln(x). Required
Notes
If any argument is nonnumeric, LOGNORM.INV returns the #VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
727
387. MAX Function Advanced Excel Functions
Description
The MAX function returns the largest value in a set of values.
Syntax
MAX (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 numbers for which you want to find the Required
Notes
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 any values that are supplied directly to the MAX Function are non-numeric, MAX
returns the #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
728
Advanced Excel Functions
Example
729
388. MAXA Function Advanced Excel Functions
Description
The MAXA function returns the largest value in a list of arguments.
Syntax
MAXA (value1, [value2]...)
Arguments
Required
Argument Description
/Optional
The first number argument for which you want to find the
Value1 Required
largest value.
Number arguments 2 to 255 for which you want to find
Value2... Optional
the largest value.
Notes
Arguments can be the following-
o Numbers
o names, arrays, or references that contain numbers
o text representations of numbers
o logical values, such as TRUE and FALSE, in 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 text or FALSE
evaluate as 0 (zero).
If any values that are supplied directly to the MAXA Function are non-numeric,
MAXA returns #VALUE! Error.
If you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the MAX function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
730
Advanced Excel Functions
Example
731
389. MAXIFS Function Advanced Excel Functions
Description
The MAXIFS function returns the maximum value among cells specified by a given set of
conditions or criteria. This Function got added in Excel 2016.
Syntax
MAXIFS (max_range, criteria_range1, criteria1, [criteria_range2, criteria2],
...)
Arguments
Required
Argument Description
/Optional
The actual range of cells in which the maximum will be
max_range Required
determined.
criteria_range1 Is the set of cells to evaluate with the criteria. Required
Notes
The size and shape of the max_range and criteria_rangeN arguments must be the same,
otherwise these functions return the #VALUE! Error.
Applicability
Excel 2016
732
Advanced Excel Functions
Example
733
390. MEDIAN Function Advanced Excel Functions
Description
The MEDIAN function returns the median of the given numbers. The median is the number
in the middle of a set of numbers.
Syntax
MEDIAN (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 required
1 to 255 numbers for which you want the median.
number2, ... optional
Notes
The MEDIAN function measures central tendency, which is the location of the center
of a group of numbers in a statistical distribution.
If there is an even number of numbers in the set, then MEDIAN calculates the
average of the two numbers in the middle.
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
cause errors.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
734
Advanced Excel Functions
Example
735
391. MIN Function Advanced Excel Functions
Description
The MIN function returns the smallest number in a set of values.
Syntax
MIN (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 numbers for which you want to find the Required
number2, ... minimum value. Optional
Notes
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 any values that are supplied directly to the Function are non-numeric, MIN
returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
736
Advanced Excel Functions
Example
737
392. MINA Function Advanced Excel Functions
Description
The MINA fuction returns the smallest value in the list of arguments.
Syntax
MINA (value1, [value2] ...)
Arguments
Argument Description Required /Optional
Value1 is required,
Value1, value2, 1 to 255 values for which you want to find
subsequent values are
... the smallest value.
optional
Notes
Arguments can be the following-
o Numbers
o names, arrays, or references that contain numbers
o text representations of numbers
o logical values, such as TRUE and FALSE, in 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 array or reference are ignored.
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 you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the MIN function.
If any values that are supplied directly to the Mina function are non-numeric, MINA
returns #VALUE! Error.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
738
Advanced Excel Functions
Example
739
393. MINIFS Function Advanced Excel Functions
Description
The MINIFS function returns the minimum value among cells specified by a given set of
conditions or criteria. This function was added in Excel 2016.
Syntax
MINIFS (min_range, criteria_range1, criteria1, [criteria_range2, criteria2],
...)
Arguments
Required
Argument Description
/Optional
The actual range of cells in which the minimum will be
min_range Required
determined.
criteria_range1 Is the set of cells to evaluate with the criteria. Required
Is the criteria in the form of a number, expression, or
text that defines which cells will be evaluated as
criteria1 minimum. Required
The same set of criteria works for the MAXIFS, SUMIFS,
and AVERAGEIFS Functions.
criteria_range2, Additional ranges and their associated criteria. You can
Optional
criteria2, ... enter up to 126 range/criteria pairs.
Notes
The size and shape of the min_range and criteria_rangeN arguments must be the same,
otherwise these functions return the #VALUE! Error.
Applicability
Excel 2016
740
Advanced Excel Functions
Example
741
394. MODE.MULT Function Advanced Excel Functions
Description
The MODE.MULT function returns a vertical array of the most frequently occurring, or
repetitive values in an array or range of data. For horizontal arrays, use TRANSPOSE
(MODE.MULT (number1, number2...)). This will return more than one result if there are
multiple modes. Since this function returns an array of values, it must be entered as an
array formula.
Syntax
MODE.MULT ((number1, [number2]...)
Arguments
Required
Argument Description
/Optional
The first number argument for which you want to
Number1 Required
calculate the mode.
Number arguments 2 to 254 for which you want to
calculate the mode.
Number2, ... Optional
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Notes
Arguments can either be numbers or names, arrays, or references that contain
numbers.
If a value that is supplied directly to the function (i.e. not part of an array of
supplied values) is non-numeric, MODE.MULT returns the #VALUE! error value.
If the data set contains no duplicate data points, and hence there is no mode,
MODE.MULT returns the #N/A error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
742
Advanced Excel Functions
Example
743
395. MODE.SNGL Function Advanced Excel Functions
Description
The MODE.SNGL function returns the most frequently occurring, or repetitive, value in an
array or range of data.
Syntax
MODE.SNGL (number1, [number2]...)
Arguments
Required
Argument Description
/Optional
The first argument for which you want to calculate
Number1 Required
the mode.
Arguments 2 to 254 for which you want to calculate
the mode.
Number2, ... Optional
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Notes
The MODE.SNGL function measures central tendency, which is the location of the
center of a group of numbers in a statistical distribution.
If a value that is supplied directly to the Function (i.e. not part of an array of
supplied values) is non-numeric, MODE.SNGL returns the #VALUE! Value.
If the data set contains no duplicate data points, MODE.SNGL returns the #N/A
error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
744
Advanced Excel Functions
Example
745
396. NEGBINOM.DIST Function Advanced Excel Functions
Description
The NEGBINOM.DIST function returns the negative binomial distribution, the probability
that there will be Number_f failures before the Number_s-th success, with Probability_s
probability of a success.
This function is similar to the binomial distribution, except that the number of successes
is fixed, and the number of trials is variable. Like the binomial, trials are assumed to be
independent.
Syntax
NEGBINOM.DIST (number_f,number_s,probability_s,cumulative)
Arguments
Required
Argument Description
/Optional
Number_f The number of failures. Required
Number_s The threshold number of successes. Required
Probability_s The probability of a success. Required
A logical value that determines the form of the
function.
If cumulative is TRUE, NEGBINOM.DIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, NEGBINOM.DIST returns the
probability density function.
Notes
The equation for the negative binomial distribution is-
Where:
x is number_f, r is number_s, and p is probability_s.
746
Advanced Excel Functions
If number_f < 0 or number_s < 1, NEGBINOM.DIST returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
747
397. NORM.DIST Function Advanced Excel Functions
Description
The NORM.DIST function returns the normal distribution for the specified mean and
standard deviation. This function has a very wide range of applications in statistics,
including hypothesis testing.
Syntax
NORM.DIST(x,mean,standard_dev,cumulative)
Arguments
Required
Argument Description
/Optional
X The value for which you want the distribution. Required
Mean The arithmetic mean of the distribution. Required
Standard_dev The standard deviation of the distribution. Required
A logical value that determines the form of the
function.
If cumulative is TRUE, NORM.DIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, NORM.DIST returns the
probability mass function.
Notes
The equation for the normal density function (cumulative = FALSE) is-
When cumulative = TRUE, the formula is the integral from negative infinity to x of
the given formula.
Applicability
Excel 2010, Excel 2013, Excel 2016
748
Advanced Excel Functions
Example
749
398. NORM.INV Function Advanced Excel Functions
Description
The NORM.INV function returns the inverse of the normal cumulative distribution for the
specified mean and standard deviation.
Syntax
NORM.INV (probability,mean,standard_dev)
Arguments
Required
Argument Description
/Optional
Probability A probability corresponding to the normal distribution. Required
Mean The arithmetic mean of the distribution. Required
Standard_dev The standard deviation of the distribution. Required
Notes
If any argument is nonnumeric, NORM.INV returns the #VALUE! error value.
If probability < 0 or if probability > 1, NORM.INV returns the #NUM! error value.
Given a value for probability, NORM.INV seeks that value x such that NORM.DIST(x,
mean, standard_dev, TRUE) = probability. Thus, precision of NORM.INV depends
on precision of NORM.DIST
Applicability
Excel 2010, Excel 2013, Excel 2016
750
Advanced Excel Functions
Example
751
399. NORM.S.DIST Function Advanced Excel Functions
Description
The NORM.S.DIST function returns the standard normal distribution (has a mean of zero
and a standard deviation of one). Use this function in place of a table of standard normal
curve areas.
Syntax
NORM.S.DIST (z,cumulative)
Arguments
Required
Argument Description
/Optional
Z The value for which you want the distribution. Required
Cumulative is a logical value that determines the
form of the function.
If cumulative is TRUE, NORMS.DIST returns the
Cumulative Required
cumulative distribution function.
If cumulative is FALSE, NORMS.DIST returns the
probability mass function.
Notes
The equation for the standard normal density function is-
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
752
400. NORM.S.INV Function Advanced Excel Functions
Description
The NORMS.S.INV function returns the inverse of the standard normal cumulative
distribution. The distribution has a mean of zero and a standard deviation of one.
Syntax
NORM.S.INV (probability)
Arguments
Argument Description Required /Optional
A probability corresponding to the normal
Probability Required
distribution.
Notes
If probability is nonnumeric, NORMS.INV returns the #VALUE! error value.
Given a value for probability, NORM.S.INV seeks that value z such that
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
753
401. PEARSON Function Advanced Excel Functions
Description
The PEARSON function returns the Pearson product moment correlation coefficient, r, a
dimensionless index that ranges from -1.0 to 1.0 inclusive and reflects the extent of a
linear relationship between two data sets.
Syntax
PEARSON (array1, array2)
Arguments
Argument Description Required
/Optional
Array1 A set of independent values. Required
Array2 A set of dependent values. Required
Notes
The formula for the Pearson product moment correlation coefficient, r, is-
Where x and y are the sample means AVERAGE (array1) and AVERAGE (array2).
If array1 and array2 have a different number of data points, PEARSON returns the
#N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
754
Advanced Excel Functions
Example
755
402. PERCENTILE.EXC Function Advanced Excel Functions
Description
The PERCENTILE.EXC function returns the k-th percentile of values in a range, where k is
in the range 0...1, exclusive.
Syntax
PERCENTILE.EXC (array,k)
Arguments
Required
Argument Description
/Optional
Array The array or range of data that defines relative standing. Required
Notes
If k is not a multiple of 1/(n - 1), PERCENTILE.EXC interpolates to determine the
value at the k-th percentile.
PERCENTILE.EXC will interpolate when the value for the specified percentile lies
between two values in the array. If it cannot interpolate for the percentile, k
specified, Excel will return #NUM! error.
Applicability
Excel 2010, Excel 2013, Excel 2016
756
Advanced Excel Functions
Example
757
403. PERCENTILE.INC Function Advanced Excel Functions
Description
The PERCENTILE.INC function returns the k-th percentile of values in a range, where k is
in the range 0...1, inclusive. You can use this function to establish a threshold of
acceptance.
Syntax
PERCENTILE.INC (array,k)
Arguments
Required
Argument Description
/Optional
The array or range of data that defines relative
Array Required
standing.
K The percentile value in the range 0..1, inclusive. Required
Notes
If k is not a multiple of 1/(n - 1), PERCENTILE.INC interpolates to determine the
value at the k-th percentile.
Applicability
Excel 2010, Excel 2013, Excel 2016
758
Advanced Excel Functions
Example
759
404. PERCENTRANK.EXC Function Advanced Excel Functions
Description
The PERCENTRANK.EXC function returns the rank of a value in a data set as a percentage
(0...1, exclusive) of the data set.
Syntax
PERCENTRANK.EXC (array,x,[significance])
Arguments
Required
Argument Description
/Optional
The array or range of data with numeric values that
Array Required
defines relative standing.
X The value for which you want to know the rank. Required
A value that identifies the number of significant digits for
Significance the returned percentage value. Optional
If omitted, PERCENTRANK.EXC uses three digits (0.xxx).
Notes
If x does not match one of the values in array, PERCENTRANK.EXC interpolates to
return the correct percentage rank.
If x is smaller than the minimum, or greater than the maximum value in the
supplied array, PERCENTRANK.EXC returns the #N/A error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
760
Advanced Excel Functions
Example
761
405. PERCENTRANK.INC Function Advanced Excel Functions
Description
The PERCENTRANK.INC function returns the rank of a value in a data set as a percentage
(0..1, inclusive) of the data set. This function can be used to evaluate the relative standing
of a value within a data set.
Syntax
PERCENTRANK.INC (array,x,[significance])
Arguments
Required
Argument Description
/Optional
The array or range of data with numeric values that
Array Required
defines relative standing.
X The value for which you want to know the rank. Required
A value that identifies the number of significant digits
for the returned percentage value.
Significance Optional
If omitted, PERCENTRANK.INC uses three digits
(0.xxx).
Notes
If x does not match one of the values in array, PERCENTRANK.INC interpolates to
return the correct percentage rank.
If the supplied x is smaller than the minimum, or greater than the maximum value
in the supplied array, PERCENTRANK.INC returns the #N/A error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
762
Advanced Excel Functions
Example
763
406. PERMUT Function Advanced Excel Functions
Description
The PERMUT function returns the number of permutations for a given number of objects
that can be selected from number objects. A permutation is any set or subset of objects
or events where internal order is significant. Permutations are different from combinations,
for which the internal order is not significant.
Syntax
PERMUT (number, number_chosen)
Arguments
Required
Argument Description
/Optional
Number An integer that describes the number of objects. Required
An integer that describes the number of objects in
Number_chosen Required
each permutation.
Notes
The equation for the number of permutations is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
764
Advanced Excel Functions
Example
765
407. PERMUTATIONA Function Advanced Excel Functions
Description
The PERMUTATIONA function returns the number of permutations for a given number of
objects (with repetitions) that can be selected from the total objects.
Syntax
PERMUTATIONA (number, number-chosen)
Arguments
Required
Argument Description
/Optional
Notes
Both arguments are truncated to integers.
Applicability
Excel 2013, Excel 2016
766
Advanced Excel Functions
Example
767
408. PHI Function Advanced Excel Functions
Description
The PHI function returns the value of the density function for a standard normal
distribution.
Syntax
PHI(x)
Arguments
Required
Argument Description
/Optional
X is the number for which you want the density of the
X Required
standard normal distribution.
Notes
If x is a numeric value that is not valid, PHI returns the #NUM! error value.
If x is a nonnumeric value, PHI returns the #VALUE! error value.
Applicability
Excel 2013, Excel 2016
Example
768
409. POISSON.DIST Function Advanced Excel Functions
Description
The POISSON.DIST function returns the Poisson distribution. A common application of the
Poisson distribution is predicting the number of events over a specific time.
Syntax
POISSON.DIST(x,mean,cumulative)
Arguments
Required
Argument Description
/Optional
X The number of events. Required
Notes
POISSON.DIST is calculated as follows-
o For cumulative = FALSE,
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
769
Advanced Excel Functions
Example
770
410. PROB Function Advanced Excel Functions
Description
The PROB function returns the probability that values in a range are between two limits.
If upper_limit is not supplied, returns the probability that values in x_range are equal to
lower_limit.
Syntax
PROB (x_range, prob_range, [lower_limit], [upper_limit])
Arguments
Argument Description Required
/Optional
X_range The range of numeric values of x with which there are Required
associated probabilities.
Prob_range A set of probabilities associated with values in x_range. Required
Lower_limit The lower bound on the value for which you want a Optional
probability.
Upper_limit The optional upper bound on the value for which you Optional
want a probability.
Notes
If upper_limit is omitted, PROB returns the probability of being equal to lower_limit.
If any value in prob_range ≤ 0 or if any value in prob_range > 1, PROB returns the
#NUM! error value.
If the sum of the values in prob_range is not equal to 1, PROB returns the #NUM!
error value.
If x_range and prob_range contain different number of data points, PROB returns
the #N/A error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
771
Advanced Excel Functions
Example
772
411. QUARTILE.EXC Function Advanced Excel Functions
Description
The QUARTILE.EXC function returns the quartile of the data set, based on percentile values
from 0...1, exclusive.
Syntax
QUARTILE.EXC (array, quart)
Arguments
Required
Argument Description
/Optional
The array or cell range of numeric values for which you
Array Required
want the quartile value.
Quart Indicates which value to return. Required
Notes
If quart is not an integer, it is truncated.
MIN, MEDIAN, and MAX return the same value as QUARTILE.EXC when quart is
equal to 0 (zero), 2, and 4, respectively.
Applicability
Excel 2010, Excel 2013, Excel 2016
773
Advanced Excel Functions
Example
774
412. QUARTILE.INC Function Advanced Excel Functions
Description
The QUARTILE.INC function returns the quartile of a data set, based on percentile values
from 0...1, inclusive.
Syntax
QUARTILE.INC (array,quart)
Arguments
Required
Argument Description
/Optional
The array or cell range of numeric values for which
Array Required
you want the quartile value.
Quart Indicates which value to return Required
Notes
If quart is not an integer, it is truncated.
MIN, MEDIAN, and MAX return the same value as QUARTILE.INC when quart is
equal to 0 (zero), 2, and 4, respectively.
If quart < 0 or if quart > 4, QUARTILE.INC returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
775
Advanced Excel Functions
Example
776
413. RANK.AVG Function Advanced Excel Functions
Description
The RANK.AVG function returns the statistical rank of a given value, within a supplied
array of values. If there are duplicate values in the list, the average rank is returned.
Syntax
RANK.AVG (number,ref,[order])
Arguments
Required
Argument Description
/Optional
Number The number whose rank you want to find. Required
An array of, or a reference to, a list of numbers.
Ref Required
Nonnumeric values in Ref are ignored.
Order A number specifying how to rank number. Optional
Notes
If Order is 0 (zero) or omitted, Excel ranks number as if ref were a list sorted in
descending order.
If Order is any nonzero value, Excel ranks number as if ref were a list sorted in
ascending order.
If the supplied number is not present within the supplied ref, RANK.AVG returns the
#N/A error value.
If the values in the supplied ref array are text values, RANK.AVG returns the #N/A
error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
777
Advanced Excel Functions
Example
778
414. RANK.EQ Function Advanced Excel Functions
Description
The RANK.EQ function returns the statistical rank of a given value, within a supplied array
of values. If there are duplicate values in the list, these are given the same rank. If you
sort the list, the rank of the number would be its position.
Syntax
RANK.EQ (number,ref,[order])
Arguments
Argument Description Required /Optional
Number The number whose rank you want to find. Required
An array of, or a reference to, a list of numbers.
Ref Required
Non-numeric values in Ref are ignored.
Order A number specifying how to rank number. Optional
Notes
If Order is 0 (zero) or omitted, Excel ranks Number as if Ref were a list sorted in
descending order.
If Order is any nonzero value, Excel ranks Number as if Ref were a list sorted in
ascending order.
RANK.EQ gives duplicate numbers the same rank. However, the presence of
duplicate numbers affects the ranks of subsequent numbers.
For some purposes one might want to use a definition of rank that takes ties into
account. This can be done by adding the following correction factor to the value
returned by RANK.EQ
Correction factor for tied ranks =
This correction factor is appropriate both for the case where rank is computed in
descending order (order = 0 or omitted) or ascending order (order = nonzero value)
If the supplied number is not present within the supplied ref, RANK.EQ returns
#N/A error.
If the values in the supplied ref array are text values, RANK.EQ returns #N/A error.
779
Advanced Excel Functions
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
780
415. RSQ Function Advanced Excel Functions
Description
The RSQ function returns the square of the Pearson product moment correlation coefficient
through data points in known_y's and known_x's.
Syntax
RSQ (known_y's,known_x's)
Arguments
Argument Description Required /Optional
Notes
The equation for the Pearson product moment correlation coefficient, r, is-
Where x and y are the sample means AVERAGE (known_x’s) and AVERAGE
(known_y’s).
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
cause errors.
If known_y's and known_x's are empty or have a different number of data points,
RSQ returns the #N/A error value.
781
Advanced Excel Functions
If one or both of the supplied arrays contain only 1 data point, RSQ returns the
#DIV/0! error value.
If the standard deviation of their values in one or both of the supplied arrays is
equal to zero, RSQ returns the #DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
782
416. SKEW Function Advanced Excel Functions
Description
The SKEW function returns the skewness of a distribution.
Syntax
SKEW (number1, [number2] ...)
Arguments
Required
Argument Description
/Optional
Number1 1 to 255 arguments for which you want to calculate required
skewness.
number2, ... You can also use a single array or a reference to an optional
array instead of arguments separated by commas.
Notes
The equation for skewness is defined as-
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
cause errors.
If there are fewer than three data points, or the sample standard deviation is zero,
SKEW returns the #DIV/0! error value.
783
Advanced Excel Functions
If any of the number arguments that are supplied directly to the function are not
recognized as numeric values, Skew returns the #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
784
417. SKEW.P Function Advanced Excel Functions
Description
The SKEW.P function returns the skewness of a distribution based on a population: a
characterization of the degree of asymmetry of a distribution around its mean.
Syntax
SKEW.P (number 1, [number 2]…)
Arguments
Argument Description Required
/Optional
Number 1 Number 1, number 2… are 1 to 254 numbers or Required
Number 2… names, arrays, or reference that contain numbers for Optional
which you want the population skewness.
Notes
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 arguments are values that are not valid, SKEW.P returns the #NUM! error value.
If arguments use data types that are not valid, SKEW.P returns the #VALUE! error
value.
If there are fewer than three data points, or the sample standard deviation is zero,
SKEW.P returns the #DIV/0! Error value.
785
Advanced Excel Functions
Applicability
Excel 2013, Excel 2016
Example
786
418. SLOPE Function Advanced Excel Functions
Description
The SLOPE function returns the slope of the linear regression line through data points in
known_y's and known_x's. The slope is the vertical distance divided by the horizontal
distance between any two points on the line, which is the rate of change along the
regression line.
Syntax
SLOPE (known_y's, known_x's)
Arguments
Argument Description Required
/Optional
Known_y's An array or cell range of numeric dependent data Required
points.
Known_x's The set of independent data points. Required
Notes
The equation for the slope of the regression line is-
Where x and y are the sample means AVERAGE (known_x’s) and AVERAGE
(known_y’s).The arguments must be either numbers or names, arrays, or
references that contain numbers.
If known_y's and known_x's have a different number of data points, SLOPE returns
the #N/A error value.
If known_y's and known_x's are empty, SLOPE returns the #DIV/0! error value.
If the variance of the supplied known_x's evaluates to zero, SLOPE returns the
#DIV/0! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
787
Advanced Excel Functions
Example
788
419. SMALL Function Advanced Excel Functions
Description
The SMALL function returns the k-th smallest value in a data set. Use this function to
return values with a particular relative standing in a data set.
Syntax
SMALL (array, k)
Arguments
Argument Description Required
/Optional
Array An array or range of numerical data for which you Required
want to determine the k-th smallest value.
K The position (from the smallest) in the array or range Required
of data to return.
Notes
If n is the number of data points in array, SMALL(array,1) equals the smallest
value, and SMALL(array,n) equals the largest value.
If k ≤ 0 or if k exceeds the number of data points, SMALL returns the #NUM! error
value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
789
Advanced Excel Functions
Example
790
420. STANDARDIZE Function Advanced Excel Functions
Description
The STANDARDIZE function returns a normalized value from a distribution characterized
by mean and standard_dev.
Syntax
STANDARDIZE(x, mean, standard_dev)
Arguments
Argument Description Required
/Optional
X The value you want to normalize. Required
Mean The arithmetic mean of the distribution. Required
Standard_dev The standard deviation of the distribution. Required
Notes
The equation for the normalized value is-
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
791
421. STDEV.P Function Advanced Excel Functions
Description
The STDEV.P function calculates standard deviation based on the entire population given
as arguments (ignores logical values and text).
Syntax
STDEV.P (number1, [number2]...)
Arguments
Required
Argument Description
/Optional
The first number argument corresponding to a
Number1 Required
population.
Number arguments 2 to 254 corresponding to a
population.
Number2 ... Optional
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Notes
STDEV.P uses the following formula-
Where x is the sample mean AVERAGE (number1, number2…) and n is the sample
size.
STDEV.P assumes that its arguments are the entire population. If your data
represents a sample of the population, then compute the standard deviation using
STDEV
For large sample sizes, STDEV.S and STDEV.P return approximately equal values.
Logical values, and text representations of numbers that you type directly into the
list of arguments are counted.
792
Advanced Excel Functions
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If none of the values that are supplied to the function are numeric, STDEV.P returns
the #DIV/0! Error.
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, STDEV.P returns the #VALUE! Error.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
793
422. STDEV.S Function Advanced Excel Functions
Description
The STDEV.S function estimates standard deviation based on a sample (ignores logical
values and text in the sample).
Syntax
STDEV.S (number1,[number2],...)
Arguments
Required
Argument Description
/Optional
The first number argument corresponding to a
sample of a population.
Number1 Required
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Number arguments 2 to 254 corresponding to a
sample of a population.
Number2, ... Optional
You can also use a single array or a reference to an
array instead of arguments separated by commas.
Notes
STDEV.S uses the following formula-
STDEV.S assumes that its arguments are a sample of the population. If your data
represents the entire population, then compute the standard deviation using
STDEV.P
Logical values and text representations of numbers that you type directly into the
list of arguments are counted.
794
Advanced Excel Functions
Arguments that are error values or text that cannot be translated into numbers
cause errors.
If fewer than two numeric values are supplied to the Function, STDEVA returns the
#DIV/0! Error.
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, STDEV.S returns the #DIV/0! Error.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
795
423. STDEVA Function Advanced Excel Functions
Description
The STDEVA function estimates standard deviation based on a sample. The standard
deviation is a measure of how widely values are dispersed from the average value (the
mean).
Syntax
STDEVA (value1, [value2] ...)
Arguments
Required
Argument Description
/Optional
Value1 1 to 255 values corresponding to a sample of a Required
population.
value2, ... You can also use a single array or a reference to an Optional
array instead of arguments separated by commas.
Notes
STDEVA uses the following formula-
Where is the sample mean AVERAGE (value1, value2…) and n is the sample
size.
STDEVA assumes that its arguments are a sample of the population. If your data
represents the entire population, you must compute the standard deviation using
STDEVPA
Arguments that contain TRUE evaluate as 1. Arguments that contain text or FALSE
evaluate as 0 (zero)
796
Advanced Excel Functions
If fewer than two numeric values are supplied to the Function, STDEVA returns the
#DIV/0! Error value.
If any values that are supplied directly to the function are text values that cannot
be interpreted as numeric values, STDEVA returns the #VALUE! Error value.
If you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the STDEV function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
797
424. STDEVPA Function Advanced Excel Functions
Description
The STDEVPA function calculates standard deviation based on the entire population given
as arguments, including text and logical values.
Syntax
STDEVPA (value1, [value2] ...)
Arguments
Required
Argument Description
/Optional
Value1 1 to 255 values corresponding to a population. required
You can also use a single array or a reference to an
value2, ... optional
array instead of arguments separated by commas.
Notes
STDEVPA uses the following formula-
Where x is the sample mean AVERAGE (value1, value2…) and n is the sample size.
STDEVPA assumes that its arguments are the entire population. If your data
represents a sample of the population, you must compute the standard deviation
by using STDEVA
For large sample sizes, STDEVA and STDEVPA return approximately equal values.
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 text or FALSE
evaluate as 0 (zero).
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, use the STDEVP function.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
799
425. STEYX Function Advanced Excel Functions
Description
The STEYX function returns the standard error of the predicted y-value for each x in the
regression. The standard error is a measure of the amount of error in the prediction of y
for an individual x.
Syntax
STEYX (known_y's, known_x's)
Arguments
Argument Description Required
/Optional
Known_y's An array or range of dependent data points. Required
Known_x's An array or range of independent data points. Required
Notes
The equation for the standard error of the predicted y is-
Where x and y are the sample means AVERAGE (known_x’s) and AVERAGE
(known_y’s), and n is the sample size.
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
cause errors.
If known_y's and known_x's have a different number of data points, STEYX returns
the #N/A error value.
If known_y's and known_x's are empty or have less than three data points, STEYX
returns the #DIV/0! error value.
800
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
801
426. T.DIST.2T Function Advanced Excel Functions
Description
The T.DIST.2T function returns the two-tailed Student's t-distribution. The Student's t-
distribution is used in the hypothesis testing of small sample data sets. Use this Function
in place of a table of critical values for the t-distribution.
Syntax
T.DIST.2T(x,deg_freedom)
Arguments
Argument Description Required
/Optional
X The numeric value at which to evaluate the distribution. Required
Deg_freedom An integer indicating the number of degrees of freedom. Required
Notes
If any argument is nonnumeric, T.DIST.2T returns the #VALUE! error value.
If deg_freedom < 1, T.DIST.2T returns the #NUM! error value.
If x < 0, then T.DIST.2T returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
802
427. T.DIST Function Advanced Excel Functions
Description
The T.DIST function returns the Student's left-tailed t-distribution. The t-distribution is
used in the hypothesis testing of small sample data sets. Use this function in place of a
table of critical values for the t-distribution.
Syntax
T.DIST(x,deg_freedom, cumulative)
Arguments
Required
Argument Description
/Optional
X The numeric value at which to evaluate the distribution. Required
Notes
If cumulative is TRUE and degrees_freedom < 1, T.DIST returns #NUM! value.
If cumulative is FALSE and degrees_freedom < 0, T.DIST returns #NUM! value.
If cumulative is FALSE and degrees_freedom = 0, T.DIST returns #DIV/0! Value.
If any argument is nonnumeric, T.DIST returns the #VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
803
Advanced Excel Functions
Example
804
428. T.DIST.RT Function Advanced Excel Functions
Description
The T.DIST.RT function returns the right-tailed Student's t-distribution. The t-distribution
is used in the hypothesis testing of small sample data sets. Use this function in place of a
table of critical values for the t-distribution.
Syntax
T.DIST.RT(x,deg_freedom)
Arguments
Argument Description Required
/Optional
X The numeric value at which to evaluate the distribution. Required
Deg_freedom An integer indicating the number of degrees of freedom. Required
Notes
If any argument is nonnumeric, T.DIST.RT returns the #VALUE! error value.
If deg_freedom < 1, T.DIST.RT returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
805
429. T.INV.2T Function Advanced Excel Functions
Description
The T.INV.2T function returns the two-tailed inverse of the Student's t-distribution.
Syntax
T.INV.2T (probability,deg_freedom)
Arguments
Argument Description Required
/Optional
Probability The probability associated with the Student's t- Required
distribution.
Deg_freedom An integer indicating the number of degrees of Required
freedom.
Notes
If either argument is nonnumeric, T.INV.2T returns the #VALUE! error value.
If probability <= 0 or if probability > 1, T.INV.2T returns the #NUM! error value.
T.INV.2T returns that value t, such that P(|X| > t) = probability where X is a
random variable that follows the t-distribution and P(|X| > t) = P(X < -t or X > t)
Given a value for probability, T.INV.2T seeks that value x such that T.DIST.2T(x,
deg_freedom) = probability. Thus, precision of T.INV.2T depends on precision of
T.DIST.2T
Applicability
Excel 2010, Excel 2013, Excel 2016
806
Advanced Excel Functions
Example
807
430. T.INV Function Advanced Excel Functions
Description
The T.INV function returns the left-tailed inverse of the Student's t-distribution.
Syntax
T.INV (probability,deg_freedom)
Arguments
Required
Argument Description
/Optional
The probability associated with the Student's t-
Probability Required
distribution.
The number of degrees of freedom with which to
Deg_freedom Required
characterize the distribution.
Notes
If deg_freedom is not an integer, it is truncated.
If either argument is nonnumeric, T.INV returns the #VALUE! error value.
If probability <= 0 or if probability > 1, T.INV returns the #NUM! error value.
If deg_freedom < 1, T.INV returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
808
431. T.TEST Function Advanced Excel Functions
Description
The T.TEST function returns the probability associated with a Student's t-Test. Use T.TEST
to determine whether two samples are likely to have come from the same two underlying
populations that have the same mean.
Syntax
T.TEST (array1,array2,tails,type)
Arguments
Required
Argument Description
/Optional
Array1 The first data set. Required
Array2 The second data set. Required
Specifies the number of distribution tails.
Tails If tails = 1, T.TEST uses the one-tailed distribution. Required
If tails = 2, T.TEST uses the two-tailed distribution.
The kind of t-Test to perform.
Type Required
Look at the Type-Test Table given below.
Type-Test Table
Type Test Performed
1 Paired
2 Two-sample equal variance (homoscedastic)
3 Two-sample unequal variance (heteroscedastic)
Notes
T.TEST uses the data in array1 and array2 to compute a non-negative t-statistic
o If tails=1, T.TEST returns the probability of a higher value of the t-statistic
under the assumption that array1 and array2 are samples from populations
with the same mean.
o If tails=2, T.TEST returns the value that is double that returned when
tails=1 and corresponds to the probability of a higher absolute value of the
t-statistic under the “same population means” assumption.
The tails and type arguments are truncated to integers.
If array1 and array2 have a different number of data points, and type = 1 (paired),
T.TEST returns the #N/A error value.
809
Advanced Excel Functions
If tails is any value other than 1 or 2, T.TEST returns the #NUM! error value.
If type is any value other than 1, 2 or 3, T.TEST returns the #NUM! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
810
432. TREND Function Advanced Excel Functions
Description
The TREND function returns values along a linear trend. Fits a straight line (using the
method of least squares) to the arrays known_y's and known_x's. Returns the y-values
along that line for the array of new_x's that you specify.
Syntax
TREND (known_y's, [known_x's], [new_x's], [const])
Arguments
Required
Argument Description
/Optional
The set of y-values you already know in the relationship y
= mx + b.
If the array known_y's is in a single column, then each
Known_y's Required
column of known_x's is interpreted as a separate variable.
If the array known_y's is in a single row, then each row of
known_x's is interpreted as a separate variable.
811
Advanced Excel Functions
Required
Argument Description
/Optional
A logical value specifying whether to force the constant b
to equal 0.
Const If const is TRUE or omitted, b is calculated normally. Optional
If const is FALSE, b is set equal to 0 (zero), and the m-
values are adjusted so that y = mx.
Notes
Formulas that return arrays must be entered as array formulas.
You can use TREND for polynomial curve fitting by regressing against the same
variable raised to different powers.
When entering an array constant for an argument such as known_x's, use commas
to separate values in the same row and semicolons to separate rows.
If the known_x's array and the known_y's array are of different lengths, TREND
returns #REF! error value.
If any of the values in the supplied known_x's , known_y's or new_x's arrays are
non-numeric, TREND returns #VALUE! error value.
If the supplied const argument is not recognized as a logical value, TREND returns
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
812
433. TRIMMEAN Function Advanced Excel Functions
Description
The TRIMMEAN function returns the mean of the interior of a data set. TRIMMEAN
calculates the mean taken by excluding a percentage of data points from the top and
bottom tails of a data set. You can use this function when you wish to exclude outlying
data from your analysis.
Syntax
TRIMMEAN (array, percent)
Arguments
Required
Argument Description
/Optional
Array The array or range of values to trim and average. Required
The fractional number of data points to exclude from
Percent Required
the calculation.
Notes
TRIMMEAN rounds the number of excluded data points down to the nearest multiple
of 2. If percent = 0.1, 10 percent of 30 data points equals 3 points. For symmetry,
TRIMMEAN excludes a single value from the top and bottom of the data set.
If percent < 0 or percent > 1, TRIMMEAN returns the #NUM! error value.
If the supplied array is empty, TRIMMEAN returns the #NUM! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
813
Advanced Excel Functions
Example
814
434. VAR.P Function Advanced Excel Functions
Description
The VAR.P function calculates variance based on the entire population (ignores logical
values and text in the population).
Syntax
VAR.P (number1, [number2]...)
Arguments
Argument Description Required
/Optional
Number1 The first number argument corresponding to a Required
population.
Number2, ... Number arguments 2 to 254 corresponding to a Optional
population.
Notes
The equation for VAR.P is-
Where x is the sample mean AVERAGE (number1, number2…) and n is the sample
size.
VAR.P assumes that its arguments are the entire population. If your data
represents a sample of the population, then compute the variance by using VAR.S
Logical values, and text representations of numbers that you type directly into the
list of arguments are counted.
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, VAR.P returns the #VALUE! error value.
If none of the values that have been supplied to the function are numeric, VAR.P
returns the #DIV/0! error value.
815
Advanced Excel Functions
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
816
435. VAR.S Function Advanced Excel Functions
Description
Estimates variance based on a sample (ignores logical values and text in the sample).
Syntax
VAR.S (number1,[number2],...)
Arguments
Argument Description Required
/Optional
Number1 The first number argument corresponding to a Required
sample of a population.
Number2, ... Number arguments 2 to 254 corresponding to a Optional
sample of a population.
Notes
VAR.S uses the following formula-
VAR.S assumes that its arguments are a sample of the population. If your data
represents the entire population, then compute the variance by using VAR.P
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
cause errors.
817
Advanced Excel Functions
If fewer than 2 numeric values have been supplied to the Function, VAR.S returns
the #DIV/0! error value.
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, VAR.S returns the #VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
818
436. VARA Function Advanced Excel Functions
Description
The VARA function stimates variance based on a sample. In addition to numbers, text and
logical values such as TRUE and FALSE are included in the calculation.
Syntax
VARA (value1, [value2] ...)
Arguments
Required
Argument Description
/Optional
value1 Required
1 to 255 value arguments corresponding to a sample
value2, ... of a population. Optional
Notes
VARA uses the following formula-
Where x is the sample mean AVERAGE (value1,value2,…) and n is the sample size.
VARA assumes that its arguments are a sample of the population. If your data
represents the entire population, you must compute the variance by using VARPA.
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 text or FALSE
evaluate as 0 (zero).
Arguments that are error values or text that cannot be translated into numbers
cause errors.
819
Advanced Excel Functions
If you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the VAR function.
If fewer than 2 numeric values have been supplied to the Function, VARA returns
#DIV/0! error value.
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, VARA returns #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
820
437. VARPA Function Advanced Excel Functions
Description
The VARPA function calculates variance based on the entire population.
Syntax
VARPA (value1, [value2] ...)
Arguments
Argument Description Required
/Optional
Value1 1 to 255 value arguments corresponding to a Required
value2, ... population. Optional
Notes
The equation for VARPA is-
Where x is the sample mean AVERAGE (value1,value2,…) and n is the sample size.
VARPA assumes that its arguments are the entire population. If your data
represents a sample of the population, you must compute the variance by using
VARA.
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 text or FALSE
evaluate as 0 (zero).
If you do not want to include logical values and text representations of numbers in
a reference as part of the calculation, use the VARP function.
If none of the values that have been supplied to the function are numeric, VARPA
returns the #DIV/0! Error value.
821
Advanced Excel Functions
If any values that are supplied directly to the Function are text values that cannot
be interpreted as numeric values, VARPA returns the #VALUE! Error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
822
438. WEIBULL.DIST Function Advanced Excel Functions
Description
The WEBULL.DIST function returns the Weibull distribution. Use this distribution in
reliability analysis, such as calculating a device's mean time to failure.
Syntax
WEIBULL.DIST(x,alpha,beta,cumulative)
Arguments
Argument Description Required
/Optional
X The value at which to evaluate the function. Required
Alpha A parameter to the distribution. Required
Beta A parameter to the distribution. Required
Cumulative Determines the form of the function. Required
Notes
The equation for the Weibull cumulative distribution function is-
Applicability
Excel 2010, Excel 2013, Excel 2016
823
Advanced Excel Functions
Example
824
439. Z.TEST Function Advanced Excel Functions
Description
The Z.TEST function returns the one-tailed P-value of a z-test. For a given hypothesized
population mean, x, Z.TEST returns the probability that the sample mean would be greater
than the average of observations in the data set (array) i.e. the observed sample mean.
Syntax
Z.TEST (array,x,[sigma])
Arguments
Required
Argument Description
/Optional
Array The array or range of data against which to test x. Required
x The value to test Required
The population (known) standard deviation.
Sigma Optional
If omitted, the sample standard deviation is used.
Notes
Z.TEST is calculated as follows
o when sigma is not omitted:
Z.TEST( array,x,sigma ) = 1- Norm.S.Dist ((Average(array)- x) /
(sigma/√n),TRUE)
o when sigma is omitted:
Z.TEST( array,x ) = 1- Norm.S.Dist ((Average(array)- x) /
(STDEV(array)/√n),TRUE)
where x is the sample mean AVERAGE(array), and n is COUNT(array).
Z.TEST represents the probability that the sample mean would be greater than the
observed value AVERAGE(array), when the underlying population mean is μ0. From
the symmetry of the Normal distribution, if AVERAGE(array) < x, Z.TEST will return
a value greater than 0.5
You can calculate the two-tailed probability that the sample mean would be further
from x (in either direction) than AVERAGE(array), when the underlying population
mean is x:
=2 * MIN(Z.TEST(array,x,sigma), 1 - Z.TEST(array,x,sigma)).
If the supplied array is empty, Z.TEST returns the #N/A error value.
825
Advanced Excel Functions
If the sigma argument is supplied and is equal to zero, Z.TEST returns the #NUM!
error value.
If the sigma argument is not supplied and the standard deviation of the
supplied array is zero, Z.TEST returns the #DIV/0! error value.
If the supplied array contains just one value, Z.TEST returns the #DIV/0! error
value.
If either the supplied x or the supplied sigma is non-numeric, Z.TEST returns the
#VALUE! error value.
Applicability
Excel 2010, Excel 2013, Excel 2016
Example
826
440. BAHTTEXT Function Advanced Excel Functions
Description
The BAHTTEXT function converts a number to Thai text and adds a suffix of "Baht."
Syntax
BAHTTEXT (number)
Arguments
Required
Argument Description
/Optional
A number you want to convert to text, or a reference
Number to a cell containing a number, or a formula that Required
evaluates to a number.
Notes
You can change the Baht format to a different style in the Excel desktop application
by using Regional and Language Options in Control Panel of Windows.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
827
441. CHAR Function Advanced Excel Functions
Description
The CHAR function returns the character specified by a number. Use CHAR to translate
code page numbers you might get from files on other types of computers into characters.
Syntax
CHAR (number)
Arguments
Required
Argument Description
/Optional
A number between 1 and 255 specifying which
character you want.
Number Required
The character is from the ANSI character set for
Windows environment.
Notes
If number is not recognized as a numeric value or is a number outside of the permitted
range 1 to 255, CHAR returns #VALUE! Error value
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
828
442. CLEAN Function Advanced Excel Functions
Description
The CLEAN function removes all nonprintable characters from text. Use CLEAN on text
imported from other applications that contains characters that may not print with your
operating system.
Syntax
CLEAN (text)
Arguments
Argument Description Required
/Optional
Text Any worksheet information from which you want to Required
remove nonprintable characters.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
829
443. CODE Function Advanced Excel Functions
Description
The CODE function returns a numeric code for the first character in a text string. The
returned code corresponds to the ANSI character set for the Windows System.
Syntax
CODE (text)
Arguments
Argument Description Required
/Optional
Text The text for which you want the code of the first Required
character.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
830
444. CONCAT Function Advanced Excel Functions
Description
Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter
or IgnoreEmpty arguments. To include delimiters (such as spacing or ampersands (&)
between the texts you want to combine and to remove empty arguments you don't want
to appear in the combined text result, you can use the TEXTJOIN Function.
Syntax
CONCAT (text1, [text2] ...)
Arguments
Required
Argument Description
/Optional
Text item to be joined.
text1 Required
A string, or array of strings, such as a range of cells.
Notes
Use commas to separate adjoining text items.
Without designated spaces between separate text entries, the text entries will run
together. You can add extra spaces as part of the CONCATENATE formula in two
ways-
o Add double quotation marks with a space between them " "
o Add a space after the Text argument
If the resulting string exceeds 32767 characters (cell limit), CONCAT returns the
#VALUE! Error.
Applicability
Excel 2016
831
Advanced Excel Functions
Example
832
445. CONCATENATE Function Advanced Excel Functions
Description
The CONCATENATE function joins two or more text strings into one string. In Excel 2016,
CONCATENATE Function has been replaced with the CONCAT Function. The CONCATENATE
Function is still available for backward compatibility.
Syntax
CONCATENATE (text1, [text2] ...)
Arguments
Required
Argument Description
/Optional
The first item to join. The item can be a text value,
text1 Required
number, or cell reference.
Additional text items to join.
Text2, ... You can have up to 255 items, up to a total of 8,192 Optional
characters.
Notes
Use commas to separate adjoining text items.
Without designated spaces between separate text entries, the text entries will run
together. You can add extra spaces as part of the CONCATENATE formula in two
ways-
o Add double quotation marks with a space between them " "
o Add a space after the Text argument
If quotation marks are missing from a Text argument, CONCATENATE returns #NAME?
error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
833
Advanced Excel Functions
Example
834
446. DOLLAR Function Advanced Excel Functions
Description
The DOLLAR function converts a number to text format and applies a currency symbol.
The name of the Function and the symbol that it applies depend upon your language
settings.
Syntax
DOLLAR (number, [decimals])
Arguments
Required
Argument Description
/Optional
A number, a reference to a cell containing a number,
Number Required
or a formula that evaluates to a number.
The number of digits to the right of the decimal point.
If decimals is negative, number is rounded to the left
Decimals Optional
of the decimal point.
If you omit decimals, it is assumed to be 2.
Notes
The difference between formatting a cell with a ribbon command and using the
DOLLAR Function is that DOLLAR converts its result to text.
A number formatted with the Format Cells dialog box is still a number.
You can continue to use the results generated by DOLLAR in other formulas,
because Excel converts numbers entered as text to numbers while calculating.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
835
Advanced Excel Functions
Example
836
447. EXACT Function Advanced Excel Functions
Description
The EXACT function compares two text strings and returns TRUE if they are exactly the
same, FALSE otherwise.
Syntax
EXACT (text1, text2)
Arguments
Argument Description Required
/Optional
Text1 The first text string. Required
Text2 The second text string. Required
Notes
EXACT is case-sensitive but ignores formatting differences.
Use EXACT to test text being entered into a document.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
837
448. FIND Function Advanced Excel Functions
Description
FIND and FINDB locate one text string within a second text string, and return the number
of the starting position of the first text string from the first character of the second text
string.
FIND is intended for use with languages that use the single-byte character set (SBCS),
whereas FINDB is intended for use with languages that use the double-byte character set
(DBCS). The default language setting on your computer affects the return value as follows-
FINDB counts each double-byte character as 2 when you have enabled the editing
of a language that supports DBCS and then set it as the default language.
Otherwise, FINDB counts each character as 1
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
FIND (find_text, within_text, [start_num])
FINDB (find_text, within_text, [start_num])
Arguments
Required
Argument Description
/Optional
Find_text The text you want to find. Required
Within_text The text containing the text you want to find. Required
Specifies the character at which to start the search.
Start_num The first character in within_text is character number 1. Optional
If you omit start_num, it is assumed to be 1.
Notes
FIND and FINDB are case sensitive and don't allow wildcard characters. If you do
not want to do a case sensitive search or use wildcard characters, you can use
SEARCH and SEARCHB.
If find_text is "" (empty text), FIND matches the first character in the search string
(that is, the character numbered start_num or 1).
838
Advanced Excel Functions
Use start_num to skip a specified number of characters. FIND always returns the
number of characters from the start of within_text, counting the characters you
skip if start_num is greater than 1.
If find_text does not appear in within_text, FIND and FINDB return the #VALUE!
error value.
If start_num is not greater than zero, FIND and FINDB return the #VALUE! error
value.
If start_num is greater than the length of within_text, FIND and FINDB return the
#VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
839
449. FIXED Function Advanced Excel Functions
Description
The FIXED function rounds a number to the specified number of decimals, formats the
number in decimal format using a period and commas, and returns the result as text.
Syntax
FIXED (number, [decimals], [no_commas])
Arguments
Required
Argument Description
/Optional
Number The number you want to round and convert to text. Required
Decimals The number of digits to the right of the decimal point. Optional
Notes
Numbers in Microsoft Excel can never have more than 15 significant digits, but
decimals can be as large as 127.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
840
Advanced Excel Functions
Example
841
450. LEFT Function Advanced Excel Functions
Description
LEFT returns the first character or characters in a text string, based on the number of
characters you specify.
LEFTB returns the first character or characters in a text string, based on the number of
bytes you specify. It counts 2 bytes per character only when a DBCS language is set as
the default language. Otherwise LEFTB behaves the same as LEFT, counting 1 byte per
character.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
LEFT (text, [num_chars])
LEFTB (text, [num_bytes])
Arguments
Required
Argument Description
/Optional
The text string that contains the characters you want to
Text Required
extract.
Specifies the number of characters you want LEFT to
extract.
Num_chars must be greater than or equal to zero.
Num_chars Optional
If num_chars is greater than the length of text, LEFT
returns all of text.
If num_chars is omitted, it is assumed to be 0.
Specifies the number of characters you want LEFTB to
Num_bytes Optional
extract, based on bytes.
Notes
If num_chars is < 0, LEFT returns #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
842
Advanced Excel Functions
Example
843
451. LEN Function Advanced Excel Functions
Description
LEN returns the number of characters in a text string.
LENB returns the number of bytes used to represent the characters in a text string. It
counts 2 bytes per character only when a DBCS language is set as the default language.
Otherwise LENB behaves the same as LEN, counting 1 byte per character.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
LEN (text)
LENB (text)
Arguments
Required
Argument Description
/Optional
The text whose length you want to find. Spaces count
Text Required
as characters.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
844
452. LOWER Function Advanced Excel Functions
Description
The LOWER function converts all uppercase letters in a text string to lowercase.
Syntax
LOWER (text)
Arguments
Required
Argument Description
/Optional
The text you want to convert to lowercase.
Text LOWER does not change characters in text that are Required
not letters.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
845
453. MID Function Advanced Excel Functions
Description
MID returns a specific number of characters from a text string, starting at the position you
specify, based on the number of characters you specify.
MIDB returns a specific number of characters from a text string, starting at the position
you specify, based on the number of bytes you specify.
MID is intended for use with languages that use the single-byte character set (SBCS),
whereas MIDB is intended for use with languages that use the double-byte character set
(DBCS). The default language setting on your computer affects the return value as follows-
MIDB counts each double-byte character as 2 when you have enabled the editing
of a language that supports DBCS and then set it as the default language.
Otherwise, MIDB counts each character as 1.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
MID (text, start_num, num_chars)
MIDB (text, start_num, num_bytes)
Arguments
Required
Argument Description
/Optional
The text string containing the characters you want to
Text Required
extract.
The position of the first character you want to extract in
Start_num text. Required
The first character in text has start_num 1, and so on.
Specifies the number of characters you want MID to
Num_chars Required
return from text.
Specifies the number of characters you want MIDB to
Num_bytes Required
return from text, in bytes.
Notes
If start_num is greater than the length of text, MID returns "" (empty text).
If start_num is less than the length of text, but start_num plus num_chars exceeds
the length of text, MID returns the characters up to the end of text.
846
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
847
454. NUMBERVALUE Function Advanced Excel Functions
Description
The NUMBERVALUE function converts text to a number, in a locale-independent way.
Syntax
NUMBERVALUE (Text, [Decimal_separator], [Group_separator ])
Arguments
Required
Argument Description
/Optional
Text The text to convert to a number. Required
The character used to separate the integer and
Decimal_separator Optional
fractional part of the result.
The character used to separate groupings of
Group_separator numbers, such as thousands from hundreds and Optional
millions from thousands.
Notes
If the Decimal_separator and Group_separator arguments are not specified,
separators from the current locale are used.
Empty spaces in the Text argument are ignored, even in the middle of the
argument. For example, " 3 000 " is returned as 3000.
If a decimal separator is used more than once in the Text argument, NUMBERVALUE
returns the #VALUE! error value.
If the group separator occurs before the decimal separator in the Text argument ,
the group separator is ignored.
If the group separator occurs after the decimal separator in the Text argument,
NUMBERVALUE returns the #VALUE! error value.
If any of the arguments are not valid, NUMBERVALUE returns the #VALUE! error
value.
If the Text argument ends in one or more percent signs (%), they are used in the
calculation of the result. Multiple percent signs are additive if they are used in the
848
Advanced Excel Functions
Text argument just as they are if they are used in a formula. For example,
=NUMBERVALUE("9%%") returns the same result (0.0009) as the formula =9%%
Applicability
Excel 2013, Excel 2016
Example
849
455. PROPER Function Advanced Excel Functions
Description
The PROPER function capitalizes the first letter in a text string and any other letters in text
that follow any character other than a letter. Converts all other letters to lowercase letters.
Syntax
PROPER (text)
Arguments
Required
Argument Description
/Optional
Text enclosed in quotation marks, a formula that returns
Text text, or a reference to a cell containing the text you want Required
to partially capitalize.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
850
456. REPLACE Function Advanced Excel Functions
Description
The REPLACE function replaces part of a text string, based on the number of characters
you specify, with a different text string.
REPLACEB replaces part of a text string, based on the number of bytes you specify, with
a different text string.
REPLACE is intended for use with languages that use the single-byte character set (SBCS),
whereas REPLACEB is intended for use with languages that use the double-byte character
set (DBCS). The default language setting on your computer affects the return value as
follows-
REPLACEB counts each double-byte character as 2 when you have enabled the
editing of a language that supports DBCS and then set it as the default language.
Otherwise, REPLACEB counts each character as 1.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
REPLACE (old_text, start_num, num_chars, new_text)
REPLACEB (old_text, start_num, num_bytes, new_text)
Arguments
Required
Argument Description
/Optional
Old_text Text in which you want to replace some characters. Required
The position of the character in old_text that you want to
Start_num Required
replace with new_text.
The number of characters in old_text that you want
Num_chars Required
REPLACE to replace with new_text.
The number of bytes in old_text that you want REPLACEB
Num_bytes Required
to replace with new_text.
New_text The text that will replace characters in old_text. Required
Notes
If start_num or num_chars is negative or is non-numeric, REPLACE returns #VALUE! error
value.
851
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
852
457. REPT Function Advanced Excel Functions
Description
The REPT function repeats text a given number of times. Use REPT to fill a cell with a
number of instances of a text string.
Syntax
REPT (text, number_times)
Arguments
Required
Argument Description
/Optional
Text The text you want to repeat. Required
A positive number specifying the number of times to
Number_times Required
repeat text.
Notes
If number_times is 0 (zero), REPT returns "" (empty text).
The result of the REPT Function cannot be longer than 32,767 characters, or REPT
returns #VALUE! error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
853
458. RIGHT Function Advanced Excel Functions
Description
The RIGHT function returns the last character or characters in a text string, based on the
number of characters you specify.
RIGHTB returns the last character or characters in a text string, based on the number of
bytes you specify.
RIGHT is intended for use with languages that use the single-byte character set (SBCS),
whereas RIGHTB is intended for use with languages that use the double-byte character
set (DBCS). The default language setting on your computer affects the return value as
follows:
RIGHTB counts each double-byte character as 2 when you have enabled the
editing of a language that supports DBCS and then set it as the default language.
Otherwise, RIGHTB counts each character as 1.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
RIGHT (text, [num_chars])
RIGHTB (text, [num_bytes])
Arguments
Required
Argument Description
/Optional
The text string containing the characters you want to
Text Required
extract.
Specifies the number of characters you want RIGHT to
Num_chars Optional
extract.
Specifies the number of characters you want RIGHTB to
Num_bytes Optional
extract, based on bytes.
Notes
Num_chars must be greater than or equal to zero.
If num_chars is greater than the length of text, RIGHT returns all of text.
If num_chars is omitted, it is assumed to be 1.
If num_chars is < 0, RIGHT returns #VALUE! Error.
854
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
855
459. SEARCH Function Advanced Excel Functions
Description
The SEARCH and SEARCHB Functions locate one text string within a second text string,
and return the number of the starting position of the first text string from the first
character of the second text string.
SEARCHB counts 2 bytes per character only when a DBCS language is set as the default
language. Otherwise SEARCHB behaves the same as SEARCH, counting 1 byte per
character.
The languages that support DBCS include Japanese, Chinese (Simplified), Chinese
(Traditional), and Korean.
Syntax
SEARCH (find_text,within_text,[start_num])
SEARCHB (find_text,within_text,[start_num])
Arguments
Required
Argument Description
/Optional
find_text The text that you want to find. Required
The text in which you want to search for the value of the
within_text Required
find_text argument.
The character number in the within_text argument at
start_num Optional
which you want to start searching.
Notes
The SEARCH and SEARCHB Functions are not case sensitive. If you want to do a
case sensitive search, you can use FIND and FINDB.
You can use the wildcard characters question mark (?) and asterisk (*) in the
find_text argument. A question mark matches any single character; an asterisk
matches any sequence of characters. If you want to find an actual question mark
or asterisk, type a tilde (~) before the character.
If the value of find_text is not found, the #VALUE! error value is returned.
If start_num is not greater than 0 (zero) or is greater than the length of the
within_text argument, the #VALUE! error value is returned.
856
Advanced Excel Functions
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
857
460. SUBSTITUTE Function Advanced Excel Functions
Description
Substitutes new_text for old_text in a text string.
Syntax
SUBSTITUTE (text, old_text, new_text, [instance_num])
Arguments
Required
Argument Description
/Optional
The text or the reference to a cell containing text for
Text Required
which you want to substitute characters.
Old_text The text you want to replace. Required
Notes
Use SUBSTITUTE when you want to replace specific text in a text string.
Use REPLACE when you want to replace any text that occurs in a specific location
in a text string.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
858
Advanced Excel Functions
Example
859
461. T Function Advanced Excel Functions
Description
The T function returns the text referred to by value.
Syntax
T (value)
Arguments
Argument Description Required /Optional
Value The value you want to test. Required
Notes
If value is or refers to text, T returns value. If value does not refer to text, T returns
"" (empty text).
You do not generally need to use the T Function in a formula because Microsoft
Excel automatically converts values as necessary. This Function is provided for
compatibility with other spreadsheet programs.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
860
462. TEXT Function Advanced Excel Functions
Description
The TEXT function converts a numeric value to text and lets you specify the display
formatting by using special format strings.
This function is useful in situations where you want to display numbers in a more readable
format, or you want to combine numbers with text or symbols.
Syntax
TEXT (value, format_text)
Arguments
Required
Argument Description
/Optional
A numeric value, a formula that evaluates to a
value numeric value, or a reference to a cell containing a Required
numeric value.
A numeric format as a text string enclosed in
quotation marks, for example "m/d/yyyy" or
format_text "#,##0.00". Required
The following sections provide you with specific
formatting guidelines.
Placeholder Description
Displays insignificant zeros if a number has fewer digits than there are
0 (zero)
zeros in the format.
Follows the same rules as the 0 (zero). However, Excel does not display
# extra zeros when the number that you type has fewer digits on either
side of the decimal than there are # symbols in the format.
Follows the same rules as the 0 (zero). However, Excel adds a space for
? insignificant zeros on either side of the decimal point so that decimal
points are aligned in the column.
. (period) Displays the decimal point in a number.
861
Advanced Excel Functions
Display hours, minutes, and seconds: To display time formats (such as hours, minutes,
and seconds), use the following codes in the format_text argument.
Displays elapsed time in hours. If you are working with a formula that
[h] returns a time in which the number of hours exceeds 24, use a number
format that resembles [h]:mm:ss.
862
Advanced Excel Functions
Displays elapsed time in minutes. If you are working with a formula that
[m] returns a time in which the number of minutes exceeds 60, use a
number format that resembles [mm]:ss.
Displays elapsed time in seconds. If you are working with a formula that
[s] returns a time in which the number of seconds exceeds 60, use a
number format that resembles [ss].
AM/PM, Displays the hour based on a 12-hour clock. Excel displays AM, am, A,
am/pm, A/P, or a for times from midnight until noon and PM, pm, P, or p for times
a/p from noon until midnight.
You must use the numeric keypad; using the ALT key with the number keys in the top row
of the keyboard will not generate ANSI codes.
¢ ALT+0162
£ ALT+0163
¥ ALT+0165
ALT+0128
863
Advanced Excel Functions
$ Dollar sign
+ Plus sign
( Left parenthesis
: Colon
' Apostrophe
= Equal sign
- Minus sign
/ Slash mark
) Right parenthesis
! Exclamation point
& Ampersand
~ Tilde
864
Advanced Excel Functions
$ Dollar sign
Space character
Using the TEXT Function converts a numeric value to formatted text, and the result can
no longer be calculated as a number
Notes
You can also format numbers by using the commands in the Number group on the
Home tab of the Ribbon. However, these commands work only if the entire cell is
numeric. If you want to format a number and combine it with other text, the TEXT
Function is the best option.
If you omit the quotation marks from around the format_text argument, TEXT
returns #NAME? error value.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
865
463. TEXTJOIN Function Advanced Excel Functions
Description
The TEXTJOIN function combines the text from multiple ranges and/or strings, and
includes a delimiter you specify between each text value that will be combined. If the
delimiter is an empty text string, this function will effectively concatenate the ranges.
Syntax
TEXTJOIN (delimiter, ignore_empty, text1, [text2], …)
Arguments
Required
Argument Description
/Optional
A text string, either empty, or one or more characters
enclosed by double quotes, or a reference to a valid text
delimiter Required
string.
If a number is supplied, it will be treated as text.
Notes
If the resulting string exceeds 32767 characters (cell limit), TEXTJOIN returns the #VALUE!
Error.
Applicability
Excel 2016
866
Advanced Excel Functions
Example
867
464. TRIM Function Advanced Excel Functions
Description
The TRIM function removes all spaces from text except for single spaces between words.
Use TRIM on text that you have received from another application that may have irregular
spacing.
Syntax
TRIM (text)
Arguments
Argument Description Required /Optional
Text The text from which you want spaces removed. Required
Notes
The TRIM function was designed to trim the 7-bit ASCII space character (value 32) from
text. In the Unicode character set, there is an additional space character called the
nonbreaking space character that has a decimal value of 160. This character is commonly
used in Web pages as the HTML entity, and nbsp. By itself, the TRIM function does not
remove this nonbreaking space character.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
868
465. UNICHAR Function Advanced Excel Functions
Description
The UNICHAR function returns the Unicode character that is referenced by the given
numeric value.
Syntax
UNICHAR (number)
Arguments
Required
Argument Description
/Optional
Number is the Unicode number that represents the
Number Required
character.
Notes
The Unicode character that is returned can be a string of characters, for example
in UTF-8 or UTF-16 codes.
If Unicode numbers are partial surrogates and data types that are not valid,
UNICHAR returns the #N/A error value.
If numbers are numeric values that fall outside the allowable range, UNICHAR
returns the #VALUE! error value.
Applicability
Excel 2013, Excel 2016
869
Advanced Excel Functions
Example
870
466. UNICODE Function Advanced Excel Functions
Description
The UNICODE function returns the number (code point) corresponding to the first
character of the text.
Syntax
UNICODE (text)
Arguments
Required
Argument Description
/Optional
Text Text is the character for which you want the Unicode value. Required
Notes
If text contains partial surrogates or data types that are not valid, UNICODE returns the
#VALUE! error value.
Applicability
Excel 2013, Excel 2016
Example
871
467. UPPER Function Advanced Excel Functions
Description
The UPPER function converts text to uppercase.
Syntax
UPPER (text)
Arguments
Required
Argument Description
/Optional
The text you want converted to uppercase.
Text Required
Text can be a reference or text string.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
872
468. VALUE Function Advanced Excel Functions
Description
The VALUE function converts a text string that represents a number to a number.
Syntax
VALUE (text)
Arguments
Required
Argument Description
/Optional
The text enclosed in quotation marks or a reference
Text Required
to a cell containing the text you want to convert.
Notes
Text can be in any of the constant number, date, or time formats recognized by
Microsoft Excel. If text is not in one of these formats, VALUE returns the #VALUE!
error value.
You do not generally need to use the VALUE function in a formula because Excel
automatically converts text to numbers as necessary. This function is provided for
compatibility with other spreadsheet programs.
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
873
469. ENCODEURL Function Advanced Excel Functions
Description
The ENCODEURL function returns a URL-encoded string.
Syntax
ENCODEURL (text)
Arguments
Argument Description Required
/Optional
Text A string to be URL encoded. Required
Applicability
Excel 2013, Excel 2016
Example
874
470. FILTERXML Function Advanced Excel Functions
Description
The FILTERXML function returns specific data from the XML content by using the specified
XPath.
Syntax
FILTERXML (xml, xpath)
Arguments
Argument Description Required
/Optional
Xml A string in valid XML format. Required
Xpath A string in standard XPath format. Required
Notes
If Xml is not valid, FILTERXML returns the #VALUE! error value.
If Xml contains a namespace with a prefix that is not valid, FILTERXML returns the
#VALUE! error value.
Applicability
Excel 2013, Excel 2016
Example
875
471. WEBSERVICE Function Advanced Excel Functions
Description
The WEBSERVICE function returns data from a web service on the Internet or Intranet.
Syntax
WEBSERVICE (url)
Arguments
Argument Description Required /Optional
url The URL of the web service. Required
Notes
If arguments are unable to return the data, WEBSERVICE returns the #VALUE!
error value.
If arguments result in a string that is not valid or that contains more than the
allowable cell limit of 32767 characters, WEBSERVICE returns the #VALUE! error
value.
If URL is a string that contains more than the 2048 characters that are allowed for
a GET request, WEBSERVICE returns the #VALUE! error value.
Applicability
Excel 2013, Excel 2016
876
Advanced Excel Functions
Example
877