Loncat ke daftar isi utama

Bagaimana membandingkan dua sel dan mengembalikan ya jika cocok di Excel?

Misalkan Anda memiliki dua kolom seperti gambar berikut yang ditampilkan, dan sekarang, Anda perlu membandingkan sel di baris yang sama dari dua kolom ini kemudian kembali Ya jika mereka benar-benar cocok, bagaimana Anda bisa mengatasinya? Artikel ini akan menunjukkan kepada Anda metode untuk menyelesaikannya dengan cepat di Excel.

Bandingkan dua sel dan kembalikan Ya jika cocok dengan rumus


Bandingkan dua sel dan kembalikan Ya jika cocok dengan rumus

Rumus berikut dapat membantu Anda membandingkan dua sel berturut-turut dengan cepat dan mengembalikan Ya jika cocok di Excel. Silakan lakukan sebagai berikut.

1. Pilih sel kosong, salin rumus =IF(A2=B2,"Yes","") ke dalam bilah rumus dan kemudian tekan Enter kunci. Lihat tangkapan layar:

2. Tetap pilih sel hasil pertama, dan seret Fill Handle untuk mendapatkan semua hasil seperti gambar di bawah ini.

Note: Jika Anda juga ingin menampilkan hasil seperti "Tidak" jika dua sel yang dibandingkan tidak cocok, harap ubah rumus menjadi =IF(A2=B2,"Yes","No") . Lihat tangkapan layar:


Artikel terkait:

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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Buenas tardes, me paso por acá para preguntar si alguien conoce alguna manera en Excel para comparar 2 celdas de la siguiente manera:

Celda A1= LUIS CORDOBA FRANCISCO
Celda A2= FRANCISCO LUIS CORDOBA

como se observa, contiene las mismas palabras pero en diferente orden, si hago una función igual, va a decir que no coincide. Si alguien sabe como hacerlo se lo agradezco.
This comment was minimized by the moderator on the site
Hi CESAR PEREZ,

Sorry, in this case Excel will determine the two cells as a mismatch.
This comment was minimized by the moderator on the site
how to have vlookup find values and then remove found values from lookup table (or copy the rest of the values).

Why is that necessary, because the first group of people (that are found with vlookup) are the main focus of the research, and the rest are control group and we need the within the same sheet
This comment was minimized by the moderator on the site
Hi kecman,
Sorry I did not find a way to deal with this problem. I suggest you post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html
This comment was minimized by the moderator on the site
What if you want to return a value if they are not the same instead of if they match?
This comment was minimized by the moderator on the site
Meghan Say,
To return a value if they are not the same, please apply the following formula.
=IF(A2<>B2,"Yes","")
This comment was minimized by the moderator on the site
can you return text comment if one cell is blank?
This comment was minimized by the moderator on the site
Hi Mark Walczak,
You cannot generate text comments with formulas. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
How about with combination of highlights?
This comment was minimized by the moderator on the site
Hi,
Sorry I don't understand what you mean. Would you mind providing a screenshot of your data? Sorry for the inconvenience.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations