0% found this document useful (0 votes)
23 views31 pages

Data Analytics Lab File - 040637

MBA PROJECT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views31 pages

Data Analytics Lab File - 040637

MBA PROJECT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

RAJASTHAN TECHNICAL UNIVERSITY

KOTA

DATA ANALYTICS LAB


MBA (SEC.- C)
SESSION: 2023-2025

SUBMITTED TO SUMITTED BY
Mrs. Deepti Agarwal Abhinav Chauhan
Director MBA 1st Sem

1
ACKNOWLEDGEMENT

It gives the immense pleasure to thank all those who have helped me
during the course of my Data Analytics lab file.

I am very thankful to Mrs. Deepti Agarwal Ma’am Director, Mr. Sudhir


Agarwal Sir Conver of IPS Business school for granting me permission to
work on this Data Analytics Lab file. I would like to take this opportunity
to express my gratitude to Puneet Sharma Sir of IPS Business school,
Jaipur for mentoring, guiding, providing suggestions, support and all her
patience and kindness which enabled me to pass through a number of
problems.

Finally, I would also owe a great thanks to my parents and my friends for
their support and encouragement. Once again, I thanks to those who
directly or indirectly helped me in completing my lab manual.
Abhinav Chauhan

2
Index
1. Introduction to Excel
2. Basic features of MS Excel
3. Paste Special (Values, Transpose)
4. Relative Referencing and Absolute Referencing
5. Data Analytics using Excel
6. Sort and Filter
7. Formulas and Functions in MS Excel
8. HLOOKUP and VLOOKUP
9. Generating Multiple Reports in MS Excel
10. Find and Replace
11. MIS Reporting
12. Conditional Formatting
13. Chart and Tables in MS Excel
14. Excel’s Goal Seek feature
15. Data Validation
16. Statistical Functions in Excel
17. PV, NPV, XNPV, EMI, IRR in Excel:
18. To construct contingency table, compute conditional, marginal probability
and use of Bayes theorem

Summary

3
DATA ANALYTICS LAB

Introduction to MS Excel:
MS Excel is a spreadsheet program where one can record data in the form of tables. It
is easy to analyse data in an Excel Spreadsheet.

Features of MS Excel: -
Various editing and formatting can be done on an Excel spreadsheet. Discussed below
are the various features of MS Excel.

• Home
Comprises options like font size, font styles, font colour, background colour,
alignment, formatting options and styles, insertion and deletion of cells and
editing options.

• Insert
Comprises options like table format and style, inserting images and figures,
adding graphs, charts and sparklines, header and footer option, equation and
symbols.

• Page Layout
Themes, orientation and page setup options are available under the page layout
option.

• Formulas
Since tables with a large amount of data can be created in MS excel, under this
feature, you can add formulas to your table and get quicker solutions.

• Data
Adding external data (from the web), filtering options and data tools are
available under this category.

• Review
Proof-reading can be done for an excel sheet (like spell check) in the review
category and a reader can add comments in this part.

4
• View
Different views in which we want the spreadsheet to be displayed can be edited
here. Options to zoom in and out and pane arrangement are available under this
category.

Paste Special:
To perform a "Paste Special" operation using the "Values" option along with
"Transpose" in Microsoft Excel, follow these steps:
1. Copy Data: Select the data that you want to copy.
2. Paste Special - Values, Transpose:
• Click on the cell where you want to paste the transposed values.
• Right-click and choose "Paste Special" from the context menu.
3. Choose Options:
• In the "Paste Special" dialog box, select the "Values" checkbox. This
will paste the content as values instead of formulas.
• Then, also select the "Transpose" checkbox. This will switch the rows
and columns of the copied data when pasting.
4. Click OK: After selecting "Values" and "Transpose", click the "OK" button.

This action will paste the copied data's values transposed—meaning the rows will
become columns and the columns will become rows.

Please note that when you transpose data, the dimensions should match, i.e., if you
copy a range of 3 rows and 4 columns, when pasting using transpose, it will become 4
rows and 3 columns. If the dimensions do not match, Excel may not allow the
operation or may result in an error.

Relative Referencing and Absolute Referencing: -


In Microsoft Excel, referencing cells in formulas can be done using two main types:
absolute referencing and relative referencing.

Relative Referencing:
• Relative referencing is the default type of referencing in Excel.
• When you create a formula and refer to a cell, Excel uses relative referencing
by default. For instance, if you write a formula in cell B2 referencing cell A1 as
=A1+B1, when copied to cell B3, it will automatically adjust to =A2+B2.
• In relative referencing, when you copy a formula to another cell, the formula
adjusts the cell references relative to the new location. For example, if you
copy a formula from B2 to C3, a reference to A1 will become B2 in the new
cell (relative to its new position).

