Loncat ke daftar isi utama

Bagaimana cara vlookup menemukan nilai kecocokan pertama, ke-2 atau ke-n di Excel?

Misalkan Anda memiliki dua kolom dengan Produk dan jumlah seperti gambar di bawah ini. Untuk mengetahui dengan cepat jumlah pisang pertama atau kedua, apa yang akan Anda lakukan?

Di sini fungsi vlookup dapat membantu Anda mengatasi masalah ini. Pada artikel ini, kami akan menunjukkan cara vlookup menemukan nilai kecocokan pertama, kedua, atau n dengan fungsi Vlookup di Excel.

Vlookup menemukan nilai kecocokan pertama, kedua atau n di Excel dengan rumus

Dengan mudah vlookup menemukan nilai pertandingan pertama di Excel dengan Kutools for Excel


Vlookup menemukan nilai pertandingan pertama, kedua, atau n di Excel

Lakukan hal berikut untuk menemukan nilai kecocokan pertama, kedua, atau n di Excel.

1. Di sel D1, masukkan kriteria yang ingin Anda vlookup, di sini saya masukkan Banana.

2. Di sini kita akan menemukan nilai kecocokan pertama dari pisang. Pilih sel kosong seperti E2, salin dan tempel rumus =INDEX($B$2:$B$6,MATCH(TRUE,EXACT($D$1,$A$2:$A$6),0)) ke dalam Formula Bar, lalu tekan Ctrl + perubahan + Enter kunci secara bersamaan.

Note: Dalam rumus ini, $ B $ 2: $ B $ 6 adalah kisaran nilai yang cocok; $ A $ 2: $ A $ 6 adalah kisaran dengan semua kriteria untuk vlookup; $ D $ 1 adalah sel yang berisi kriteria vlookup yang ditentukan.

Kemudian Anda akan mendapatkan nilai kecocokan pertama dari pisang di sel E2. Dengan rumus ini, Anda hanya bisa mendapatkan nilai pertama yang sesuai berdasarkan kriteria Anda.

Untuk mendapatkan nilai relatif ke n, Anda dapat menerapkan rumus berikut: =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1)) + Ctrl + perubahan + Enter kunci bersama, rumus ini akan mengembalikan nilai pertama yang cocok.

Catatan:

1. Untuk mencari nilai kecocokan kedua, harap ubah rumus di atas menjadi =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),2)), lalu tekan Ctrl + perubahan + Enter kunci secara bersamaan. Lihat tangkapan layar:

2. Angka terakhir dalam rumus di atas berarti nilai kecocokan ke-n dari kriteria vlookup. Jika Anda mengubahnya menjadi 3, itu akan mendapatkan nilai kecocokan ketiga, dan berubah menjadi n, nilai kecocokan ke-n akan ditemukan.


Vlookup menemukan nilai pertandingan pertama di Excel dengan Kutools for Excel

YAnda dapat dengan mudah menemukan nilai kecocokan pertama di Excel tanpa mengingat rumus dengan Cari nilai dalam daftar rumus rumus Kutools untuk Excel.

Sebelum melamar Kutools untuk Excel, Mohon unduh dan instal terlebih dahulu.

1. Pilih sel untuk menemukan nilai pencocokan pertama (mengatakan sel E2), lalu klik Kutools > Pembantu Formula > Pembantu Formula. Lihat tangkapan layar:

3. Dalam Pembantu Formula kotak dialog, konfigurasikan sebagai berikut:

  • 3.1 Dalam Pilih rumus kotak, temukan dan pilih Cari nilai dalam daftar;
    Tips: Anda dapat memeriksa Filter kotak, masukkan kata tertentu ke dalam kotak teks untuk memfilter rumus dengan cepat.
  • 3.2 Dalam Tabel_array kotak, pilih tabel yang berisi nilai nilai pertama yang cocok.;
  • 3.2 Dalam Nilai lookup kotak, pilih sel yang berisi kriteria Anda akan mengembalikan nilai pertama berdasarkan;
  • 3.3 Dalam Kolom kotak, tentukan dari kolom mana Anda akan mengembalikan nilai yang cocok. Atau Anda dapat memasukkan nomor kolom ke dalam kotak teks secara langsung sesuai kebutuhan.
  • 3.4 Klik tombol OK tombol. Lihat tangkapan layar:

