LOOKUP, VLOOKUP, and HLOOKUP Functions

19 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€95.85
List Price:  €134.19
You save:  €38.34
£79.54
List Price:  £111.35
You save:  £31.81
CA$143.73
List Price:  CA$201.23
You save:  CA$57.50
A$159.93
List Price:  A$223.91
You save:  A$63.97
S$135.54
List Price:  S$189.77
You save:  S$54.22
HK$777.83
List Price:  HK$1,089
You save:  HK$311.16
CHF 89.34
List Price:  CHF 125.09
You save:  CHF 35.74
NOK kr1,131.88
List Price:  NOK kr1,584.68
You save:  NOK kr452.80
DKK kr715.08
List Price:  DKK kr1,001.15
You save:  DKK kr286.06
NZ$176.75
List Price:  NZ$247.46
You save:  NZ$70.70
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳11,945.33
List Price:  ৳16,723.94
You save:  ৳4,778.61
₹8,493.77
List Price:  ₹11,891.62
You save:  ₹3,397.85
RM450.75
List Price:  RM631.07
You save:  RM180.32
₦154,938.50
List Price:  ₦216,920.10
You save:  ₦61,981.60
₨27,824.38
List Price:  ₨38,955.25
You save:  ₨11,130.86
฿3,419.79
List Price:  ฿4,787.84
You save:  ฿1,368.05
₺3,519.01
List Price:  ₺4,926.76
You save:  ₺1,407.74
B$608.53
List Price:  B$851.97
You save:  B$243.44
R1,830.80
List Price:  R2,563.19
You save:  R732.39
Лв187.32
List Price:  Лв262.25
You save:  Лв74.93
₩144,627.53
List Price:  ₩202,484.33
You save:  ₩57,856.80
₪365.39
List Price:  ₪511.57
You save:  ₪146.17
₱5,882.91
List Price:  ₱8,236.31
You save:  ₱2,353.40
¥15,643.93
List Price:  ¥21,902.13
You save:  ¥6,258.20
MX$2,007.58
List Price:  MX$2,810.70
You save:  MX$803.11
QR364.41
List Price:  QR510.19
You save:  QR145.78
P1,381.63
List Price:  P1,934.33
You save:  P552.70
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,087.81
List Price:  E£7,123.14
You save:  E£2,035.32
ብር12,764.56
List Price:  ብር17,870.89
You save:  ብር5,106.33
Kz91,790.82
List Price:  Kz128,510.82
You save:  Kz36,720
CLP$98,905.10
List Price:  CLP$138,471.10
You save:  CLP$39,566
CN¥729.56
List Price:  CN¥1,021.42
You save:  CN¥291.85
RD$6,087.13
List Price:  RD$8,522.23
You save:  RD$2,435.09
DA13,485.25
List Price:  DA18,879.89
You save:  DA5,394.64
FJ$231.62
List Price:  FJ$324.28
You save:  FJ$92.66
Q770.23
List Price:  Q1,078.35
You save:  Q308.12
GY$20,913.67
List Price:  GY$29,279.97
You save:  GY$8,366.30
ISK kr13,911.60
List Price:  ISK kr19,476.80
You save:  ISK kr5,565.20
DH1,006.07
List Price:  DH1,408.53
You save:  DH402.46
L1,836.70
List Price:  L2,571.46
You save:  L734.75
ден5,900.06
List Price:  ден8,260.33
You save:  ден2,360.26
MOP$800.26
List Price:  MOP$1,120.39
You save:  MOP$320.13
N$1,840.36
List Price:  N$2,576.58
You save:  N$736.22
C$3,678.42
List Price:  C$5,149.94
You save:  C$1,471.51
रु13,597.49
List Price:  रु19,037.04
You save:  रु5,439.54
S/372.23
List Price:  S/521.13
You save:  S/148.90
K405.36
List Price:  K567.52
You save:  K162.16
SAR375.62
List Price:  SAR525.88
You save:  SAR150.26
ZK2,766.46
List Price:  ZK3,873.15
You save:  ZK1,106.69
L477.10
List Price:  L667.96
You save:  L190.86
Kč2,408.98
List Price:  Kč3,372.68
You save:  Kč963.69
Ft39,689.03
List Price:  Ft55,566.23
You save:  Ft15,877.20
SEK kr1,103.13
List Price:  SEK kr1,544.43
You save:  SEK kr441.30
ARS$102,160.40
List Price:  ARS$143,028.65
You save:  ARS$40,868.24
Bs690.76
List Price:  Bs967.10
You save:  Bs276.33
COP$435,928.80
List Price:  COP$610,317.76
You save:  COP$174,388.96
₡50,434.81
List Price:  ₡70,610.75
You save:  ₡20,175.94
L2,537.51
List Price:  L3,552.62
You save:  L1,015.10
₲779,455.88
List Price:  ₲1,091,269.42
You save:  ₲311,813.53
$U4,474.38
List Price:  $U6,264.31
You save:  $U1,789.93
zł408.66
List Price:  zł572.14
You save:  zł163.48
Already have an account? Log In

Transcript

Objectives by the end you should be able to use cell function to get information about cell use other information functions like is blank, his formula and his number, use error finding function is error is E rr, and if error, use the OFFSET function, use the counter function, use the indirect function construct dynamic named ranges construct dynamic formulas. Today, I will share with you some functions in Excel that if use efficiently can give you an added advantage. Let us see them. Let us go to formulas, more functions information. Now, here is the list of functions that help us get some of the other information about Some cells or some functions in Excel, let us state the first one that is cell. The cell function helps us find a number of things about certain cells in Excel.

This shows a list of things that we can find, we can find an address or a cell or a column number of cell, color, contents and so on and so forth. Let us see how to find address of a cell. For that, we would write equal to sell, select address from this list, comma. Let's take this cell for now. close bracket, enter. So, as we can see, it returned the value as before.

We could also use the cell formula to find a column number of a cell. For that, we will select column, comma, let's take this cell for now f4, close bracket, and enter. So as this cell belongs to the E column, which is the fifth number, it returned five as value. Similarly, we can use this to find row number of a cell for that field, right cell row. And let's select the cell for now, see 12. So as we know that since it is a cell belonging in a 12 row, the output will be 12.

We can also use cell to find out a file name of the file that we are working or some other file we want to refer to. For that filled right cell. Select File name, comma and give reference to any cell in the file. For now, we will just give reference to a version of the same file close bracket and enter. So, as we can see, it gives us the file name with the sheet name from where we are referring to. Let us see some other formulas, there is a category of functions under more functions in the information tab that start with the word is.

Now, these functions give us an output as true or false depending whether the condition is met or not. For example, the first one over here is, is blank. Now is blank function tells us if a particular value of a cell that we have referring to is blank or not. For example, let us just double click this and select this cell. When we click on OK, it says that it is false That means this particular cell, which we referred to is not empty. So, it is not blank.

Similarly, there are other functions which give us the information, whether the cell is having any error or is having an even number or an odd number or the cell is a text, non text or a number it also gives us an information if the cell that we are referring to has formula or not. So, these functions can be used to give us certain information about the cells that we want to refer to and you can use them in formulas to perform certain calculations based on the outcome of these functions. Now, let us look at three error finding functions. Let me first write a V lookup function. Let me find out the value that is there in Region two, for me month, using this V lookup function for that I will write equal to V lookup in quotes May, then I will select the cells, comma, column index for region two would be three, because the first column is the month, second is Region One, third column is region two, hence, I have written three comma false because I want a perfect match, close bracket and hit on Enter.

So it tells me that for the month of me and region to the value is 135. Now we have got an answer over here. What if there was some error in this function or the outcome, let me purposely add an error over here. Instead of me, let me write me with an error and extra y and hit on Enter. So it gives me an error hash na that is not available. If I want to know that whether this formula gives an error or not, I can use this function is error and reference to this cell, hit on Enter.

So it tells me that a particular calculation has gone wrong and there's some error to it. Similarly, we can also use ease er our function where the value of the error is not of the type hash na. It can be any other type like hash value, hash reference, whether reference is not found divided by zero error or some other errors, which are mentioned over here. The third interesting error formula, which help us to give an output, which is logical. Or in other words, if there is an error in any function, and we don't want a sheet to show that error, we can put some value instead of an error using that function. Let me show you how that function is.

If error, let me select this, let me write a function again. We look up me with wrong spelling, comma same table array, same column number and false as we had selected earlier. Comma. Now if there is an error in this particular calculation should return one, close bracket, enter. So as we know that there was an error in this function, hence it has returned one. If I correct this formula and write the correct value of me and hit on Enter, it gives me the output as 135.

So whenever there is an error, it will give me the value that I want to specify. I can also write some text over here. If I don't want a numerical value for that, this is a very useful formula. Having the knowledge of functions that are placed over here under the information tab, let us move ahead and look at some other functions which are marked under lookup and reference. Let us see offset and indirect OFFSET function. returns a cell or a range of cells, that is specified by us to be a certain number of rows, or columns away from the mentioned cells, let us understand it with an example.

