Using Referencing, Functions and Formulas: Prof. Himanshu Joshi International Management Institute
Using Referencing, Functions and Formulas: Prof. Himanshu Joshi International Management Institute
An absolute reference is a cell reference that does not change when you copy the formula to a new location. To create an absolute reference, you preface the column and row designations with a dollar sign ($). For example, the absolute reference for B5 would be $B$5. This cell reference would stay the same no matter where you copied the formula.
Information Technology for Decision Making (ITDM)
A relative reference is a cell reference that shifts when you copy it to a new location on a worksheet. A relative reference changes in relation to the change of location. If you copy a formula to a cell three rows down and five columns to the right, a relative reference to cell B5 in the source cell would become G8 in the destination cell.
A mixed reference combines both relative and absolute cell references. You can effectively lock either the row or the column in a mixed reference. For example, in the case of $B5, the row reference would shift, but the column reference would not In the case of B$5, the column reference would shift, but the row reference would not You can switch between absolute, relative and mixed references in the formula easily in the edit mode or on the formula bar by selecting the cell reference in your formula and then pressing the F4 key repeatedly to toggle through the reference options.
Information Technology for Decision Making (ITDM)
A formula is entered into a cell, performs a calculation and returns a result. A formula can consist of
Mathematical operators Cell references (including named cells and ranges) Values or text Worksheet functions (SUM, AVERAGE) Can be entered manually (typing inside the formula bar) Or by pointing to cell references.
Information Technology for Decision Making (ITDM)
A formula is comprised of operands and operators. An operand is an element that you want included in the calculation May either be
a constant value (i.e., any number, date, or text entry) a range name a cell address
An operator is the symbol used to determine what type of calculation to perform on the operand(s) Excel provides four categories of calculation operators
arithmetic (+, -, *, /, %, and ^) comparison (=, >, <, >=, <=, <>) text (&) reference (for example, the colon [:], comma [,], and space [ ] characters).
Information Technology for Decision Making (ITDM)
A basic formula example to add up a small number of cells is =A1+A2+A3+A4, but that method would be cumbersome if there were 100 cells to add up. You can easily calculate the sum of a large number of cells by using a function SUM(A1:A100). A function is a predefined, or built-in, formula for a commonly used calculation. You can also use functions within functions. Consider the expression =ROUND(AVERAGE(A1:A100),1). Each function has a syntax which specifies the order in which you must enter the different parts of the function. Arguments are numbers, text, or cell references used by the function to calculate a value. Some arguments are optional
Function Categories
Category Financial Description Determine loan payments, present and future values, depreciation schedules, and rates of return
Date & Time Perform date and time calculations; input the current date and/or time into a cell
Math & Trig Sum a range of values; perform trigonometric calculations; determine absolute and rounded values Statistical Determine the average, median, minimum, and maximum values for a range; calculate statistical measures, like variance and standard deviation
Information Technology for Decision Making (ITDM)
Function Categories
Lookup & Reference Look up and select values from a range; return the active cells column letter and row number
Database
Text
Perform mathematical and statistical calculations on worksheet values in a table or list format
Manipulate, compare, format, and extract textual information; convert values to text (and vice versa) Perform conditional calculations using IF statements; compare and evaluate values Return information about the current environment; perform error-checking and troubleshooting
Information Technology for Decision Making (ITDM)
Logical Information
Logical Function
A function that determines whether a condition is true or false is called a logical function. Excel supports several logical functions such as AND, FALSE, IF, NOT, OR and TRUE. A very common function is the IF function, which uses a logical test to determine whether an expression is true or false, and then returns one value if true or another value if false. The logical test is constructed using a comparison operator that compares two expressions to determine if they are equal, not equal, if one is greater than the other, and so forth. The comparison operators are =, >, >=, <, <=, and <> You can also make comparisons with text strings. You must enclose text strings within quotation marks.
Information Technology for Decision Making (ITDM)
The arguments for the IF function are: IF(logical_test,value_if_true,value_if_false) For example, the function =IF(A1=10,20,30) tests whether the value in cell A1 is equal to 10 If it is, the function returns the value 20, otherwise the function returns the value 30 Cell A1 could be empty or contain anything else besides the value 10 and the logical test would be false; therefore, the function returns the value 30 To insert an IF function, click the Insert Function button and search for the IF function, then click OK.
The TODAY and NOW functions always display the current date and time. You will not normally see the time portion unless you have formatted the cell to display it. If you use the TODAY or NOW function in a cell, the date in the cell is updated to reflect the current date and time of your computer each time you open the workbook.
MATCH function returns the position of a value in a list. Match type can be -1, 0 or 1. If no match type is given, match type =1 is assumed.
1 - largest value less than or equal to lookup value 0 exact match -1 smallest value greater than or equal to lookup value.
Lookup Function
It allows you to take any value entered, find it in a designated table, then return a value from that same table. Both vertical lookup (VLOOKUP) and horizontal lookup (HLOOKUP) is possible. Syntax of VLOOKUP(lookup value, table range, column index, [range lookup]) Lookup value: value we want to lookup for Table range: is the range of cells in which we try to match up the lookup value. Column Index: Column number in table range from which the lookup value is to be obtained. Range lookup (optional argument): If range lookup is True or omitted, then it tries to find the close match. If range lookup is given as False, an exact match is found and in no exact match is found, excel returns a #N/A response. Note: Firstly, the values in the first column must be sorted ascending, or the LOOKUP will not work. Secondly, since Range_lookup will be left blank, if the Lookup Value is not found, the computer will choose the next lowest value.
Information Technology for Decision Making (ITDM)
Inserting a Function
To insert a function, first click the cell in which you wish to insert the function. Click the Insert Function button. This action will open the Insert Function dialog box as shown below.
Financial Function
Financial functions are very useful to perform financial related operations. Common functions are PV, FV, PMT, PPMT,IPMT etc. All these financial functions will use similar arguments that differ based upon which function you are using. Think of the arguments as members of an equation The arguments represent the values of the equation that are known and the function provides the solution for a single variable, or unknown, value
The PV function calculates the present value of an investment. The FV function calculates the future value of an investment based on periodic, constant payments and a constant interest rate per period. The PMT function calculates the entire periodic payment of the loan. The PPMT function calculates just the principal payment portion of the overall periodic payment. The IPMT function provides the interest payment portion of the overall periodic loan payment.