Membuat Combo Box Di Lembar Kerja Excel
Combo box adalah sebuah elemen berupa kotak [box] yang memungkinkan kita memilih data dari list yang tersedia. Biasanya tujuan penggunaan Combo Box menu ini adalah untuk mempermudah pengguna saat ingin menginputkan suatu data dari sekumpulan data tertentu tanpa harus mengetikkannya. Dengan menggunakan menu Combo Box ini akan sangat berguna bagi Anda untuk mempercepat proses pengisisan suatu data dalam cell tertentu.
Cara Membuat Combo Box di excel sebenarnya cukup simple dan mudah, namun yang perlu Anda ketahui adalah pemahaman Anda sendiri mengenai fungsi Excel dari perintah combo box itu, karena di setiap kasus soal mungkin akan berbeda-beda sesuai dengan data yang anda butuhkan.
Adapun cara membuat combo box di excel bisa anda baca pada penjelasan berikut ini dan perhatikan serta pahami langkah demi langkahnya :
- Untuk menambahkan kotak kombo di Excel 2010 dan Excel 2007, klik tab Pengembang, klik Sisipkan, kemudian klik Kotak Kombo pada Kontrol Formulir.
- Klik lokasi lembar kerja tempat sudut kiri atas kotak kombo yang Anda inginkan, kemudian seret kotak daftar ke tempat sudut kanan bawah kotak kombo yang Anda inginkan. Dalam contoh ini, buat kotak kombo yang mencakup B2:E2.
- Klik kanan kotak kombo, dan kemudian klik Kontrol Format.
Ketik informasi berikut, kemudian klik OK:
- Untuk menentukan kisaran daftar, ketik H1:H20 di kotak Masukkan rentang.
- Untuk memasukkan nilai angka di sel G1 [tergantung item yang dipilih dalam daftar], ketik G1 di kotak Tautan sel. Catatan Rumus INDEX menggunakan nilai di G1 untuk menghasilkan item daftar yang benar.
- Di kotak Baris turun-bawah, ketik 10. Entri ini menentukan berapa banyak item yang akan ditampilkan sebelum Anda harus menggunakan bilah gulir untuk melihat item lainnya. Catatan Kotak centang Arsiran 3-D adalah opsional. Fitur ini menambah tampilan tiga dimensi ke kotak turun-bawah atau kombo.
Kotak turun-bawah atau kombo akan menampilkan daftar item. Untuk menggunakan kotak turun-bawah atau kombo, klik sel mana pun sehingga objek tidak dipilih. Apabila Anda mengklik item di kotak turun-bawah atau kombo, sel G1 akan diperbarui ke angka yang menunjukkan posisi item yang dipilih dalam daftar. Rumus INDEX di sel A1 menggunakan angka ini untuk menampilkan nama item.
See all How-To Articles This tutorial demonstrates how to make a combo box in Excel.
Make a Combo Box
In Excel, a combo box is a sort of drop-down list from which you can choose a value. The values that are offered in a combo box are populated from a range of cells in an Excel file. These values can be in the same file, or in another file. Say you have the list of names shown below in Column B to use in a combo box.
To create a combo box in cell D2 and populate it with names from Column B, follow these steps:
- Click on the cell where you want to insert a combo box, and in the Ribbon, go to Developer > Insert > Combo Box [Form Control].
- Drag the cursor [a little cross] and drop it to make a combo box.
As a result, the combo box is created in cell D2.
- Now link the combo box to the range containing the list of names to populate it. Right-click the combo box and choose Format Control.
- In the Format Object window, go to the Control tab and click on the arrow next to the Input range box in order to select cells.
- Select the range with values for the combo box [B2:B10] and press ENTER on the keyboard.
- Now you’re back in the Format Object window. Click on the arrow next to the Cell link box.
- Select the cell where the selected value of the combo box appears [D3] and press ENTER on the keyboard.
Now, clicking on the combo box lets you select from all values from the list.
Note: You can also populate and use a combo box with VBA code.
Select a Value in a Combo Box
Now select a value in the combo box [for example, Jennifer]. As you can see below, cell D3 now has the value 4, which is the position of the selected value in the input range [B2:B10].
To get the selected value in the combo box in a cell, use the INDEX Function. This function returns the value from a given position in a range. Here, to find the 4th value in the range B2:B10, enter the formula in cell D4:
=INDEX[B2:B10,D3]
Now the selected value in the combo box [Jennifer] is also in cell D4, and you can reference it elsewhere in the file.