跳到主要内容

如何在Excel中对多个选项/单选按钮进行分组?

当您在工作表中插入多个单选按钮时,您只能在工作表中选择其中一个。 那是因为单选按钮不被设计为允许多个选择。 但是,如果要插入多组选项按钮,并且需要从每个组中检查一个按钮,则如下所示。 您如何在Excel中进行操作?

组单选按钮的窗体控件 组单选按钮的ActiveX控件
文档插入组单选按钮1 文档插入组单选按钮2

使用“组框”(表单控件)插入多组选项按钮

插入多组选项按钮并命名新的组名(ActiveX控件)

使用 Kutools for Excel 在一系列单元格中插入多个选项按钮


如果要插入一些 表单控件 单选按钮并将其分组,您可以绘制一些 组框 首先,然后将单选按钮插入其中。 您可以按照以下步骤对其进行处理:

1。 去的 开发商 选项卡,然后单击 组合箱 插页,请参见屏幕截图:

文档插入组单选按钮1

2。 然后根据需要拖动并绘制一些组框,请参见屏幕截图:

文档插入组单选按钮1

3。 然后,可以通过选择并输入新名称来替换组框名称。

文档插入组单选按钮1

4。 然后,您可以将选项按钮插入组框中,请单击 开发商 > 插页 > 选项按钮(表单控件) 并将一些单选按钮绘制到组框中,请参见屏幕截图:

文档插入组单选按钮6 -2 文档插入组单选按钮6

5。 将选项按钮插入组框中后,您可以更改选项按钮的名称,右键单击一个选项按钮并选择 编辑文字 从上下文菜单中,然后根据需要输入您自己的选项名称。 重复此步骤以手动更改所有选项按钮。 查看屏幕截图:

文档插入组单选按钮8 -2 文档插入组单选按钮9

并且将您在一个组框中的所有选项按钮都视为一个组,并且可以从每个组中选择选项按钮。



除了Form Controls单选按钮,Excel中还有另一种单选按钮,它是ActiveX Controls单选按钮,您可以按照以下教程对这种类型的单选按钮进行分组:

1。 插入 ActiveX控件 通过单击选项按钮 开发商 > 插页 > 选项按钮(ActiveX控件),请参见屏幕截图:

文档插入组单选按钮9

2。 然后根据需要一一拖动选项按钮。

文档插入组单选按钮9

3。 然后,您可以通过右键单击来更改选项按钮的名称,然后选择 OptionButton对象 > 编辑,根据需要输入选项名称。 重复此步骤以一个一个地更改选项按钮的名称,请参见屏幕截图:

文档插入组单选按钮8 -2 文档插入组单选按钮9

4。 重命名选项按钮后,您需要为组单选按钮指定一个组名。 选择第一组中的第一个单选按钮,然后右键单击它,然后单击 查看房源 从上下文菜单。

文档插入组单选按钮9

5。 在 查看房源 对话框中,为 组名 财产 拼音 选项卡,然后关闭对话框。

文档插入组单选按钮9

6。 现在,从第一个组中选择第二个按钮,然后为您在第一个按钮中使用的GroupName输入相同的名称。 然后,对第一组中的所有左按钮重复此操作。

7。 然后,您可以应用相同的操作为所有单选按钮的第二组指定名称,但是必须输入其他名称以与第一组名称区分开。

8。 然后退出 设计模式 通过点击 开发商 > 设计模式,现在您的单选按钮已被分组为以下屏幕截图:

文档插入组单选按钮9


如果您想在一分钟内在一个单元格区域中插入多个单选按钮, Kutools for Excel批量插入选项按钮 功能可能会帮助您处理此任务。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用

如果你已经安装 Kutools for Excel,请执行以下操作:

1。 选择要在其中插入选项按钮的单元格区域。

文档插入组单选按钮9

2。 然后点击 库工具 > 插页 > 批量插入选项按钮,请参见屏幕截图:

文档插入组单选按钮9

3。 然后,所选单元格已填充选项按钮,请参见屏幕截图:

文档插入组单选按钮9

注意:您也可以在显示以下屏幕快照的相同单元格中的值之前插入单选按钮:

文档插入组单选按钮9

单击以了解有关此“批量插入选项按钮”实用程序的更多信息。

立即下载和免费试用Excel的Kutools!


相关文章:

如何在Excel中插入单选按钮或选项按钮?

如何在Excel中快速插入多个复选框?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This is really helpful. Thanks for posting this.
This comment was minimized by the moderator on the site
Thank you, so useful explenation
This comment was minimized by the moderator on the site
Super explanation on grouping ActiveX controls. However, what is missing is how to assign code to those grouped option buttons. I have 5 ActiveX radio button inside a Microsoft Frame, and I've Googled till I'm Green as the Grinch and cannot figure out how to assign code to each of those ActiveX buttons.

Any help much appreciate - code or link.
Happy Holidays!
This comment was minimized by the moderator on the site
how do you output the check box
options in one cell as combined text?
This comment was minimized by the moderator on the site
Is it possible to remove the group box line so it doesn't show on the form?
This comment was minimized by the moderator on the site
Hello, Shawn,
If you want to hide or remove the group box, the following article may do you a favor, please view it.
https://www.extendoffice.com/documents/excel/3622-excel-remove-border-from-group-box.html

Hope it can help you, thank you!
This comment was minimized by the moderator on the site
Really helpful - so obvious when it's pointed out: way better than the MS website :)
This comment was minimized by the moderator on the site
If you do a questionnaire with Option Buttons it gets all jittery and shaky when you scroll through the sheet. Picking the option to "Don't move or resize..." is useless. Any suggestions?
This comment was minimized by the moderator on the site
Hi, I was struggling with categorizing the toggle buttons and your page helped me figure out the "Grouping". Thank you!!
This comment was minimized by the moderator on the site
This great, just what i was looking for. Thanks!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations