You must have seen it on hundreds of web pages where you are asked to select an option by clicking on a small round shape next to the text. As soon as you select it, it gets a black dot in it (an indication that is marked). The same thing can also be created in Excel. In this tutorial, I will refer to it as the Radio Button (as my Computer teacher taught me). However, Excel refers to it as the ‘Option button’.
To insert a radio button in Excel, you need to have the developer tab enabled in your workbook. Can’t see the developer tab? Don’t worry.. here are the steps.
Get the Developer Tab in Excel Ribbon
Below are the steps for getting the developer tab in the ribbon in Excel 2013. While the screenshots I share here are of Excel 2013, the process is the same in Excel 2007 or 2010.
Right-click on any of the existing tabs in the ribbon and select Customize the Ribbon. It opens the Excel Options dialogue box. In the Excel Options dialogue box, you will have the Customize the Ribbon options. On the right, within the Main Tabs pane, check the Developer option. Click OK. This will make the developer tab appear as one of the tabs in the ribbon.
Now with the developer tab visible, you get access to a variety of interactive controls. Let’s get on with it and insert that radio button we were talking about.
How to Insert a Radio Button in Excel
Here are the steps to insert a radio button in Excel:
Go to Developer Tab –> Controls –> Insert –> Form Controls –> Option Button. You would see that there are two kinds of interactive controls: Form Control and Interactive Control. While Form Controls are made to use only within Excel workbooks, interactive controls can be used in user forms as well. Interactive controls provide a lot more flexibility and have extensive properties. In this tutorial, we will focus on Form Control Radio Button (also called Option button) only. Hover the mouse anywhere in the worksheet. You will see a plus icon (instead of the regular cursor). Click anywhere, and it will insert a radio button. Congratulations! You have inserted a radio button in Excel. You can click on the button and check it. However, there is one small problem. As of now, this radio button is useless – it does nothing. For this to work, it needs to be connected with a cell in the worksheet. Only then will you be able to record the response (whether a person selects either option 1, or option 2, or option 3…). To configure this radio button, right-click on it and select Format Control. In the Format Control dialogue box, in the Control tab, make the following changes: Value: Checked (this makes sure that the radio button is checked by default when you open the workbook). Cell Link: $A$1 (this is the cell linked to the radio button). You can manually enter this or select the cell to get the reference. Click OK.
Now your radio button is linked to cell A1. When you select the radio button, it will show 1 in cell A1.
The number you see in cell A1 (the linked cell) is the number of the radio button that has been selected. If you have multiple radio buttons, and if you select the second one, cell A1 will show 2. Unlike checkboxes in Excel, in the case of a radio button, you can only select one of the radio buttons. This means that if you have more than one radio buttons, you can only select one of it (you can, however, group sets of radio buttons, covered later in this tutorial). To work with radio buttons in Excel, you need to have more than one radio button in the worksheet. Let’s see how we can insert multiple radio buttons in Excel.
Adding Multiple Radio Buttons in Excel
There are three ways you can add multiple radio buttons in a worksheet in Excel.
#1 Inserting Radio Buttons using the Developer Tab
The easiest way is to use the developer tab and insert the radio buttons (as shown above). With this method, you need to repeat the steps as many times as many radio buttons you want. This can be the method of choice when you have to insert only a couple of radio buttons in Excel. An interesting thing to note here is that if you have linked the first radio button with a cell in the worksheet, all the radio buttons that you insert after it would be linked to that same cell. Also, you will be able to check only one of the radio buttons.
#2 Copy Pasting the Radio Buttons
A quick way to insert radio button is to copy and paste an existing radio button. You can do this by simply selecting the radio button and pressing Control + D. This would create a copy of the existing radio button. There are a couple of things you need to know when you use this method:
When you copy and paste an existing radio button, the Caption Name (text that you see to the right of the radio button) is also copied, but the background name (the name that Excel uses to refer to that object) changes. See the image below to understand the difference between the caption name and background name. If the original radio button is linked to a cell in the worksheet, all the copied radio buttons would also be linked to that same cell.
#3 Drag and Fill Cells with Radio Buttons
When you copy and paste a cell that contains a radio button, it creates a copy of the radio button as well. Similarly, if you have a radio button in a cell and you select and drag the cell (as shown below), it will create copies of the radio button.
These again follow the same rules discussed above:
When you create a copy of a radio button by copy pasting (or dragging) a cell that already has the radio button, the Caption Name (text that you see to the right of the radio button) of the radio button gets copied, but the background name (that Excel uses to refer to that object) changes. If the original radio button is linked to a cell in the worksheet, all the copied radio buttons would also be linked to that same cell.
How to Group Radio Buttons in Excel
Imagine you have a survey with ten different questions. For each question, you can choose one answer (by clicking on the radio button for that answer). This means that you would make ten radio button selections in the survey. Now to create such a survey in Excel, you would need to group the options with radio buttons, such that in a group, you can select only one option, but at the same time, you are allowed to check the radio button of some other group. Something as shown below:
Here are the steps to group radio buttons in Excel:
Insert all the radio buttons that you want to group. Go to Developer –> Controls –> Insert –> Group Box (Form Control). Hover the mouse anywhere in the worksheet. You will see a plus icon (instead of the regular cursor). Click anywhere, and it will insert a group box. Place the group box in such a way that all the radio buttons (that you want to group) are inside it. You can move and resize the radio buttons and the group box just like any other object. Link one of the radio buttons to a cell in the worksheet. All the radio buttons would automatically be linked to the same cell. Repeat the steps above to create another group of radio buttons.
This way, you can have any number of independent groups where you can make only one selection within the group, the selection across groups is independent.
Deleting Radio Buttons in Excel
You can easily delete a single radio button in Excel by selecting it and pressing the delete key. To select a radio button, you need to hold the Control key and the press the left button of the mouse. If you want to delete multiple radio buttons:
Hold the Control key and select all the ones that you want to delete. Press the Delete key.
If you have many radio buttons scattered in your worksheet, here is a way to get a list of all the radio buttons and delete at one go:
Go to Home –> Editing –> Find & Select –> Selection Pane. This will open a Selection Pane that will list all the objects on that worksheet (including radio buttons, checkboxes, shapes, and charts). Select all the radio buttons that you want to delete (to select multiple radio buttons, hold the control key while selecting) and hit the delete key. Note that the names of the radio buttons here are the backend names and not the caption names.
Note: The selection pane displays all the objects on the active worksheet only.
How to Fix the Position of a Radio Button in Excel
One common issue with using shapes and objects in Excel is that when you resize cells or hide/delete rows/columns, it also affects the shapes/radio buttons. Something as shown below:
To stop the radio button from moving around when you resize or delete cells, do the following:
Left click on the radio button and select Format Control. In the Format Control dialogue box, select the properties tab. In the Properties tab, within Object Positioning, select Don’t move or size with cells. Click OK.
Now when you resize or delete cells, the radio button would stay put.
Enable Radio Buttons in a Protected Sheet in Excel
If you want to protect the entire worksheet, but want the radio buttons to work, here are the steps:
Right-click on the cell that is linked to the radio button and select Format Cell. In the Format Cells dialogue box, go to the Protection tab and uncheck the Locked Option.
Now when you protect the entire sheet, the radio button would still be working. Since Excel protects all the locked cells only, having the linked cell unlocked still makes it work.
Examples of Using Radio Button in Excel
Here are some examples where radio button is used:
KPI Dashboard in Excel (radio button used to extract data). Games of Thrones Dashboard (radio button used to sort data).
Radio Button Vs. Checkbox
While both the radio button and the checkbox looks similar, there are a few differences you need to know before using these. A radio button allows a user to select only one of the radio buttons from a group. This means that if you have radio buttons for gender, you can only select one of the genders. On the other hand, a checkbox is independent of other checkboxes, and you can select multiple at one time. For example, in a skill assessment survey, you can select multiple skills you have. Here is the definition of radio button by Wikipedia that also covers the difference with a checkbox. “A radio button or option button is a graphical control element that allows the user to choose only one of a predefined set of mutually exclusive options. The singular property of a radio button makes it distinct from a checkbox, which allows more than one (or no) item to be selected and for the unselected state to be restored.”
How to Insert a Scrollbar in Excel. Insert Checkmark in Excel. Complete Guide to Creating Excel Dashboards. Creating a Drop-down List in Excel. How to Create a Heat Map in Excel.
Thank you for this tutorial, it really helped. I’m now wondering if it’s possible and how to change the format of the group box to remove the borders? Thank you I tried the method you are suggesting here, but I find it totally impossible to select more than one radio button at a time. I have set up the Developer option in the ribbon, and I am holding down the CTRL key when selecting each one – but each one I select is de-selected as soon as I select the next one. thanks, Adam