Suppose if I want to find out the region for sales in the month of March, for that, I would write equal to offset. Let's take this reference as a three cell, comma, how many rows down. Now, since we want to find out for the month of March, I would write three, three rows down, or three months, comma, columns. Now if I want to find out the region four, I would write first, second, third, fourth, so four columns wave from this particular cell, a three, and height and width. These two are optional over here. If we want only one cell to be returned, we would not write anything.

But if we want to be specific, we can write one cell height and one cell width, close bracket, enter. So it perfectly gives us 105. As an answer. We can use this same formula to find out any other cells from this particular table, or this particular sheet. For example, now if I want to find out for the month of December, for region three, I would simply change these two values. Hit on Enter.

That's it. I'll get my output. OFFSET function can also be used to calculate the sum of All these values, let us see how let us write some, because we want to find out the sum offset, let us select the same reference as before a three cell comma one row one drew down comma one column I had the height would be 12 because the want to find out for all the 12 months and the width would be one because it is extending only for one column, close bracket, close the outer bracket hit on Enter. This value is nothing but sum of all these values. Let us verify it by using the AutoSum function. Hence, we can use offset and sum together to find some of any regions over here.

We only have to change this particular value, which of the column number and we can find out some of any of this regions very easily. OFFSET function can also be used to create a dynamic named range. Let us see how let us first write some random values here, I have written some values, let me assign a name to this range of cells, I have given it name as value. Now, if I want to find out some of this I would write some value close bracket enter. So, I have got this sum of these values What if I want to add a value over here, but as you can see, once I have written this as sum of name range value, it does not expand automatically if I have To expand this particular formula to extend anytime I add any values over here, then I can use the OFFSET function in the name range.

Let me show you how. Let us go to the Name Manager, the value name range that we have created. Let us edit it, it refers to, we would write equal to offset, open bracket. Let us select the first cell over here, comma, zero rows down because he want to started from row one itself, comma zero columns ahead because we want to calculate in a column only comma for the height we want to have some dynamism over there. Hence, the height will not be specified by numbers. Instead, we would write a formula that can It's the number of cells that have certain numeric value.

And the formula for the same is count a. So we would write count a, select this column that is a column, close bracket. And for the width, we would write it as one only, because only one column we want to calculate close bracket. Okay, we'll close this. And now, as you can see, the value in column C has changed. Let us try to add some more values and some more.

So automatically this name range changes as per the number of cells that I added. Now, since this is a dynamic named range, if we select the cells over here, it will not show the name range in this particular box. Hence, we need to be a little careful when we use dice nickname ranges Let us now have a look at a very interesting function called as indirect. This indirect function returns the reference specified by a text string. Let me give you an example. Let me write before over here and let me write indirect.

And let me give reference to the cell Jeevan where I have written before close bracket and enter. So, what we see, we see that indirect function has gone to the reference given taken the value that was written over there before searched in the sheet for the cell B and for and give us the output as one zero to change this value to say d 11. So, my indirect function will go to G one, take this value as d 11 search over here and return me D column 11th row that is 141 value. Interesting, isn't it? So, we can find out any value from the cell by using indirect function and changing just one cell. Let me show you all how to use indirect function to find out some of the some values in this table.

Based on my conditions, I want to find out the sum in Region two, but not for all the values I want to specify a certain range over here. For an example, let me take fifth row till 10th row. So I want to find out the values from this particular cell till this cell only And I want to change this anytime I want for that, let me show you how to use indirect and some together Let us write some indirect. Now, we want to give a dynamic reference over here, we would use now since it is column C, we would write C in quotes and this is used to concatenate let me give the reference of this cell h4 and we want colon C and quotes and reference to the cell h5. Let me explain you what I have done over here. We want to find out the values between C five and C 10.

Correct. So, now, we want c five to be written over here is two that his colon see 10 to be written over here, but we are using This end, so that it concatenates the value for these cells. When we hit on Enter, it gives us the sum of all the values between C five and C, then we can verify it from here 710. Now, with a change of only these cells, I can find out any values that I want, between a specified range dynamically. So that's the beauty of using indirect summary you have learned using the cell function to get information about the cell information function like is blank, his formula and his number, error finding functions his error is eerr. And if error, OFFSET function, counter function, indirect function constructing dynamic named ranges construction Dynamic formulas

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.