Sekarang nilai sel yang sesuai akan terisi otomatis di sel C10 berdasarkan pilihan daftar drop-down.

  Jika Anda ingin memiliki uji coba gratis (30 hari) dari utilitas ini, silahkan klik untuk mendownloadnya, lalu lanjutkan untuk menerapkan operasi sesuai langkah di atas.

Alat Produktivitas Kantor Terbaik

🤖 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
Comments (43)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
You only return first match with VLOOKUP so your article "How To Vlookup Find The First, 2nd Or Nth Match Value In Excel?" does not make any sense....
This comment was minimized by the moderator on the site
Hi Sima,
"VLOOKUP" is a Google search term, so I used it as a keyword for the article title. The main operation of this article is to lookup values. I'm sorry for the misunderstanding.
This comment was minimized by the moderator on the site
What if the next record on col b is a duplicate how do ignore duplicate? Let's Banana has quantities of 200 twice? Can you please help me figure out how to ignore the duplicate?
This comment was minimized by the moderator on the site
Cna anybody Explain the small function with the IF statement for me please? I don't really understand how that array works :(
This comment was minimized by the moderator on the site
The following formulas works perfect for me:
(a) or(b) =IF(H8='Raw Data'!B4,INDEX('Raw Data'!H6:H20,SMALL(IF(C18='Raw Data'!B6:B20,ROW('Raw Data'!B6:B20)-ROW('Raw Data'!B6:B20)+1),1)))

However, I have encountered a problem where there are 7 sets of the same criteria but in different columns:(1) can the above formula (a) be repeated and search in a different cells in a single formula and(2) the above formula (b) only allows up to two sets of the similar search with matched value result but when trying for the third set in the formula as showed below, Microsoft Excel appeared as "You've entered too many arguments for this function."
=<span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">IF(H8='Raw Data'!J4,INDEX('Raw Data'!P6:P20,SMALL(IF(C18='Raw Data'!J6:J20,ROW('Raw Data'!J6:J20)-ROW('Raw Data'!J6:J20)+1),1))),</span>
This comment was minimized by the moderator on the site
What do Ctrl + Shift + Enter do?? At the beginning I didn'
This comment was minimized by the moderator on the site
Hi,An array formula needs to hit the Ctrl + Shift + Enter keys simultaneously to get the correct result.
This comment was minimized by the moderator on the site
I have a scenario... How do I get last price of anything for reference... Example: Banana first price was 200... While purchasing for second time; I need to display 200 in my expected price cell and then if I buy that on the day at 220, I will put this value manually as 220... Whenever next time I will buy banana; I need to display 220 from the last purchase price
This comment was minimized by the moderator on the site
Try =INDEX($B$2:$B$6,XMATCH(TRUE,EXACT($D$1,$A$2:$A$6),0,-1))

This is essentially reversing the search order and returning the first match using the XMATCH function.

Better late than never, hopefully helps someone :)
This comment was minimized by the moderator on the site
Perfect explanation, thanks.
This comment was minimized by the moderator on the site
If the first or any of the other entry's for 'banana' column B was blank cell, of which I don't require this number, what changes are required to this formula to skip blank cell in column B.
This comment was minimized by the moderator on the site
Sorry I am using this formula
=INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1))
This comment was minimized by the moderator on the site
SOLVED:
=SMALL(IF(A2:A7=D1,IF(B2:B7<>"",B2:B7)),1)

If 2nd or 3rd number required exchange ),1) to 2 or 3

This formula does not require index, as it directly looks at the value in Cell
This comment was minimized by the moderator on the site
Correction to previous formula:
The value was reading either the lesser or greater.

Updated formula
=INDEX($B$2:$B$7,SMALL(IF($A2:$A6=$D$1,IF($B$2:$B$7<>"",ROW($A2:$A6)-ROW($A2)+1)),1))

This skips blank cell and places value of non blank cell. Replace +1 with +2 or +3 for 2nd or 3rd value
This comment was minimized by the moderator on the site
And if you want the last, second last, nth last just add a counter (count the number of events already hapenned) to the end and subtract it by 0,1,n respectively.

Thank you so much! I was searching for this for a long time
This comment was minimized by the moderator on the site
Good Day,
Sorry can't help you with this yet. Thank you for your comment.
This comment was minimized by the moderator on the site
Is it possible to find an average of the non-unique data. Or would it be possible to have a list dropdown on the cell of the various values?
This comment was minimized by the moderator on the site
Good Day,
Sorry can't help you with this yet. Thank you for your comment.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations