ID EN
#Lookup and reference

HLOOKUP

Excel Functions 🇮🇩 Bahasa Indonesia

Cari nilai dalam tabel yang disusun secara horizontal

Syntax

EXCEL
=HLOOKUP(lookup_value, table_array, row_index, [range_lookup])

Arguments

Parameter Deskripsi
lookup_value The value to look up.
table_array The table from which to retrieve data.
row_index The row number from which to retrieve data.
range_lookup [optional] A Boolean to indicate exact match or approximate match. Default = TRUE = approximate match.

Return Value

Nilai yang cocok dari sebuah tabel.

Details

Fungsi HLOOKUP dapat mencari dan mengambil nilai dari data dalam tabel horizontal. Seperti huruf “V” pada VLOOKUP yang berarti “vertikal”, huruf “H” pada HLOOKUP berarti “horizontal”. Nilai pencarian harus muncul di baris pertama tabel, bergerak secara horizontal ke kanan. HLOOKUP mendukung pencocokan perkiraan dan tepat, serta wildcard (* ?) untuk menemukan kecocokan sebagian. HLOOKUP mencari nilai pada baris pertama tabel. Ketika menemukan kecocokan, ia mengambil nilai pada kolom tersebut dari baris yang diberikan. Gunakan HLOOKUP ketika nilai pencarian terletak di baris pertama tabel. Gunakan VLOOKUP ketika nilai pencarian terletak di kolom pertama tabel. HLOOKUP membutuhkan empat argumen. Argumen pertama, disebut lookup_value, adalah nilai yang akan dicari. Argumen kedua, table_array, adalah rentang

Contoh

Example #1 - approximate match

In the example shown, the goal is to look up the correct Level and Bonus for the sales amounts in C5:C13. The lookup table is in H4:J6, which is the n

EXCEL
=HLOOKUP(C5,table,2,1) // get level
Example #1 - approximate match

To get Bonus, the formula in E5, copied down, is:

EXCEL
=HLOOKUP(C5,table,3,1) // get bonus
Example #2 - exact match

In the screen below, the goal is to look up the correct level for a numeric rating 1-4. In cell D5, the HLOOKUP formula, copied down, is:

EXCEL
=HLOOKUP(C5,table,2,FALSE) // exact match

See Also

VLOOKUP LOOKUP INDEX MATCH XLOOKUP XMATCH FILTER