Absolute Referencing:
• Absolute referencing is used when you want a cell reference to stay constant,
regardless of where the formula is copied.

5
• To create an absolute reference, you can add a dollar sign ($) before the
column letter, row number, or both. For instance, in a formula, =$A$1, the
dollar signs in front of the column and row make it an absolute reference.
• Absolute references do not change when copied to other cells. For example, if
you have =$A$1+B1 in cell C1 and copy it to C2, the reference to cell A1 will
remain constant in both formulas.

Mixed Referencing:

• Mixed referencing allows combining absolute and relative references in a


single cell reference.
• For instance, if you have a formula =$A1+B$1, the column reference A is
absolute, but the row reference 1 is relative.
• When this formula is copied to other cells, the absolute reference to column A
or row 1 remains fixed, while the other part adjusts as per relative referencing
rules.

Data Analytics using Excel:


Excel is a versatile tool that can be used for various data analytics tasks. Here are
steps to perform data analytics using Excel:

1. Data Importing:
• Import Data: Bring your data into Excel using the "Get & Transform Data"
feature (Power Query) available in newer versions of Excel. This feature allows
you to connect to various data sources, clean, transform, and load data into
Excel.
2. Data Cleaning and Preparation:
• Remove Duplicates: Use the "Remove Duplicates" function in the Data tab to
eliminate duplicate records.
• Filtering and Sorting: Arrange data using Excel's filtering and sorting
capabilities to focus on specific information.
• Data Validation: Set up data validation rules to ensure data quality and
consistency.
3. Data Analysis:
• Formulas and Functions: Utilize Excel's wide range of built-in functions
(SUM, AVERAGE, COUNT, etc.) to perform calculations on your data.
• Pivot Tables: Create pivot tables to summarize and analyse large datasets
easily. Pivot tables allow you to group, filter, and summarize data in various
ways.
• Charts and Graphs: Visualize your data using different chart types (bar, line,
pie, etc.) available in Excel. Charts can provide insights and make patterns
easier to understand.
4. Statistical Analysis:
• Statistical Functions: Excel offers various statistical functions (STDEV,
CORREL, etc.) to perform statistical analysis on your data.

6
• Data Analysis ToolPak: Enable the Data Analysis ToolPak add-in to access
advanced statistical tools and perform regression, t-tests, ANOVA, etc.
5. Data Visualization and Reporting:
• Dashboard Creation: Build interactive dashboards using charts, pivot tables,
and slicers to present key insights and trends.
• Conditional Formatting: Highlight important data trends using conditional
formatting to make your reports more visually appealing and easier to
understand.
6. What-If Analysis:
• Scenario Manager: Use the Scenario Manager to analyse different scenarios
based on changing variables.
• Goal Seek: Determine the input needed to achieve a specific goal using the
Goal Seek feature.
7. Automation and Macros:
• Macros: Create macros to automate repetitive tasks and streamline your data
analysis process.
8. Documentation and Collaboration:
• Comments and Notes: Use comments and notes to document your analysis
and assumptions.
• Sharing and Collaboration: Share your Excel files securely and collaborate
with others using features like OneDrive or SharePoint.

Sort and Filter in MS Excel:


In Microsoft Excel, Sort and Filter is one of the essential tools. We use this for
analysing our data. If you have a large amount of data in your worksheets, you can use
this to see data fits your requirements. To find specific data from a large dataset, these
tools help identify them effortlessly.

Some Formulas in MS Excel:


In Microsoft Excel, a formula is an expression that operates on values in a range of
cells. These formulas return a result, even when it is an error. Excel formulas enable
you to perform calculations such as addition, subtraction, multiplication, and division.
In addition to these, you can find out averages and calculate percentages in excel for a
range of cells, manipulate date and time values, and do a lot more.
There is another term that is very familiar to Excel formulas, and that is "function".
The two words, "formulas" and "functions" are sometimes interchangeable. They are
closely related, but yet different. A formula begins with an equal sign. Meanwhile,
functions are used to perform complex calculations that cannot be done manually.
Functions in excel have names that reflect their intended use.

1. The example below shows how we have used the multiplication formula
manually with the ‘*’ operator.

7
Sample Formula: "=A2*B2"

2. The example below shows how we have used the function - ‘PRODUCT’ to
perform multiplication.

Sample Formula: "=PRODUCT(A2,B2)"

