
33 
Excel Functions
33.1 Overview
Excel contains several hundred functions. This chapter surveys only 
those functions used in the book. The following functions are 
discussed:
•
 Financial functions: NPV, IRR, PV, PMT, XIRR, XNPV
•
 Date functions: Now, Today, Date, Weekday, Month, Datedif
•
 Statistical functions: Average, Var, Varp, Stdev, Stdevp, Correl, Covar
•
 Regression functions: Slope, Intercept, Rsq, Linest
•
 Conditional functions: If, VLoopkup, HLookup
•
  Large, Rank, Percentile, Percentrank
•
  Count, CountA, CountIf
•
  Offset
A separate chapter, Chapter 34, is devoted to the important topic of 
array functions.
33.2 Financial Functions
33.2.1 NPV
The Excel defi nition of NPV differs somewhat from the standard fi nance 
defi nition. In the fi nance literature, the net present value of a sequence 
of cash fl ows  C
0
,  C
1
,  C
2
,  .  .  .  ,  C
n
 at a discount rate r refers to the 
expression
C
r
C
C
r
t
t
t
n
t
t
t
n
() ()11
0
0
1
+
+
+
==
∑∑
or
In many cases C
0
 represents the cost of the asset purchased and is there-
fore negative.
The Excel defi nition of NPV always assumes that the fi rst cash fl ow 
occurs after one period. The user who wants the standard fi nance ex-
pression must therefore calculate NPV(r,{C
1
,  .  .  .  ,  C
n
}) + C
0
. Here is an 
example: