=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
=HLOOKUP(C5,table,2,1)
The HLOOKUP function is used to search for a specific value in the first row of a table. The example searches the table for the value in C5 and returns the value in the same column of the second row. The fourth argument, 1, indicates that the search is exact.
=HLOOKUP(C5,table,2,1)
Let's say the cell C5 contains the value "Apple". In this case, the HLOOKUP function searches the table for the word "Apple" in the first row. The function then returns the value in the same column of the second row.
=HLOOKUP(C5,table,2,0)
The HLOOKUP function can also be used to search for a value in the first column of a table. The example searches for the value in C5 in the first column of the table, and returns the value in the same row of the second column. The fourth argument, 0, indicates that the search is approximate.
=HLOOKUP(C5,table,2,0)
Let's say the cell C5 contains the value "Orange". In this case, the HLOOKUP function searches the table for the word "Orange" in the first column. The function then returns the value in the same row of the second column.
The HLOOKUP function is used to search for a value in a table array and return a value from a different row in the same column. It is a useful tool for quickly finding data in large datasets.