📜  HLookup和VLookup之间的区别

📅  最后修改于: 2021-08-24 04:41:17             🧑  作者: Mango

HLookup:
水平查找函数称为HLookup函数。此函数用于在表中的一组行中水平查找值。它在查找表中水平查找值。它根据Excel中给定的行号返回一个近似值或精确值。 VLOOKUP函数提供了相同的查找值作为HLOOKUP函数提供。

HLookup的语法

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]).

VLookup:
垂直查找函数称为VLookup函数。此函数用于在表中的一组行中垂直查找值。它在查找表中垂直查找值。它根据Excel中给出的列号返回精确或近似值。

VLookup的语法

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]).

HLookup和VLookup之间的区别:

S.NO.

HLOOKUP

VLOOKUP

01. It assumes that data is arranged as a table with different elements of the information in different rows. Whereas it assumes that data is arranged as a table with different elements of the information in different columns.
02. It looks for a value horizontally across the lookup table. It looks for a value vertically across the lookup table.
03. The use of HLookup function is less as compared to VLookup function. The use of VLookup function is more than compared to HLookup function.
04. It is used when data is listed in rows. Whereas it is used when data are listed in columns.
05. In HLookup function, the value the user is searching in the table or range must be in the top-most column.  In VLookup function, the value the user is searching must be located in the left-most column of the table or range.
06. HLookup function returns the searched value in the same column. VLookup function returns the searched value in the same row but in the next column. 
07. The H in the HLookup function stands for horizontal search The V in VLookup function stands for Vertical search.
08. It is used to find out data from a range in the bottom-most range. It helps to find out the data in the leftmost column.