Differences Between Pivottables and Pivotcharts: Pivottable: O O O O O O O
Differences Between Pivottables and Pivotcharts: Pivottable: O O O O O O O
PivotTable
PivotChart
Key Differences:
Use a PivotTable when you need to analyze data in detail, perform calculations, and
compare values across different categories.
Use a PivotChart when you want to visualize data patterns, trends, and relationships
for clearer communication and understanding.
Difference between Absolute vs Relative reference
Relative References:
Definition: They use references like A2, where A is the column and 2 is the row.
Behaviour when copied: When you copy a formula containing relative references to
another cell, the references shift relative to the original position. For
example, copying a formula from A2 to B3 changes the references to B3 and B4.
Advantage: Great for quickly adapting formulas to surrounding cells when copied.
Disadvantage: Can become inaccurate if copied across large distances or complex
layouts.
Absolute References:
Definition: They use dollar signs to "lock" the specific cell. Examples include
$A$2, where both column and row are absolute.
Behaviour when copied: No matter where you copy an absolute reference, it always
points to the same cell.
Advantage: Ensures consistency and accuracy, especially when dealing with specific
values or calculations.
Disadvantage: Less flexible than relative references; requires manual adjustments if
surrounding cells need to change.
Formulas can be used to calculate values within a Functions can be used to find maximum or
minimum values throughout the spreadsheet. Few
other functions include – finding the lowest or
range of cells or a single cell.
highest digit or arranging values in ascending or
descending order and for many other functions.
A Formula cannot be modified according to your But a function can be modified based on the
requirements. developer’s requirements.
A formula cannot be used as a function. A function can be used as a formula.
Simple calculations can be performed manually While complex calculations using a function are
using a formula. more difficult to do.
Whereas, Functions follow a particular syntax in
Formulas do not have a particular syntax in excel.
excel. Syntax has to be followed in order.
Predefined parameters are not relevant to a Functions have their own set of pre-designed
formula. parameters on which to operate to get outcomes.
1. Scenario Manager:
o Allows you to create and compare multiple scenarios, each with different
input values.
o Useful for analyzing "what-if" questions like "What if sales increase by 10%?"
or "What if costs decrease by 5%?"
o Excel has a built-in Scenario Manager tool.
Label columns for variables like "Lemonade Price," "Cups Sold," "Cost per Cup," and
"Profit."
Fill in your base assumptions like price = $0.50, cups sold = 100, cost per cup = $0.20.
Use a formula in the "Profit" column like (Lemonade Price - Cost per Cup) * Cups
Sold.
2. Open Scenario Manager:
Go to the "Data" tab and click "What-If Analysis" > "Scenario Manager".
3. Add Scenarios:
4. Analyze Results:
2. Goal Seek:
o Works in reverse compared to Scenario Manager.
o Instead of changing input values to see the impact on an output, you specify
a desired output and Goal Seek finds the input value that achieves it.
o Example: "What sales volume is needed to reach a profit of $100,000?"
Example 1: Calculating Required Sales Volume:
Suppose a company wants to determine the sales volume needed to reach a target
profit of $100,000.
They have a spreadsheet with formulas for revenue, costs, and profit.
They can use Goal Seek to adjust the sales volume cell until the profit cell reaches
$100,000.
Example 2: Finding Loan Payment:
A person wants to calculate the monthly payment needed to pay off a loan within a
certain time frame.
They have a spreadsheet with loan details (principal, interest rate, term) and a
formula for monthly payment.
Goal Seek can find the payment amount that results in a zero balance at the end of
the loan term.
3. Data Tables:
o Create a table that systematically substitutes different values into one or two
variables in a formula and displays the resulting calculations.
o Helps visualize the impact of different input values on multiple output values
simultaneously.
o Excel has built-in Data Table functionality.
Example : A small business owner wants to analyze how different loan interest rates and
loan amounts will affect their monthly payments.
Steps:
4. Sensitivity Analysis:
o Examines how sensitive the model's output is to changes in individual input
variables.
o Identifies the most critical factors affecting results.
o Helps prioritize efforts for data collection and accuracy.
5. Simulation:
o Uses random number generators to create a large number of possible
scenarios based on probability distributions of input variables.
o Provides a range of potential outcomes and their likelihoods, rather than just
a single result.
o Excel has built-in tools like Random Number Generation and Analysis ToolPak
for simulations.
How to insert charts and tables in Excel:
Inserting a Chart:
Inserting a Table:
You can also use the following shortcut keys to navigate between cell comments:
Ctrl+Shift+N - Next comment
Ctrl+Shift+P - Previous comment
Ctrl+Shift+End - Last comment
Ctrl+Shift+Home - First comment
Cell comments can be a helpful way to add additional information to your spreadsheets.
They can also be used to collaborate with others on spreadsheets.
Here are the significant benefits of using comments in Excel:
Clarity and Explanation:
Functions:
IF, IFS, Sum, Average,NPV,IRR,XIRR, MIRR, DATE, DAY,YEAR, Concatenate,
Lookup, Choose, Index, Match, Transpose,Text Functions.
Logical Functions in Excel are used to make decisions and perform different actions
based on whether a given condition is true or false. Here are the most common
logical functions:
1. IF Function:
Purpose: Returns one value if a condition is true, and another value if it's
false.
Syntax: IF(logical_test, value_if_true, value_if_false)
Example: IF(A1>50, "Pass", "Fail")
2. IFS Function:
Purpose: Inverts the logic of its argument, returning TRUE if the argument is
FALSE, and FALSE if the argument is TRUE.
Syntax: NOT(logical)
Example: NOT(A1=0)
Mathematical and Statistical Functions in Excel are used to perform a wide range of
calculations, from basic arithmetic to complex statistical analysis.
If you want to find out the future value of a particular investment which has a constant
interest rate and periodic payment, use the following formula –
FV Example
A has invested the US $100 in 2016. The payment has been made yearly. The interest rate is
10% p.a. What would be the FV in 2019?
Solution: In excel, we will put the equation as follows –
= FV (10%, 3, 1, – 100)
= US $129.79
2. FVSCHEDULE: Financial Function in Excel
This financial function is important when you need to calculate the future value with
the variable interest rate. Have a look at the function below –
FVSCHEDULE Example:
M has invested the US $100 at the end of 2016. It is expected that the interest rate will
change every year. In 2017, 2018 & 2019, the interest rates would be 4%, 6% & 5%
respectively. What would be the FV in 2019?
Solution: In excel, we will do the following –
If you know how to calculate FV, it’s easier for you to find out PV. Here’s how –
Net Present Value is the sum total of positive and negative cash flows over the years. Here’s
how we will represent it in excel –
This financial function is similar to the NPV with a twist. Here the payment and income are
not periodic. Rather specific dates are mentioned for each payment and income. Here’s how
we will calculate it –
XNPV Example
Rate of Discount 5%
IRR Example
Here is a series of data from which we need to find IRR –
Details In US $
Details In US $ Dates
The Modified Internal Rate of Return is one step ahead of the Internal Rate of Return. MIRR
signifies that the investment is profitable and is used in business. MIRR is calculated by
assuming NPV as zero. Here’s how to calculate MIRR in excel –
Details In US $
1. Creating Dates:
TODAY(): Returns the current date.
NOW(): Returns the current date and time.
DATE(year, month, day): Combines year, month, and day values to create a date.
2. Extracting Parts of Dates:
YEAR(date): Returns the year from a date.
MONTH(date): Returns the month number (1-12) from a date.
DAY(date): Returns the day of the month from a date.
WEEKDAY(date, [return_type]): Returns the day of the week as a number (1-7) or
text string.
Text Functions in Excel:
1. Joining Text:
CONCATENATE(text1, [text2], ...): Combines multiple text strings into a single string.
TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...): Joins text strings with a
specified delimiter, optionally ignoring empty cells.
LOOKUP
Excel - Using the VLOOKUP and HLOOKUP Functions
This document explains the functions of VLOOKUP and HLOOKUP and how to use them in a
spreadsheet. It can be used in all versions of Microsoft Excel.
VLOOKUP and HLOOKUP are functions in Excel that allow you to search a table of data and
based on what the user has supplied and give appropriate information from that table.
If you have a table of Student ID numbers, Student Names and Grades, you can set up Excel
so that if a Student ID number is supplied by the user, it will look through the table and
output the student's name and grade.
VLOOKUP allows you to search a table that is set up vertically. That is, all of the data is set
up in columns and each column is responsible for one kind of data. In the Student Record
example, there would be a separate column of data for Student Names, one for Student ID
numbers, etc.
HLOOKUP is the exact same function, but looks up data that has been formatted by rows
instead of columns.
The lookup_value is the user input. This is the value that the function uses to search on.
The table_array is the area of cells in which the table is located. This includes not only the
column being searched on, but the data columns for which you are going to get the values
that you need.
The col_index_num is the column of data that contains the answer that you want. If your
table is set up as: column 1 - Student ID Number, column 2 - Student Names, column 3 -
Grades and you inputted a Student ID Number and you want to retrieve the grade that was
received for that person, the col_index_num would be 3. 3 is the column number of the
data column for the ANSWER that you are trying to look up.
Range_lookup is a TRUE or FALSE value. When set to TRUE, the lookup function gives the
closest match to the lookup_value without going over the lookup_value. When set to FALSE,
an exact match must be found to the lookup_value or the function will return #N/A. Note,
this requires that the column containing the lookup_value be formatted in ascending order.
1. Select the cell that will contain the answer to the VLOOKUP and access the Insert
Function dialog, which depends upon the version of Excel that you are using:
o For Excel 2007 and 2010: Go to the Formula tab on the ribbon, and
choose Insert Function.
o For Excel 2003 and earlier: Select Insert -> Function...
2. Under the Function Category, choose either All or Lookup & Reference.
4. The Function Wizard for VLOOKUP will then display. The 4 values talked about above
(lookup_value, table_array, col_index_num, range_lookup) are required by the
function. Each line for each value required. If you put the cursor into the first line for
lookup_value, down below it explains what the lookup_value is for your reference.
Similar information is displayed when the cursor is in any of the other fields.
5. Enter in the lookup_value either by typing in the number for the cell, or, by selecting
the cell on the worksheet.
6. Enter in the table_array by typing in the numbers for the cells, or, by selecting the
group of cells on the worksheet.
7. Enter in the number for column which contains the data that you wish to obtain in
the col_index_num area.
8. Enter into the range_lookup field the value TRUE if the function should accept the
closest value to your lookup_value without going over or FALSE if an exact match is
required.
Short Notes
Macros
Macros are small programs or sets of instructions that automate repetitive tasks in
Excel.
They're created using a programming language called Visual Basic for Applications
(VBA).
Macros can record your actions in Excel and then replay them as needed.
You can create custom macros to execute complex tasks, calculations, and
formatting that aren't easily achievable with standard formulas and functions.
Remember that whatever key strokes and mouse clicks you do, will be recorded now.
Click Macros.
Conditional Formatting (CF) is a tool that allows you to apply formats to a cell or range of
cells, and have that formatting change depending on the value of the cell or the value of a
formula. For example, you can have a cell appear bold only when the value of the cell is
greater than 100. When the value of the cell meets the format condition, the format you
select is applied to the cell. If the value of the cell does not meet the format condition, the
cell's default formatting is used.