When we enter a formula, Excel prompts about: what the argument you need to enter now.Vlookup is a very versatile function which can be combined with other functions to get some desired result, one such situation is to calculate the sum of the data ( in numbers) based on the matching values, in such situations we can combine sum function with vlookup function, the method is as follows =SUM(Vlookup(reference value, table array, index number, match). Here we take the table with sales for January.ĭownload example functions VLOOKUP and HLOOKUP There are all the same in addition to the range. The HLOOKUP function «takes» data from the second line in «accurate» reproduction. The analyzed range – is the table with sales for February. The desired value – is the first cell in the table for comparison. You can compare the data and display the difference on any sheet («January» or «February»). The task – is to compare sales by positions for January and February. To demonstrate the action of the HLOOKUP function, we take two «horizontal» tables, located on different sheets. How can I compare sheets with HLOOKUP in Excel? Let`s solve the problem 2: we compare the sales by positions in January and February. Inasmuch as there are more of them in February, we will enter the formula on the «February» sheet. Let`s solve the problem 1: we compare the names of goods in January and February. How can I compare sheets using VLOOKUP in Excel? For clarity, we'll put them in one sheet for now, but we will work in conditions when the ranges are in different sheets. These tables need to be compared using the formulas VLOOKUP and HLOOKUP. We have data about sales for January and February.
How to use vlookup in excel to solve how to#
How to compare sheets with the helping of VLOOKUP and HLOOKUP? When the problems with memory are eliminated, you can work with data using all of the same functions. The formula of the VLOOKUP will look like this:
If the sought after is less than the minimum value in the array, the program will return the error # N/D.The register is not taken into account: small and large letters for Excel are the same.
The VLOOKUP function always searches for data in the leftmost column of the table with values.If it`s necessary to implement for the search value in the another Excel workbook, then when filling out the «table» argument, we go to another workbook and select the desired range with the data. We will find out whether there were sales 08.05.15 To avoid this, we use the function IFERROR. When the VLOOKUP function can not find a value, it gives an error message # N/A. If the «bananas» are changed to «pears», the result will be «Found» If bananas sold, the word «Found» appears in the corresponding cell. We need to find out whether bananas were sold 04. The function searches for the value of the cell F5 in the range A2:C10 and returns the value of the cell F5, that was found in the column 3, the exact match.
How to use the VLOOKUP function in Excel: examplesįor the educational purposes, let's take the table with the data: Formula