3. Sum: The SUM() function, as the name suggests, gives the total of the selected
range of cell values. It performs the mathematical operation which is addition.
Sum "=SUM(C2:C4)"
4. Average: The AVERAGE() function focuses on calculating the average of the
selected range of cell values. As seen from the below example, to find the avg of
the total sales, you have to simply type in:
AVERAGE =AVERAGE(C2, C3, C4)

It automatically calculates the average, and you can store the result in your desired
location.

5. Count: The function COUNT() counts the total number of cells in a range that
contains a number. It does not include the cell, which is blank, and the ones that
hold data in any other format apart from numeric.

COUNT =COUNT(C1:C4)

6. SUBTOTAL: The SUBTOTAL() function returns the subtotal in a database.


Depending on what you want, you can select either average, count, sum, min, max,
min, and others.

SUBTOTAL =SUBTOTAL(1, A2: A4)

7. Modulus: The MOD() function works on returning the remainder when a


particular number is divided by a divisor. Let’s now have a look at the examples
below for better understanding.

MODULUS =MOD(A2,3)

8
8. Left, Right, Mid: The LEFT() function gives the number of characters from the
start of a text string. Meanwhile, the MID() function returns the characters from
the middle of a text string, given a starting position and length. Finally, the right()
function returns the number of characters from the end of a text string.

9. UPPER, LOWER, PROPER: The UPPER() function converts any text string to
uppercase. In contrast, the LOWER() function converts any text string to
lowercase. The PROPER() function converts any text string to proper case, i.e., the
first letter in each word will be in uppercase, and all the other will be in lowercase.

10. IF Formula: The IF() function checks a given condition and returns a particular
value if it is TRUE. It will return another value if the condition is FALSE. In the
below example, we want to check if the value in cell A2 is greater than 5. If it’s
greater than 5, the function will return “Yes 4 is greater”, else it will return “No”.

Fig: If function in Excel

• In this case, it will return ‘No’ since 4 is not greater than 5.


• ‘IFERROR’ is another function that is popularly used. This function returns a
value if an expression evaluates to an error, or else it will return the value of
the expression.
• Suppose you want to divide 10 by 0. This is an invalid expression, as you can’t
divide a number by zero. It will result in an error.

The above function will return “Cannot divide”.


11. COUNTIF: The function COUNTIF() is used to count the total number of cells
within a range that meet the given condition.

9
12. SUMIF: The SUMIF() function adds the cells specified by a given condition or
criteria.

13. NestedIF: The goal is to assign a grade to each score in column C according to the
rules in the table in the range F4:G9. One way to do this in Excel is to use a series
of nested IF functions. Generally, nested IFs formulas are used to test more than
one condition and return a different result for each condition.

HLOOKUP and VLOOKUP:


HLOOKUP is also called Horizontal Lookup. The function HLOOKUP looks for a
value in the top row of a table or array of benefits. It gives the value in the same
column from a row you specify.
Given the below table, let’s see how you can find the city of Jenson using
HLOOKUP.

10
Fig: Hlookup function in Excel
Here, H23 has the lookup value, i.e., Jenson, G1:M5 is the table array, 4 is the row
index number, 0 is for an approximate match.
Once you hit enter, it will return “New York”.

VLOOKUP stands for the vertical lookup that is responsible for looking for a
particular value in the leftmost column of a table. It then returns a value in the same
row from a column you specify.

We will use the below table to learn how the VLOOKUP function works.
If you wanted to find the department to which Stuart belongs, you could use the
VLOOKUP function as shown below:

Fig: Vlookup function in Excel


Here, A11 cell has the lookup value, A2: E7 is the table array, 3 is the column index
number with information about departments, and 0 is the range lookup.

11
If you hit enter, it will return “Marketing”, indicating that Stuart is from the marketing
department.

Generating Multiple Reports in MS Excel:


Generating multiple reports in Microsoft Excel can be efficiently accomplished using
various techniques such as pivot tables, filtering, and Excel's functionality to create
multiple sheets or workbooks based on specific criteria. Here's a step-by-step guide on
how to generate multiple reports:

1. Use Pivot Tables:


• Create a Pivot Table: Organize your data and create a pivot table
summarizing the information.
• Filter Data: Use the pivot table filters to segment the data for different reports.
For instance, filter by region, product, or date.
• Copy Pivot Table for Multiple Reports: Copy the pivot table, and then adjust
the filters to create different versions of the report.

2. Filter and Save as Different Sheets:


• Filter Data: Apply filters to your dataset based on specific criteria for each
report you want to generate.
• Copy Filtered Data: Copy the filtered data and paste it into separate sheets
within the same workbook.

3. Excel's "Save As" Function:


• Filter Data: Filter your data according to different criteria for each report.
• Save Each Filtered View as a Separate Workbook: Use the "Save As" function
in Excel to save each filtered view as a separate Excel workbook.

4. VBA (Visual Basic for Applications):


• Use Macros: If you are familiar with VBA, you can write a macro to automate
the process of generating multiple reports. The macro can apply filters, copy
data, and save reports based on specific criteria.

5. Dynamic Named Ranges:


• Create Dynamic Named Ranges: Set up named ranges that adjust
automatically based on changing criteria.
• Create Reports Using Dynamic Ranges: Utilize these named ranges in
formulas or pivot tables to generate reports dynamically.

6. Conditional Formatting and Formulas:


• Use Formulas: Create formulas that retrieve data based on certain conditions
or criteria.

12
• Apply Conditional Formatting: Apply conditional formatting to highlight
specific data points meeting certain criteria.

Choose the method that suits your data structure and reporting needs. Depending on
the complexity of your data and reports, a combination of these methods might be the
most efficient way to generate multiple reports in Excel. Experiment with these
techniques to find the most suitable approach for your specific scenario.

TRIM Function In MS Excel: TRIM function in Microsoft Excel. 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.

Find and Replace:


In Microsoft Excel, the Find and Replace function allows you to quickly find specific
content within your worksheet and replace it with new content. This feature is
particularly useful for editing large datasets or making bulk changes. Here's how to
use Find and Replace:

Basic Find and Replace:


1. Access Find and Replace:

13
• Press Ctrl + F or go to the "Home" tab ➜ "Editing" group ➜ Click on
"Find & Select" ➜ Select "Find..." or "Replace..."
2. Find:
•Enter the content you want to find in the "Find what" field.
• Click "Find Next" to locate the first instance of the content. You can
continue clicking this button to find subsequent occurrences.
3. Replace:
• To replace found content, go to the "Replace" tab in the Find and
Replace dialog box.
• Enter the content you want to replace it with in the "Replace with" field.
• Click "Replace" to replace the current instance or "Replace All" to
replace all occurrences at once.
4. Options:
• Use additional options like "Match entire cell contents" or "Match case"
for specific search criteria.
• "Find All" can list all occurrences of the search term in a separate
window.
Advanced Find and Replace Options:
• Find and Replace Formatting:
• Click the "Options" button in the Find and Replace dialog box to access
additional options.
• You can search based on formatting attributes like font color, cell color,
etc., and replace only specific formatting.
• Using Wildcards:
• Enable "Use wildcards" in the Find and Replace dialog to search using
wildcard characters (* and ?) for more complex search patterns.
• Find and Replace within Specific Areas:
• Use the "Within" dropdown to specify whether to search within the
sheet, workbook, or selected cells.

Precautions:
• Be cautious: Before using "Replace All," review the changes carefully, as it
affects all occurrences.
• Undo: Excel has an undo feature (Ctrl + Z) if unintended changes are made.

The Find and Replace function in Excel is a powerful tool that can help you quickly
locate specific content, make changes efficiently, and perform bulk editing tasks
within your worksheet or workbook.

MIS Reporting:
Excel MIS Report is an Act of Information Management System use-case where Excel
is employed as the data storage and management system. Data/Business Analysts and
Business Head/Managers coordinate with each other and generate interactive reports.

14
These reports are sent to the higher authorities or decision-making board to take action
against the reports obtained and ensure they rectify the issues faced, and achieve
improvement.
Automatic row – wise Subtotal:
To automatically calculate row-wise subtotals in Excel, you can use the SUM function
in combination with Excel's features like Tables or the SUM function itself. Here's
how you can do it:

Using Excel Tables (Recommended):


1. Convert Data to a Table:
• Select your data range.
• Go to the "Insert" tab ➜ "Table" (or use the shortcut Ctrl + T).
• Ensure the "My table has headers" checkbox is selected if your data has
headers.
2. Add a Total Row:
• Click anywhere inside the table.
• Go to the "Table Design" tab (or "Design" tab in older versions) ➜
Check the "Total Row" box. This adds a new row at the bottom of the
table labelled "Total."
3. Calculate Subtotals:
• In the Total Row, locate the column where you want subtotals.
• Click on the cell below the column header to apply the subtotal
calculation.
• From the drop-down in the Total cell of that column, select "Sum" or
any other appropriate function.

Using SUM Function:

1. Manual Input:
• If you don't want to convert your data to a table, you can manually input
formulas to calculate subtotals.
• For each row where you want a subtotal, use the SUM function to add
up values in desired columns.
• For instance, if your values are in columns B, C, and D, in row 2 you
could use a formula like =SUM(B2:D2) to calculate the subtotal.
2. Auto-Fill:
• Once you have the formula in one row, you can use the AutoFill handle
(bottom right corner of the cell) to drag the formula down to calculate
subtotals for other rows.

Using PivotTables:

1. Create a PivotTable:
• Select your data range.
• Go to the "Insert" tab ➜ "PivotTable."

15
• Drag the desired fields to the Rows area to create a row-wise
breakdown.
• Drag the numeric field to the Values area and change the summary
function to "Sum" to display subtotals.

Choose the method that best fits your data structure and preferences. Using Excel
Tables is often preferred as it dynamically expands when new rows are added and
automatically includes subtotals in the Total Row. However, you can use formulas or
PivotTables to achieve similar results based on your specific requirements.

Conditional Formatting is a feature that allows us to sort the only cells that match
according to the condition that we provide.
It is mostly used to highlight or emphasise certain data and to visualize the data using
bars, scales, etc. Let’s get started now to see what is conditional formatting in excel
with example.
Select Home >> Conditional Formatting tool located in the Styles group, which has
further options. Now click on the arrow.

Charts And Tables in MS Excel:


A chart is a visual representative of data in both columns and rows. Charts are
usually used to analyse trends and patterns in data sets.

Types of Charts in MS Excel


Different scenarios require different types of charts. Towards this end, Excel provides
a number of chart types that you can work with. The type of chart that you choose
depends on the type of data that you want to visualize. To help simplify things for

16
the users, Excel has an option that analyses your data and makes a recommendation of
the chart type that you should use.

1. Pivot Table: A pivot table can cut, slice, summarize and give meaningful results
from the data. Usually, after summarizing the data in Excel, we apply graphs or charts
to present the data graphically to tell the story visually. The pivot table does not
require your special charting techniques; it can build its chart using its data.

2. Bar Chart: A bar chart is one of Excel's primary chart types and a good choice
for categorical data. Bar charts plot data using horizontal bars, so they are very
easy to read because the human eye can easily compare bars. Also, because of
the horizontal layout, bar charts have room to accommodate longer category
names. Bar charts are also versatile.

17
3. Pie Chart: Pie charts can convert one column or row of spreadsheet data into a
pie chart. Each slice of pie (data point) shows the size or percentage of that
slice relative to the whole pie. You have only one data series. None of the data
values are zero or less than zero.

4. Line Chart: A line graph (aka line chart) is a visual that displays a series of
data points connected by a straight line. It is commonly used to visually
represent quantitative data over a certain time period.

5. Box and Whisker Chart: A box and whisker chart shows distribution of data
into quartiles, highlighting the mean and outliers. The boxes may have lines
extending vertically called “whiskers”. These lines indicate variability outside
the upper and lower quartiles, and any point outside those lines or whiskers is
considered an outlier.

18
6. Stock: The stock chart in excel, also known as a high-low-close chart,
represents the conditions of data in markets such as the stock market. The data
redlects the changes in the prices of the stocks. Users can insert it from the
“Insert” tab of the Excel application, and choose from the four types of stock
chart options.

7. Histogram: Histograms are a useful tool in frequency data analysis, offering


users the ability to sort data into groupings (called bin numbers) in a visual
graph, similar to a bar chart.

19
8. Scatter plot chart: A scatter plot, sometimes referred to as a scatter chart or
XY chart, compares the relationship between two different data sets. This
makes it easier to visualize two sets of values in your Excel spreadsheet.\

Excel’s Goal Seek Feature:


Goal Seek is a function in-built in Advanced Excel Functions that allows you to get
the desired output by changing the assumptions. The process is dependent on the trial
and error method to achieve the desired result.
Let’s look at an example to understand it better.
Example

• In this example, we aim to find what will be the rate of interest if the person
wants to pay $5000 per month to settle the loan amount. PMT function is

20
used when you want to calculate the monthly payment you need to pay to
settle the loan amount. Let’s go through this problem in steps to see how we
can calculate the interest rate that will settle a loan of $400,000 by $5,000 a
month payment. PMT formula should now be entered in the cell that is the
Payment cell adjacent. Currently, there is no value in the rate of interest cell,
Excel gives us the payment of $3,333.33 because it assumes the rate of
interest to be 0%. Ignore it.

• Go to Data > What - If Analysis > Goal Seek

• Set the monthly payment to -5,000. The deduction in amount signifies the
negative value. Set rate of interest as the changing cell.

21
• Click OK. You will see the goal seek function automatically gives the
interest rate that is required to pay the loan amount.

• Go to Home > Number and change the value to Percentage.

Outcome

22
Data Validation:
Excel Data Validation is a feature that restricts (validates) user input to a worksheet.
Technically, you create a validation rule that controls what kind of data can be entered
into a certain cell. Here are just a few examples of what Excel's data validation can do:
Allow only numeric or text values in a cell.
Data Validation Rules:
Explore subscription benefits, browse training courses, learn how to secure your
device, and more. Use data validation rules to control the type of data or the values
that users enter into a cell. One example of validation is a drop-down list (also called a
drop-down box or drop-down menu).
Statistical Functions in Excel:
Excel provides an extensive range of Statistical Functions, that perform calculations
from basic mean, median & mode to the more complex statistical distribution and
probability tests. Excel’s statistical functions are powerful tools for data analysis. With
these functions, you can perform calculations, derive insights, and draw conclusions
from your data. Whether you need to calculate descriptive statistics, test hypotheses,
analyze relationships, or generate random data, Excel has a wide range of functions to
support your needs. By utilizing these functions effectively, you can unlock the full
potential of your data and make data-driven decisions with confidence.
Statistical functions in Excel are built-in mathematical formulas that enable users to
perform various statistical calculations and analyses on their data. These functions allow
you to process and analyze numerical data to derive valuable insights and make
informed decisions. Excel provides a comprehensive set of statistical functions that
cover a wide range of statistical techniques. Here are some common types of statistical
functions available in Excel:
• Descriptive Statistics: These functions help in summarizing and describing
data. Examples include AVERAGE, COUNT, SUM, MIN, MAX, MEDIAN,
MODE, STDEV, and VAR.
• Correlation and Regression: Excel offers functions like CORREL,
COVAR, RSQ, and TREND for analyzing relationships between variables,
determining correlation coefficients, and performing regression analysis.
• Hypothesis Testing: Functions such as T.TEST, Z.TEST, and F.TEST allow
users to conduct various hypothesis tests, comparing sample means,
proportions, or variances.
• Probability Distributions: Excel provides functions for common
probability distributions, such as NORM.DIST (normal distribution),
BINOM.DIST (binomial distribution), POISSON.DIST (Poisson
distribution), and more.
• Sampling: Functions like RAND and RANDBETWEEN generate random
numbers or random selections, facilitating simulations and sampling
techniques.

23
These are just a few examples of the extensive range of statistical functions available in
Excel. They provide users with powerful tools for data analysis, modeling, and decision-
making.

PV, NPV, XNPV, EMI, IRR in Excel:


• PV: The PV function returns the value in today's dollars of a series of future
payments, assuming periodic, constant payments and a constant interest rate.
You can use the PV function to calculate the present value of a loan or
investment when the interest rate and cash flows are constant. The formula for
calculating PV in Excel is =PV (rate, nper, pmt, [fv], [type]). Present value
(PV) is the current value of a stream of cash flows. PV analysis is used to value
a range of assets from stocks and bonds to real estate and annuities. PV can be
calculated in Excel with the formula =PV (rate, nper, pmt, [fv], [type]).
• NPV: Net Present Value (NPV) is a financial calculation used to determine the
present value of cash inflows and outflows from an investment over a specified
period, considering a specified discount rate. Microsoft Excel provides a
function to compute NPV easily.

Here's how you can calculate NPV in Excel:

1. Gather your data: Ensure you have a list of cash flows associated with the
investment.
2. Open Excel: Open a new or existing spreadsheet where you want to perform
the NPV calculation.
3. Organize your data: List the cash flows in a column, typically starting from
cell A1 or another cell of your choice.
4. Determine the discount rate: Have a specific discount rate in mind. This
could be the cost of capital or the rate of return you expect from the investment.
5. Use the NPV function: In a cell where you want the NPV result to appear,
type the following formula:
=NPV(discount_rate, cash_flow1, cash_flow2, ...)
For example:
=NPV(0.1, B1:B5)
Here, 0.1 is the discount rate (10% in this case), and B1:B5 represents the
range of cells where your cash flows are listed.
6. Press Enter: After entering the formula, press Enter to compute the NPV.

24
Remember a few important points:

• Ensure cash flows are in the correct chronological order.


• Include all cash flows, including the initial investment (if any).
• The first cash flow should be for the period immediately following the initial
investment.

Excel's NPV function calculates the present value of a series of cash flows based on a
discount rate. It doesn't include the initial investment in the result, so if your first cash
flow represents the initial investment, you might need to add it separately to the NPV
result.

