LOOKUP<\/strong>, which is also commonly used to search for certain data in a table and to retrieve certain information.<\/p>\n\n\n\nThese two formulas, although similar in their core functionality, are slightly different<\/strong>. In the example below, we will show how exactly<\/strong>.<\/p>\n\n\n\nUsing VLOOKUP<\/h2>\n\n\n\n For our example, we will use the table with students and their grades<\/strong> from different subjects, ranging from 50 to 100<\/strong>:<\/p>\n\n\n\n <\/figure>\n\n\n\nWe will first use the VLOOKUP<\/strong> to find a certain result from this table. VLOOKUP stands for Vertical Lookup<\/strong> and it searches the value in the column located leftmost in a table. Then it returns the value from a designated column in that same row. The syntax is :<\/p>\n\n\n\n=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])<\/code><\/pre>\n\n\n\nAnd the explanation of these values is as follows:<\/p>\n\n\n\n
\nlookup_value:<\/strong> The value that the user is searching for in the leftmost column<\/strong> of the table.<\/li>\n\n\n\ntable_array:<\/strong> The range where the data is stored.<\/li>\n\n\n\ncol_index_num:<\/strong> Column number<\/strong> (counting from the leftmost column of the table_array<\/strong>) from where we retrieve the data.<\/li>\n\n\n\nrange_lookup (optional):<\/strong> TRUE or FALSE (1 or 0) parameter<\/strong>. If it returns TRUE (or 1)<\/strong>, the function performs an approximate match<\/strong> (sorted data required).<\/strong> If the FALSE (or 0) is returned, it performs an exact match<\/strong>.<\/li>\n<\/ul>\n\n\n\nIf we want to find the grade for Jack from Geography<\/strong>, we can use the following VLOOKUP formula<\/strong> (we will put the formula in cell F2<\/strong>):<\/p>\n\n\n\n=VLOOKUP(\"Jack\", A2:D6, 3, FALSE)<\/code><\/pre>\n\n\n\nThe retrieving result will be number 56<\/strong>, which is the grade that Jack got in Geography:<\/p>\n\n\n\n <\/figure>\n\n\n\nIn our example, Jack is the lookup value<\/strong> (the value that we are aiming to find in the leftmost column- column A<\/strong>), A2:D6 is our range<\/strong>, where we are searching for the value, number 3 is the column index<\/strong> number, since we are aiming for Geography (column C)<\/strong>, and we enter FALSE<\/strong> because we want to retrieve the exact match.<\/p>\n\n\n\nUsing LOOKUP<\/h2>\n\n\n\n For the next thing, we will use the same table to show the LOOKUP function<\/strong>. This function is more generic and can perform horizontal and vertical lookups<\/strong>. But, for it to work, data has to be sorted in ascending order<\/strong>.<\/p>\n\n\n\nThe syntax of a regular LOOKUP<\/strong> looks like this:<\/p>\n\n\n\n\nlookup_value:<\/strong> The value that we are searching for in lookup_vector<\/strong>.<\/li>\n\n\n\nlookup_vector:<\/strong> Range that has the cell that we are looking for.<\/li>\n\n\n\nresult_vector (optional)<\/strong>: The range of cells that contains the values you want to return. If omitted, the function will return the corresponding value from the lookup_vector<\/strong>.<\/li>\n<\/ul>\n\n\n\nSince the names in our table are not ordered in ascending order<\/strong>, we need to do it ourselves. We will select the data in the first row, then go to Data >> Filter<\/strong>. After that, we will choose Sort A to Z<\/strong> in the dropdown of the first column<\/strong>:<\/p>\n\n\n\n <\/figure>\n\n\n\nWhen we do this, we will have our data in the right order<\/strong>:<\/p>\n\n\n\n <\/figure>\n\n\n\nNow we can use the LOOKUP function<\/strong> to find the grade in Math from Monica<\/strong>. We will insert the following formula in cell F2<\/strong>:<\/p>\n\n\n\n=LOOKUP(\"Monica\", A2:A6, B2:B6)<\/code><\/pre>\n\n\n\nAnd we will get the proper number- 97<\/strong>:<\/p>\n\n\n\n <\/figure>\n\n\n\nDifference Between LOOKUP and VLOOKUP<\/h2>\n\n\n\n Looking at these two formulas, they can get us pretty similar results, but they are obviously different. These are the key differences<\/strong> between the two:<\/p>\n\n\n\n\nLOOKUP <\/strong>can deal with both vertical and horizontal data (lookups)<\/strong> if the data is sorted in ascending order<\/strong>. VLOOKUP is designed specifically for vertical lookups<\/strong>.<\/li>\n\n\n\nVLOOKUP cannot function without a column number<\/strong> being specified. This column number serves the purpose of retrieving the value. In our example, it was column 3, where the Geography is located. LOOKUP does not require this particular parameter to function<\/strong>.<\/li>\n\n\n\nIt is easier to use VLOOKUP<\/strong> when the data is organized<\/strong> in a table with specific columns. LOOKUP is more flexible<\/strong>, but the downside<\/strong> is that it the data always needs to be sorted.<\/li>\n<\/ol>\n\n\n\nFor a general conclusion, if we are dealing with a specific value in the table<\/strong> that is lined vertically<\/strong>, VLOOKUP is a clear choice<\/strong>. However, if we need to be more flexible<\/strong> and we have data sorted out<\/strong>, the LOOKUP function<\/strong> is a better choice, especially as it works with vertical and horizontal lookups.<\/p>\n","protected":false},"excerpt":{"rendered":"VLOOKUP is one of the most widely used formulas in Excel. A similar formula, from the same family for that matter, is LOOKUP,…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170],"yoast_head":"\n
Difference Between LOOKUP and VLOOKUP Functions<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n