3-Data Referencing
3-Data Referencing
Data Referencing
✓ VLOOKUP syntax : VLOOKUP(lookup value, table range, column index, [range lookup])
✓ HLOOKUP syntax - HLOOKUP (lookup value, table range, row index, [range lookup])
Note
✓ Lookup value can be text, number, logical value, a name Or a reference
✓ If no exact match is obtained, Excel returns an #N/A (Not Available) response
✓ If the range lookup argument is True or omitted (Approximate match)
o The first column of the table range must be in ascending numerical order.
o If exact match does not exist → Excel bases the lookup on the largest value in the first column that is less than the lookup value
▪ In D13, the income of –$1,000 yields #N/A because –$1,000 is less than the lowest income level
▪ HIDE / UNHIDE : Home → Cells → Format → Visibility
Restricted Access - This presentation is only for IIM Lucknow Students
Lookup functions
✓ LOOKUP syntax : LOOKUP(lookup_value, Array)
o It looks in the first row or column of an array
o Lookup_value can be text, number, logical value, a name or a reference
o Searches based on the array dimensions, Returns value from same position in last row/column
• If there are more columns than rows, it searches in the first row
• If equal number, or more rows, it searches first column
Note
✓ If you set the row number to “0”, the INDEX function references the listed column
✓ If you set the column number to “0”, the INDEX function references the listed row in the array
✓ Usually, a circular reference indicates a formula contains an error – and Excel displays a warning telling you so!
✓ Occasionally, a circular reference is needed to accomplish a particular task.
o Note also that Excel’s iteration procedure is guaranteed to work only when solving systems of linear equations
✓ Enabling Circular reference:
o Goto File → Options → Formulas
o Click on Enable Iterative Calculation
9
The OFFSET function
✓ The OFFSET function is used to create a reference to a range that is a specified number of rows and columns away from a cell
or range of cells
✓ Perform a lookup operation based on the right-most column in a table range instead of the left-most column
✓ I download the most recent month’s unit sales. I would like my chart to update automatically. Is there an easy way to accomplish this?
✓ OFFSET(reference, rows moved, columns moved, height, width)
Note - Application
✓ INDIRECT function to change cell references in formulas without changing the formulas themselves.
✓ SHEETS() : Tells how many sheets in the workbook. Reference can be selected specific sheets.
✓ SHEET() : Returns the current sheet. Value helps to point the sheet number of selected cell.
✓ Filter based on
o Numbers (Grater than) - Top 10 (Can be Top 30 too), Above Average
o Date - This week, last week etc.,
o Text - Begin with etc.
o Color - Font, Cell color
✓ Remove duplicates
✓ Reapply filter
#DIV/0 The formula is trying to divide by 0-check that you have entered the correct cell reference or that you have not deleted data by mistake.
#N/A The formula is referring to a cell containing the NA function-check that you have entered the correct cell reference. If you are using a lookup
function, check that there is a match for the lookup value and that you have sorted the table correctly. If you are using an array formula,
make sure that any arguments have the same number of rows and columns as the range holding the array formula. If the formula is a
custom formula, it may not be available or you may have omitted an argument.
#NAME? Check your spelling-you may have spelled a function or defined name incorrectly or you may have forgotten to enclose text in double
quotation marks. Also check that you have not omitted the colon in a range reference or the single quotation marks around a sheet name.
#NULL! Make sure that you have entered references to cell ranges correctly-the formula may be referring to a nonexistent intersection between two
ranges. Also check that you are using the correct range operator and that you have not entered a space instead of a comma.
#NUM! Check that the arguments in the function are numbers or cells containing numbers. If you are using an iteration function like IRR or RATE,
Excel may not be able to find a result; you can try increasing the number of iterations in Excel Options. A #NUM! error will also appear if a
number is too large or too small for Excel to calculate.
#REF! Check the cell references-you may have deleted a cell or cut or copied the formula, rendering any references invalid. If you are using an OLE
link, make sure that the program is running or you may be linking to a DDE topic that is not available
#VALUE! Check that the arguments in the function are the correct data type, that you have used the correct operands, or that you have entered an
array formula properly
13
CELL function
Relative reference =B2 The column and the row both change when copied
Absolute reference =$B$2 The column and the row both do not change when copied
Absolute column reference =$B2 The column does not change when copied; the row does change
Absolute row reference =B$2 The row does not change when copied; the column does change
❖ MS Excel 2019 Data Analysis and Business Modeling, by Wayne L Winston, Microsoft Press
❖ Absolute and Relative References In MS Excel (Kyle Maclean, Lauren E. Cipriano, Gregory S. Zaric)
W16406-PDF-ENG