Always review your inputs and understand the implications of the discount rate you're
using, as it significantly impacts the NPV outcome.

• XNPV: The XNPV function in Excel is an extension of the NPV function that
allows you to calculate the net present value of cash flows that are not
necessarily periodic. XNPV considers specific dates associated with each cash
flow, allowing for more accurate NPV calculations when cash flows occur at
irregular intervals.

Here's how to use the XNPV function in Excel:

1. Organize your data: Create a table that includes the dates of each cash flow
and their respective amounts.
2. Open Excel: Open a new or existing spreadsheet where you want to perform
the XNPV calculation.
3. Input your data: List the dates of each cash flow in one column and the
corresponding cash flow amounts in another column.
4. Determine the discount rate: Have a specific discount rate in mind. This
could be the cost of capital or the rate of return you expect from the investment.
5. Use the XNPV function: In a cell where you want the XNPV result to appear,
type the following formula:

=XNPV(discount_rate, cash_flows, dates)


For example:
=XNPV(0.1, B2:B6, A2:A6)
1. Here, 0.1 is the discount rate (10% in this case), B2:B6 represents the range of
cells where your cash flows are listed, and A2:A6 represents the corresponding
dates for these cash flows.
2. Press Enter: After entering the formula, press Enter to compute the XNPV.

25
Ensure that the dates are in chronological order and are in a format that Excel
recognizes as dates (e.g., mm/dd/yyyy or dd/mm/yyyy). Also, remember that XNPV
uses specific dates, unlike the NPV function, which assumes equal time intervals
between cash flows.

Using XNPV over NPV is advisable when dealing with cash flows occurring on
specific dates rather than regular intervals, as it provides a more accurate calculation
of the net present value in such scenarios.
• EMI: EMI (Equated Monthly Installment) is a fixed payment amount made by
a borrower to a lender at a specified date each calendar month. It is commonly
used in loans, such as home loans, car loans, personal loans, etc., where the
borrower repays the loan amount along with interest in regular installments
over a defined period.

In Excel, you can calculate the EMI using the PMT function. Here's how you can
do it:

Let's assume you have the following loan details:


• Loan amount (principal): $100,000
• Annual interest rate: 5%
• Loan tenure (in years): 5

To calculate the EMI:

1. Open Excel: Open a new or existing spreadsheet.


2. Enter loan details: In separate cells, input the loan amount, annual interest
rate, and loan tenure. For example, you could have:
• Loan amount (principal): Cell A1 = $100,000
• Annual interest rate: Cell A2 = 5% (assuming the rate is in percentage)
• Loan tenure in years: Cell A3 = 5
3. Calculate monthly interest rate: As PMT function requires a monthly interest
rate, you need to convert the annual rate into a monthly rate. Use the formula:
Monthly Interest Rate = Annual Interest Rate / 12
In Excel, this could be:
Monthly Interest Rate = A2 / 12
4. Use PMT function to calculate EMI: In a cell where you want to display the
EMI, use the PMT function. The PMT function syntax is:
=PMT(rate, number_of_periods, present_value)
For example:
=PMT(A4/100/12, A3*12, -A1)
Here, A4/100/12 calculates the monthly interest rate, A3*12 converts the loan
tenure from years to months, and -A1 is the negative loan amount (present
value).
5. Press Enter: After entering the formula, press Enter to compute the EMI.

26
Excel will return the EMI value based on the provided loan details.

Remember to adjust the formula based on your specific loan amount, interest rate, and
tenure. Additionally, consider any additional fees or charges that might affect the loan
calculation.
• IRR: The IRR (Internal Rate of Return) function in Excel is used to calculate
the internal rate of return for a series of cash flows occurring at regular
intervals. The IRR is the discount rate that makes the net present value (NPV)
of these cash flows equal to zero. It helps in assessing the potential profitability
of an investment.

Here's how you can use the IRR function in Excel:

1. Organize your cash flow data: List the cash flows in chronological order. The
initial investment should be negative (outflow), and subsequent cash inflows
should be positive.
2. Open Excel: Open a new or existing spreadsheet.
3. Input your data: Enter your cash flow data in a column, starting from a cell,
say A1.
4. Use the IRR function: In a cell where you want the IRR result to appear, type
the following formula:
=IRR(range_of_cash_flows)

For example:
=IRR(A1:A10)
1. Here, A1:A10 represents the range of cells where your cash flows are listed.
2. Press Enter: After entering the formula, press Enter to compute the IRR.

