Fundamentals of Ms Excel: Lecturer: Fatima Rustamova
Fundamentals of Ms Excel: Lecturer: Fatima Rustamova
Fundamentals of Ms Excel: Lecturer: Fatima Rustamova
OF MS EXCEL
L E C T U R E R : F A T I M A R U S T A M O VA
CONTENT
1. Introduction to Excel
2. Data validation
3. Pivot table
4. Macros
5. Time value of money on Excel
1. Moving from the Present to the Future
2. Financial functions covered in this chapter
1. The FV formula
2. The PV formula
3. The NPV formula
4. The PMT formula
Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and
format workbooks (a collection of spreadsheets) in order to analyze and display data.
Specifically, you can use Excel to track data, build models for analyzing data, write formulas to
perform calculations on that data, pivot the data in numerous ways, and present data in a variety
of professional looking charts.
A bar at the top. This is called the title bar and shows you what program you are in. You also see the words
Book1 in the title bar. This is the default title of your spreadsheet. Each spreadsheet is referred to as a Book
(short for workbook) by Excel.
The ribbon tabs. The different ribbons take the place of the toolbars and menus of previous versions of Excel.
The Ribbons offer access to all the different features.
The formula bar. This is the big white bar across the top of your spreadsheet. This is where text and data are
entered (and of course, formulas).
The work area. Excel always opens with cell A1 selected. A1 or any combination of letter and number is
called the cell address.
The work area is divided
into rows and columns.
A PivotTable is an extremely powerful tool that you can use to slice and dice data. You can track
and analyze hundreds of thousands of data points with a compact table that can be changed
dynamically to enable you to find the different perspectives of the data. It is a simple tool to use,
yet powerful.
The primary goal of using a PivotTable normally is to explore the data to extract significant and
required information. You have several options to do this that include Sorting, Filtering, Nesting,
Collapsing and Expanding, Grouping and Ungrouping, etc.
PIVOT TABLE
An Excel PivotTable is a tool to explore and summarize large amounts of data, analyze related
totals and present summary reports designed to:
• Present large amounts of data in a user-friendly way.
• Summarize data by categories and subcategories.
• Filter, group, sort and conditionally format different subsets of data so that you can focus on the most
relevant information.
• Rotate rows to columns or columns to rows (which is called "pivoting") to view different summaries
of the source data.
• Subtotal and aggregate numeric data in the spreadsheet.
• Expand or collapse the levels of data and drill down to see the details behind any total.
• Present concise and attractive online of your Excel data or printed reports.
PIVOT TABLE
Macros are a great way to automate repetitive tasks in Excel. If you find yourself doing the same
things over and over again, record your moves as a macro and assign a keyboard shortcut to it.
And now, you can have all the recorded actions performed automatically, with a single keystroke!
HOW TO RECORD A MACRO IN EXCEL
Like other VBA tools, Excel macros reside on the Developer tab, which is hidden by default. So,
the first thing you need to do is to add Developer tab to your Excel ribbon.
To record a macro in Excel, carry out these steps:
On the Developer tab, in the Code group, click the Record Macro button.
HOW TO RECORD A MACRO IN EXCEL
In the Record Macro dialog box that appears, configure the main parameters of your macro:
1. In the Macro name box, enter the name for your macro. Try to make it meaningful and
descriptive, so you’ll be able to easily find the macro in the list.
2. In the Shortcut key box, type any letter to assign a keyboard shortcut to the macro (optional).
3. From the Store macro in drop-down list, choose where you want to store your macro:
o Personal Macro Workbook – stores the macro to a special workbook called Personal.xlsb.
All the macros stored in this workbook are available whenever you use Excel.
o This Workbook (default) - the macro will be stored in the current workbook and will be
available when you reopen the workbook or share it with other users.
o New Workbook – creates a new workbook and records the macro to that workbook.
4. In the Description box, type a short description of what your macro does (optional).
5. Click OK to start recording the macro.
6. Perform the actions that you want to automate
7. When finished, click the Stop Recording button on the Developer tab.
HOW TO RECORD A MACRO IN EXCEL
HOW TO WORK WITH RECORDED
MACROS IN EXCEL
All main options Excel provides for macros can
be accessed via the Macro dialog box. To open it,
click the Macros button on the Developer tab or
press the Alt+ F8 shortcut.
In the dialog box that opens, you can view a list of macros available in all open workbooks or
associated with a particular workbook and make use of the following options:
– Run - executes the selected macro.
– Step into - allows you to debug and test the macro in the Visual Basic Editor.
– Edit - opens the selected macro in the VBA Editor, where you can view and edit the code.
– Delete - permanently deletes the selected macro.
– Options – allows changing the macro's properties such as the
associated Shortcut key and Description.
WHAT IS RECORDED WITH MACROS
Excel's Macro Recorder captures quite a lot of things - almost all mouse clicks and keypresses.
So, you should think over your steps carefully to avoid excess code that may result in unexpected
behavior of your macro. Below are a few examples of what Excel records:
– Selecting cells with the mouse or keyboard. Only the last selection before an action gets recorded.
For instance, if you select the range A1:A10, and then click cell A11, only the selection of A11 will
be recorded.
– Cell formatting such as fill and font color, alignment, borders, etc.
– Number formatting such as percentage, currency, etc.
– Editing formulas and values. Changes are recorded after you press ENTER.
– Scrolling, moving Excel windows, switching to other worksheets and workbooks.
– Adding, naming, moving and deleting worksheets.
– Creating, opening and saving workbooks.
– Running other macros.
WHAT CANNOT BE RECORDED WITH MACROS
Despite many different things that Excel can record, certain features are beyond the capabilities
of the Macro Recorder:
– Customizations of the Excel ribbon and Quick Access toolbar.
– Actions inside Excel dialogs such as Conditional Formatting or Find and Replace (only the result
gets recorded).
– Interactions with other programs. For example, you cannot record copy/pasting from an Excel
workbook into a Word document.
– Anything that involves the VBA Editor. This imposes the most significant limitations - many things
that can be done at the programming level cannot be recorded.
TIME VALUE OF MONEY
CONCEPTS USED
• One speaks of the rate at which money increases while it is invested or deposited in a bank as
the rate at which it appreciates in value, or THE RATE OF INTEREST it earns.
• Financial analysts speak of the time value of money as THE DISCOUNT RATE, and they use
it to discount future amounts of money back to their present equivalent values.
• When applied to capital budgeting, the term COST OF CAPITAL is used to describe the rate a
firm must pay to raise funds through borrowing and issuing stock—and which it must earn
back in order to break even on a capital investment.
MOVING FROM THE PRESENT TO THE FUTURE
In order to convert from present to future values (or the reverse), we must know what the time
value of money is. This is specified by the rate of appreciation or the interest rate, which is also
referred to as the discount rate. If a bank charges an annual interest rate of 10 percent on loans it
makes, any money borrowed from the bank is said to have a time value of 10%/year.
The effect of interest is a compound one. If we invest a principal sum at some rate of interest and
keep reinvesting the original sum plus any earned interest, the amount of interest earned each
year will increase with time. For example, if the original principal of $100 and the accumulated
interest continue to earn 10%/year, compounded annually, for n years, the total at the end of n
years will be
in general, the future value (F) of the present value (P) of a principal amount after a specified
number of periods (n) with compound interest at a specified rate of interest per period (i) is given
by the equation
FINANCIAL FUNCTIONS COVERED IN THIS CHAPTER
Computes the future value of a series of equal payments and/or a present value after a specified
number of periods at a specified rate of interest. Payments can be made at either the beginning or
end of each period, as specified by the value for type (0 for end, 1 for beginning).
FINANCIAL FUNCTIONS COVERED IN THIS CHAPTER
Computes the present value of a series of equal payments and/or a future value after a specified
number of periods at a specified rate of interest. Payments can be made at either the beginning or
end of each period, as specified by the value for type.
FINANCIAL FUNCTIONS COVERED IN THIS CHAPTER
Computes the present value of a series of future cash flows (value1, value2, …) at a specified rate
of interest. Cash flows are at the ends of successive periods, beginning with the first, and do not
have to be equal to each other.
FINANCIAL FUNCTIONS COVERED IN THIS CHAPTER
Computes the value of a series of equal payments equivalent to a given present value or future
present value for a specified number of periods at a specified rate of interest. Payments can be
made at either the beginning or end of each period, as specified by the value for type. The PMT
function is useful for computing monthly mortgage payments to repay the present value of a loan
or the periodic investments in sinking funds to accumulate a given future value
THE FV FORMULA
• Among the most useful financial functions that Excel provides is the future value function, FV.
It can be used to find the future value of a single present value, a series of equal values made at
the end of each period (i.e., annuities), or a combination of the two. Its syntax is as follows:
THE FV FORMULA : EXAMPLE
A sum of $30,000 is invested at an annual rate of interest of 10 percent, compounded annually.
What is the value of the investment at the end of six years—that is, six years after making the
investment?
THE FV FORMULA : EXAMPLE
A sum of $30,000 is invested at an annual rate of interest of 10 percent, compounded annually.
What is the value of the investment at the end of six years—that is, six years after making the
investment?
F = $30,000(1 + 0.10)6 = $30,000(1.771561) = $53,146.83
CALCULATING THE FUTURE VALUE OF
A SERIES OF EQUAL FUTURE PAYMENTS
The formula for calculating the future value of a series of equal future payments:
Where:
F = future value
A = periodic payment
i = interest rate per interest period
n = number of interest-bearing periods
EXAMPLE: CALCULATING THE FUTURE VALUE OF A
SERIES OF EQUAL FUTURE PAYMENTS
• The CFO of the Baker Company invests $10,000 at the end of each month into a sinking fund
to accumulate capital for new equipment that will be purchased at the end of two years. The
money invested will earn interest at a 5 percent annual rate, compounded monthly. How much
will be available in the sinking fund at the end of two years?
EXAMPLE: CALCULATING THE FUTURE VALUE OF A
SERIES OF EQUAL FUTURE PAYMENTS
Note that in the key entry in Cell B7, the annual interest rate of 5 percent is converted to a
monthly rate by dividing the annual rate in Cell B2 by 12, and the total number of monthly
periods is calculated by multiplying the entry for the number of years in Cell B3 by 12. Also note
that the final value in the FV function is 0 (from Cell B6), which indicates that the CFO makes
the monthly investments at the end of each month rather than the beginning.
At the end of two years,
the sinking fund will
amount to $251,859.21,
of which $240,000 is the
sum of the 24 monthly
payments of $10,000
each, and $11,859.21 is
the total amount of
interest accumulated.
EXAMPLE: CALCULATING THE FUTURE VALUE OF
A SERIES OF EQUAL FUTURE PAYMENTS
Suppose the monthly payments of $10,000 (see preceding example) are made at the beginning of
each month instead of at the end. How would this affect the answer to Example 7.2?
The following example illustrates the use of Excel’s FV function to calculate the future value of
an initial investment followed by a series of constant periodic investments.
Suppose that in addition to depositing $10,000 at the end of each month into a sinking fund (see
Example 7.2), the CFO of the Baker Company begins with an initial deposit of $200,000 at the
beginning of the first month. How would this affect the answer to Example 7.2?
CALCULATING THE FUTURE VALUE OF A PRESENT
VALUE AND A SERIES OF PERIODIC VALUES
The key entry in Cell B6 is =FV(B2/12,B3*12,B4,B5,B6). The future value of the sinking fund
is $472,847.47. Of this amount, $440,000 is the sum of the initial and periodic deposits, and
$32,847.47 is the total amount of interest earned during the two years.
Note that this example differs from the preceding example in having an initial investment in
addition to the series of equal future monthly payments. The future value of the $200,000 at the
end of two years is readily calculated as
Adding this amount to the future value of the series of $10,000 monthly payments gives
CALCULATING THE FUTURE VALUE OF A PRESENT
VALUE AND A SERIES OF PERIODIC VALUES
THE PV FORMULA
Excel’s PV function is used to calculate the present value of a single future amount, a series of
equal future amounts, or a combination of the two.
How large a lump sum of money would an individual need to invest at an annual rate of interest
of 10 percent, compounded annually, in order to have $30,000 at the end of six years?
• Substituting values into equation 7.2 gives
PRESENT VALUE OF A SERIES OF EQUAL PERIODIC PAYMENTS
The present value of a series of equal periodic payments made at the ends of the periods can be
computed by the formula:
PRESENT VALUE OF A SERIES OF EQUAL PERIODIC PAYMENTS
What is the present value of a series of monthly payments of $200 made at the end of each month
for the next five years? Assume that the discount rate is 5 percent per year, compounded monthly.
PRESENT VALUE OF A SERIES OF EQUAL PERIODIC PAYMENTS
What is the present value of a series of monthly payments of $200 made at the end of each month
for the next five years? Assume that the discount rate is 5 percent per year, compounded monthly.
USING PRESENT VALUES TO CHOOSE BEST ALTERNATIVE
The following example uses the PV function to compute the present values of the future cash
flows of three alternatives at a given discount rate in order to identify the most attractive
alternative.
Suppose you are given the following three cash inflows from which to choose.
Alternative A: Year-end receipts of $7,000 for each of the next four years
Alternative B: A single, lump-sum receipt of $31,000 at the end of four years
Alternative C: Year-end receipts of $2,600 for each of the next four years plus a lump-sum
receipt of $20,000 at the end of four years
Which alternative would you choose if the discount rate of money was 6 percent, and why?
USING PRESENT VALUES TO CHOOSE BEST ALTERNATIVE
The following example uses the PV function to compute the present values of the future cash
flows of three alternatives at a given discount rate in order to identify the most attractive
alternative.
Suppose you are given the following three cash inflows from which to choose.
Alternative A: Year-end receipts of $7,000 for each of the next four years
Alternative B: A single, lump-sum receipt of $31,000 at the end of four years
Alternative C: Year-end receipts of $2,600 for each of the next four years plus a lump-sum
receipt of $20,000 at the end of four years
Which alternative would you choose if the discount rate of money was 6 percent, and why?
USING PRESENT VALUES TO CHOOSE BEST ALTERNATIVE
Figure 7-11 shows the solution. The basis for choosing between the alternatives is the present
value of the future cash flows. To compute these, enter =-PV(B6,B7,B4,B5) in Cell B8 and copy
the entry to Cells C8:D8. To identify the alternative with the highest present value of the future
cash flows, enter =IF(B8=MAX(B8:D8),B3, IF(C8=MAX(B8,D8),C3,D3)) in Cell D9. The best
alternative to choose is Alternative C.
USING GOAL SEEK TO DETERMINE THE DISCOUNT
RATE FOR EQUAL PRESENT VALUES
The following example shows how to use Excel’s Goal Seek tool to determine the discount rate
that produces equal present values for two alternatives.
At what discount rate are the present values of the future cash flows of Alternatives A and C
equal? What is the present value of the future cash flows of Alternative B at the same discount
rate?
USING GOAL SEEK TO DETERMINE THE DISCOUNT
RATE FOR EQUAL PRESENT VALUES
Figure 7-12 shows the solution obtained with Excel’s Goal Seek tool. To use this tool, we need to
make two changes to the spreadsheet for the preceding example. We need to link the discount rates
for all three alternatives. To do this, enter =B6 in Cell C6 and copy the entry to Cell D6. In Cell D9,
calculate the difference between the present values of Alternatives A and C by the entry =B8-D8.
USING GOAL SEEK TO DETERMINE THE DISCOUNT
RATE FOR EQUAL PRESENT VALUES
Access the Goal Seek dialog box shown in Figure 7-13 on the Tools drop-down menu and make
the settings shown. The strategy is to use Goal Seek to find the value in Cell B6 that makes the
difference in Cell D9 between the present values of Alternatives A and C equal. Clicking OK or
pressing Enter causes the Goal Seek Status box shown in Figure 7-14 to appear. Clicking OK or
pressing Enter produces the results shown in Figure 7-12.
EFFECT OF DISCOUNT RATE ON PRESENT VALUE
Evaluate the effect of changes in the discount rate of money from 0 percent to 12 percent on the
present values of the three future cash inflows of Example 7.9. Use increments of 1 percent in the
discount rate, and indicate which alternative is the best choice at each discount rate.
Solution:
Figure 7-15 is the solution. To compute the present values, enter = –PV($B13,C$7,C$4,C$5) in
Cell C13 and copy the entry to C13:E25. To identify the best choice at each discount rate, enter
=IF(C13=MAX(C13:E13),C$3,IF(D13=MAX(C13:E13),D$3,E$3)) in Cell F13 and copy the
entry to F14:F25.
EFFECT OF DISCOUNT RATE ON PRESENT VALUE
Note that the best choice depends on the time value of money, as expressed by the discount rate. If
money has no time value, its value is the same regardless of when it is received. Therefore,
Alternative B is the best choice since it returns a total of $31,000, whereas Alternatives A and C
return smaller total amounts of $28,000 and $30,400.
As the time value of money increases, it is better to receive it sooner than later. Thus, as the results
in Figure 7-15 demonstrate, the best choice passes from Alternative B to Alternative C to
Alternative A as the discount rate increases from 0 to 12 percent. This is important to an investor
who borrows money to make an investment intended to provide a set of future cash flows. As the
discount rate (i.e., the interest rate the investor pays to borrow money) increases, it becomes
increasingly important to the investor to be repaid as soon as possible. This is because the present
value of income received further and further into the future becomes less and less as the rate of
interest increases.
THANKS!
ANY QUESTIONS?