ID EN
#Lookup and reference

LOOKUP

Excel Functions 🇮🇩 Bahasa Indonesia

Cari nilai dalam rentang satu kolom

Syntax

EXCEL
=LOOKUP(lookup_value, lookup_vector, [result_vector])

Arguments

Parameter Deskripsi
lookup_value The value to search for.
lookup_vector The array or range to search.
result_vector [optional] The array or range to return.

Return Value

Nilai dalam vektor hasil.

Details

Fungsi LOOKUP adalah salah satu fungsi pencarian asli di Excel. Anda dapat menggunakan LOOKUP untuk mencari nilai dalam satu rentang atau larik dan mengembalikan nilai terkait dari rentang atau larik lain. Seperti fungsi XLOOKUP yang lebih baru, LOOKUP dapat mencari nilai di baris atau kolom. Namun, berbeda dengan XLOOKUP, LOOKUP hanya dapat melakukan pencocokan perkiraan. LOOKUP memiliki perilaku default tertentu yang membuatnya berguna untuk memecahkan masalah rumit di Excel: Berikut adalah contoh masalah yang biasanya sulit yang telah dapat diselesaikan LOOKUP selama bertahun-tahun: Dapatkan nilai sel terakhir yang tidak kosong. Dengan diperkenalkannya fungsi daya baru seperti XLOOKUP dan XMATCH, LOOKUP tidak sepenting dulu, namun jika Anda harus menggunakan versi Excel yang lama, LOOKUP masih bisa sangat berguna. PENCARIAN menyenangkan

Contoh

Example #1 - basic usage

In the example shown above, the formula in cell F5 returns the value of the match found in column B. Note that result_vector is not provided:

EXCEL
=LOOKUP(F4,B5:B9) // returns match in level
Example #1 - basic usage

The formula in cell F6 returns the corresponding Tier value from column C. Notice in this case, both lookup_vector and result_vector are provided:

EXCEL
=LOOKUP(F4,B5:B9,C5:C9) // returns corresponding tier
Example #2 - last non-empty cell

LOOKUP can be used to get the value of the last filled (non-empty) cell in a column. In the screen below, the formula in F6 is:

EXCEL
=LOOKUP(2,1/(B:B<>""),B:B)
Example #3 - latest price

Like the above example, the lookup function can be used to look up the latest price in data sorted in ascending order by date. In the screen below, th

EXCEL
=LOOKUP(2,1/(item=F5),price)
Example #4 - array form

The LOOKUP function has an array form as well. In the array configuration, LOOKUP takes just two arguments: the lookup_value, and a single two-dimensi

EXCEL
LOOKUP(lookup_value, array) // array form
Example #4 - array form

In the array form, LOOKUP evaluates the array and automatically changes behavior based on the array dimensions. If the array is wider than tall, LOOKU

EXCEL
=LOOKUP(E5,B5:C9) // vertical array
=LOOKUP(E6,C11:G12) // horizontal array

See Also

VLOOKUP HLOOKUP INDEX MATCH XLOOKUP XMATCH FILTER