Excel will calculate and display the internal rate of return for the given cash flow
series.

Remember a few key points:

• The cash flows should occur at regular intervals (if not, consider using the
XIRR function for irregular intervals).
• Ensure the initial investment is represented as a negative value.
• Excel's IRR function assumes that the cash flows are at regular intervals, and
there is at least one positive and one negative cash flow.

The IRR function is a useful tool to evaluate the potential return of an investment.
However, it's important to interpret the IRR result in context and consider other
factors such as risk, cost of capital, and the nature of the investment before making
decisions based solely on the IRR value.

27
To construct contingency table, compute conditional, marginal probability and
use of Bayes theorem:
Constructing a contingency table, computing conditional and marginal probabilities,
and applying Bayes' theorem in Excel involves a few steps:

Let's assume you have categorical data representing two variables: Variable A
and Variable B.

1. Constructing Contingency Table:


• Arrange your data in a table with Variable A categories as row headers
and Variable B categories as column headers.
• Count the occurrences of each combination and fill in the table.
2. Computing Marginal Probabilities:
• Calculate the total counts for each category of Variable A and Variable B
separately (marginal totals).
• Divide these totals by the overall sample size to get marginal
probabilities.
3. Computing Conditional Probabilities:
• Calculate conditional probabilities by dividing the count of each cell in
the contingency table by the corresponding row's total (for conditional
probabilities of Variable B given Variable A) or column's total (for
conditional probabilities of Variable A given Variable B).
4. Applying Bayes' Theorem:
• Calculate the probabilities based on Bayes' Theorem formula:
P(A∣B)=P(B)P(B∣A)×P(A)/P(B)
where:
• P(A∣B) is the probability of A given B.
• P(B∣A) is the probability of B given A.
• P(A) is the marginal probability of A.
• P(B) is the marginal probability of B.

Here's an example of how you can perform these calculations in Excel:

1. Contingency Table: Arrange your data in a table.


2. Marginal Probabilities:
• Calculate the total count for each Variable A category and Variable B
category.
• Compute the marginal probabilities by dividing these totals by the
overall sample size.
3. Conditional Probabilities:
• For each cell in the contingency table, divide the cell count by the
corresponding row or column total.
4. Bayes' Theorem:
• Use the formula to calculate the conditional probability based on Bayes'
Theorem. For instance, if you want to find P(A∣B):
• P(A) is the marginal probability of A.

28
• P(B∣A) is the conditional probability of B given A.
• P(B) is the marginal probability of B.

Finally, interpret the results by understanding how variables A and B are related based
on the conditional and marginal probabilities. The conditional probabilities calculated
using Bayes' Theorem can provide insights into the relationship between the variables
given certain conditions.

Ensure your data is properly organized in Excel to perform these calculations


accurately. Use appropriate Excel formulas for calculations and apply the Bayes'
Theorem formula as described above to interpret the relationships between the
variables.

29
SUMMARY

1. Spreadsheet Software:
• Excel is a widely used spreadsheet software developed by Microsoft,
part of the Microsoft Office suite.
• It offers a grid interface composed of rows and columns, where users
can organize, manipulate, and analyze data efficiently.
2. Data Organization and Manipulation:
• Excel is renowned for its ability to organize data into spreadsheets,
facilitating tasks like data entry, sorting, filtering, and data manipulation.
• Users can perform mathematical calculations, create formulas, and
utilize built-in functions to analyze and manipulate data easily.
3. Formulas and Functions:
• Excel provides an extensive library of formulas and functions, ranging
from basic arithmetic operations (SUM, AVERAGE, MAX, MIN) to
complex calculations (IF, VLOOKUP, INDEX-MATCH, etc.).
• Formulas and functions enable users to perform calculations, make
decisions, and perform data lookups efficiently.
4. Charts and Graphs:
• Excel offers various chart types (bar, line, pie, etc.) to visually represent
data, making it easier to understand trends, patterns, and relationships
within the data.
• Users can create and customize charts using Excel's charting tools.
5. Data Analysis Tools:
• Excel includes tools for data analysis such as sorting, filtering, pivot
tables, and conditional formatting.
• These tools aid in summarizing and visualizing data, identifying trends,
and extracting meaningful insights.
6. Data Import and Export:
• Excel supports importing data from various sources like text files,
databases, web queries, and other Excel workbooks.
• Users can also export Excel data to different file formats for sharing or
integration with other software.
7. Data Visualization and Reporting:
• Excel's features enable users to create professional-looking reports,
dashboards, and presentations using data visualization tools and
formatting options.

30
31

You might also like