ID EN
#Dynamic array

XLOOKUP

Excel Functions 🇮🇩 Bahasa Indonesia

Cari nilai dalam rentang atau larik

Syntax

EXCEL
=XLOOKUP(lookup, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Arguments

Parameter Deskripsi
lookup The lookup value.
lookup_array The array or range to search.
return_array The array or range to return.
if_not_found [optional] Value to return if no match found.
match_mode [optional] 0 = exact match (default), -1 = exact match or next smallest, 1 = exact match or next larger, 2 = wildcard match, 3 = regex match.
search_mode [optional] 1 = search from first (default), -1 = search from last, 2 = binary search ascending, -2 = binary search descending.

Return Value

Nilai yang cocok dalam array kembalian

Details

XLOOKUP adalah fungsi pencarian lengkap modern di Excel. Ini memungkinkan Anda mencari nilai di baris atau kolom dan mengambil nilai terkait dari rentang lain, tanpa batasan yang membuat frustrasi yang mengganggu fungsi lama seperti VLOOKUP, HLOOKUP, dan LOOKUP. Ia bahkan dapat mengembalikan lebih dari satu nilai terkait secara bersamaan. Dengan sintaksis yang lugas, XLOOKUP dapat dikonfigurasi untuk mendukung wildcard, regex, pencocokan perkiraan, pembalikan, dan penelusuran biner berkecepatan tinggi. Untuk demonstrasi singkat cara kerja XLOOKUP, tonton video berdurasi 3 menit ini: Secara default, XLOOKUP akan melakukan pencocokan persis. Pada contoh di bawah ini, XLOOKUP dikonfigurasi untuk mengambil jumlah Penjualan dari kolom E berdasarkan judul film yang sama persis di kolom B. Rumus di H5 adalah: Penjelasan lebih detail di sini. Ke

Contoh

Exact match

By default, XLOOKUP will perform an exact match. In the example below, XLOOKUP is configured to retrieve the Sales amount from column E based on an ex

EXCEL
=XLOOKUP(H4,B5:B9,E5:E9)
Approximate match

To enable an approximate match, provide a value for the match_mode argument. In the example below, XLOOKUP is used to calculate a discount based on qu

EXCEL
=XLOOKUP(E5,B5:B9,C5:C9,,-1)
Multiple values

XLOOKUP can return more than one value at the same time (i.e., an array of values) with one formula. The example below shows how XLOOKUP can be used t

EXCEL
=XLOOKUP(B5,B8:B15,C8:E15)
Two-way lookup

XLOOKUP can perform a two-way lookup by nesting one XLOOKUP inside another. In the example below, the "inner" XLOOKUP retrieves an entire row (all val

EXCEL
=XLOOKUP(I6,C4:F4,XLOOKUP(I5,B5:B9,C5:F9))
Not found message

When XLOOKUP can't find a match, it returns the #N/A error, like other match functions in Excel. Unlike the other match functions, XLOOKUP supports an

EXCEL
=XLOOKUP(H4,B5:B9,E5:E9,"Not found")
Wildcard match

XLOOKUP supports wildcards to enable partial match lookups. Set the match_mode argument to 2 to enable wildcards in XLOOKUP. In the example below, XLO

EXCEL
=TRANSPOSE(XLOOKUP("*"&G4&"*",data[Title],data,,2))

See Also

XMATCH FILTER VLOOKUP INDEX MATCH LOOKUP HLOOKUP