Wednesday, 2 August 2017

Lookup Function


This function is useful when we want to get the approximate match of any value.


Summary 
The Excel LOOKUP function performs an approximate match lookup in a one-column or one-row range, and returns the corresponding value from another one-column or one-row range. LOOKUP's default behavior makes it useful for solving certain problems in Excel.
Purpose 
Look up a value in a one-column range.

Return value 
A value in the result vector.

Syntax 
=LOOKUP (lookup_value, lookup_vector, [result_vector])

Arguments 
lookup_value - The value to search for.
lookup_vector - The one-row, or one-column range to search.
result_vector - [optional] The one-row, or one-column range of results.


Usage notes 
Note: This page describes the vector form of the LOOKUP function. In this case, a vector refers to a one-column or one-row range.

Use the LOOKUP function to look up a value in a one-column or one-row range, and retrieve a value from the same position in another one-column or one-row range. The lookup function has two forms, vector and array. This article describes the vector form.

LOOKUP has default behaviors that make it useful when solving certain problems (i.e. retrieve approximate matched value instead of position, find the value in the last non-empty cell in a row or column, etc.). LOOKUP assumes that values in lookup_vector are sorted in ascending order and always performs an approximate match. When LOOKUP can't find a match, it will match the next smallest value.

LOOKUP assumes that lookup_vector is sorted in ascending order.
When lookup-value can't be found, LOOKUP will match the next smallest value.
When lookup_value is greater than all values in lookup_vector, LOOKUP matches the last value.
When lookup_value is less than all (i.e. the first) value in lookup_vector, LOOKUP returns #N/A.
result_vector must be the same size as lookup_vector.
LOOKUP is not case-sensitive

INDIRECT Function in Excel with Few Examples


This function is has a good usage in dynamic range for summing up, for average and so on.

There is no need to directly select the cells range we can only give the cell reference which shows the numbers or cell reference.

Summary 

The Excel INDIRECT function returns a valid reference from a given text string. Use INDIRECT when you need to convert a reference assembled as text into a proper reference.


Purpose 

Create a reference from text.


Return value 

A valid worksheet reference.


Syntax 

=INDIRECT (ref_text, [a1])


Arguments 

ref_text - A reference supplied as text.

a1 - [optional] A boolean to indicate A1 or R1C1-style reference. Default is TRUE = A1 style.


The INDIRECT function in Excel returns the reference specified by a text string.
1.       For example, the INDIRECT function below reduces to =INDIRECT("B2"), =B2, 5


This is very useful function for dynamic range. Below you can find the result without using the INDIRECT function.


2.       For example, the function below reduces to =SUM(INDIRECT("A3:A5")), =SUM(A3:A5), 60



3.       For example, the function below reduces to ==AVERAGE(INDIRECT("A"&B1&":A"&B2)), 20








Lookup Function

This function is useful when we want to get the approximate match of any value. Summary  The Excel LOOKUP function performs ...