Loncat ke daftar isi utama

 Bagaimana cara menerapkan beberapa validasi data dalam satu sel di lembar kerja Excel?

Di lembar kerja Excel, menerapkan satu validasi data ke sel mungkin umum bagi kami, tetapi, pernahkah Anda mencoba menggunakan beberapa validasi data ke dalam satu sel? Artikel ini, saya akan berbicara tentang beberapa contoh berbeda untuk menyelesaikan tugas ini di Excel.

Terapkan beberapa validasi data dalam satu sel (Contoh 1)

Terapkan beberapa validasi data dalam satu sel (Contoh 2)

Terapkan beberapa validasi data dalam satu sel (Contoh 3)


Terapkan beberapa validasi data dalam satu sel (Contoh 1)

Misalnya, saya ingin mengatur validasi data ke sel dengan kriteria ini: jika angka yang dimasukkan, itu harus kurang dari 100, jika teks dimasukkan, itu harus dalam daftar dari D2 ke D7 seperti gambar berikut yang ditampilkan:

1. Pilih sel yang ingin Anda terapkan beberapa validasi data, lalu klik Data > Validasi Data > Validasi Data, lihat tangkapan layar:

2. di Validasi Data kotak dialog, di bawah Settings tab, lakukan operasi berikut:

(1.) Pilih Kustom dari mengizinkan daftar drop-down;

(2.) Masukkan rumus ini: =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) ke dalam Rumus kolom tulisan.

Note: Dalam rumus di atas, A2 adalah sel yang ingin Anda terapkan validasi data, C2 dan D2: D7 adalah kriteria yang Anda butuhkan untuk menerapkan validasi data.

3. Lalu klik OK, mulai sekarang, hanya nilai yang cocok dengan kriteria yang dapat dimasukkan ke dalam sel, jika tidak, kotak peringatan akan muncul untuk mengingatkan Anda, lihat tangkapan layar:


Terapkan beberapa validasi data dalam satu sel (Contoh 2)

Dalam contoh ini, saya hanya akan mengizinkan teks "Kutools for Excel" atau tanggal antara 12/1/2017 dan 12/31/2017 dapat dimasukkan ke dalam sel tertentu seperti gambar di bawah ini. Untuk menyelesaikan pekerjaan ini, lakukan seperti ini:

1. Pergi ke Validasi Data kotak dialog, dan di kotak dialog, lakukan operasi berikut:

(1.) Klik Settings Tab;

(2.) Pilih Kustom pilihan dari mengizinkan daftar drop-down;

(3.) Ketikkan rumus ini: =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) ke dalam Rumus kolom tulisan.

Note: Dalam rumus di atas, A2 adalah sel yang ingin Anda terapkan validasi data, C2, 2017,12,1 dan 2017,12,31 adalah kriteria yang Anda butuhkan untuk menerapkan validasi data.

2. Lalu klik OK tombol, sekarang, hanya nilai yang cocok dengan kriteria yang boleh diketik, yang lain akan dibatasi seperti gambar berikut yang ditampilkan:


Terapkan beberapa validasi data dalam satu sel (Contoh 3)

Contoh ketiga, saya ingin string teks harus dimulai dengan "KTE" atau "www", dan jika dimulai dengan "KTE", hanya 6 karakter yang diperbolehkan; jika diawali dengan "www", hanya 10 karakter yang diperbolehkan, lihat tangkapan layar:

Rumus berikut dalam Validasi Data dapat membantu Anda mengatasinya.

1. Pergi ke Validasi Data kotak dialog, di dialog, lakukan operasi berikut:

(1.) Klik Settings Tab;

(2.) Pilih Kustom pilihan dari mengizinkan daftar drop-down;

(3.) Ketikkan rumus ini: =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) ke dalam Rumus kolom tulisan.

Note: Dalam rumus di atas, A2 adalah sel yang ingin Anda terapkan validasi data, dan Anda bisa mengubah kriteria dalam rumus menjadi milik Anda sendiri.

2. Lalu klik OK tombol, dan sekarang, hanya nilai teks yang sesuai dengan kriteria yang Anda tentukan yang diizinkan untuk dimasukkan, lihat tangkapan layar:

Note: Mungkin ada kriteria validasi data berbeda lainnya yang perlu diterapkan, Anda dapat membuat rumus sendiri untuk kriteria yang berbeda sesuai keinginan.

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 (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,
I am capturing department (10 departments), rating (5,4,3,2 & 1)and reward type criteria (X, Y and Z) of which i calculate the overall callibration based on certain %. Eg. i have 10 departments having each department 15-20 employees. Now i need a formula wherein in the table against the particular department, lets say department1 to populate the % of employees (only with rating 5 and criteria X) against the total employee of (criteria X and Z).
This comment was minimized by the moderator on the site
I have data in two different columns and i have to apply this with two different criteria. For example, first criteria shows result if a particular cell contains a text "Highlighter" and second criteria show when the cell contain text "Pointer".
Highlighter test results are different than the pointer results and we make separate validation of both data. Is this possible to extract the validation of each criteria in a single cell with no overlapping?
This comment was minimized by the moderator on the site
Hey I want a parent child relationship sort of multiple drop down lists.
For example, if in column one some selects 'a' among the list of a, b & c
Then in the second column the child category of 'a' which is x, y & z should appear
How can that be done?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Team, I failed to build example no.1. I copied and pasted the formula:  =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) and failed. Where is the bug ? Can you please assist ? THX a lot.
This comment was minimized by the moderator on the site
Hello Frank,
Glad to help. The reason why the data validation failed is that you probably didn't choose the data validation cell range. Please select the cell range first (say A2:A10), then click Data > Data Validation > Data Validation to input the formula =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1). Please see the screenshots I uploaded here. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
How can I apply a data validation to multiple columns?
This comment was minimized by the moderator on the site
Hello Fabian,To apple a data validation to multiple columns, the trick is almost identical to the ways we mentioned above. The most important thing is that you select the columns first, then you can set up the rules in the Data Validation dialog box. Plesase have a try. Any question, please feel free to contact us. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
i am confuse
This comment was minimized by the moderator on the site
Hi,
I need to validate multiple columns before entering a value into cell. please find my requirement below,
I have 3 columns for example,

A1-Total Credit limit (Mandatory field)
Should have a minimum amount of 100 and multiples of 100:
=AND(ISNUMBER(A1),A1>=100, MOD(A1,100)=0) - Solved!
B1- Weekly Credit limit (Optional filed)
User should be able to input a value only when A1 is filled, Should not be greater than A1, Minimum amount 100 and multiples of 100
=AND(A1<>"",ISNUMBER(B1),B1<=A1, MOD(B1,100=0) - Solved!
C1-Daily Credit limit (Optional field)
User should be able to input a value only when A1 is filled, Should not be greater than A1&B1, Minimum amount 100 and multiples of 100

I need to add following validation, Please Help
I have to check if A1 is filled or not, then C1 shouldn't be greater than A1 and C1 min value should be 100 and multiples of 100 - I have answer to this
How can add a validation on B1 because B1 is optional it can have value and cannot. so if there's a value I have to make sure C1 is not greater than B1 else ignore B1?

How can i have this in data validation?

Thanks once again for the help
This comment was minimized by the moderator on the site
how can I add another Data validation function with this list function. for example I added a list of "yes" and "no". but I also want to add an OR function to this so that if "yes" is selected in one column then others only have to be "no".
This comment was minimized by the moderator on the site
Is it possible to apply data validation on the calcuated column attribute?
This comment was minimized by the moderator on the site
i'm looking for the ability to have a data validation which allows the user to select multiple choices. I.e. the list pops up and user can select Apple, grape, and/or banana. If they select all three, it shows in cell as: "apple, grade, banana". if only 1: "grape" etc... any ideas?
This comment was minimized by the moderator on the site
Hello, jeffe,
Maybe the below article can help you to deal with your problem, please check it:
https://www.extendoffice.com/documents/excel/2448-excel-drop-down-list-multiple-selection.html
This comment was minimized by the moderator on the site
Any idea how to have multiple data validation and a drop down. Drop down uses "List" and this example uses "Custom". Basically if the correct data is present in another column, I want the drop down to be able to be selected to input data. Otherwise if the dropdown is selected the error message appears.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations