跳到主要内容

如何在Excel中为下拉列表添加颜色?

在Excel中,创建下拉列表可以为您提供很多帮助,有时,您需要根据所选的相应内容对下拉列表值进行颜色编码。 例如,我创建了一个水果名称的下拉列表,当我选择Apple时,我需要该单元格自动用红色上色,而当我选择橙色时,该单元格可以用橙色上色,如下面的屏幕截图所示。 有解决这个问题的好建议吗?
文档颜色下拉列表1

方法A使用条件格式进行颜色编码的下拉列表

方法B使用方便的工具进行颜色编码的下拉列表-彩色下拉列表


为了完成此任务,我们需要首先创建一个下拉列表,请执行以下步骤:

首先,创建一个下拉列表:

1.创建数据列表,然后选择要放入下拉列表值的范围。 在这种情况下,我选择范围A2:A6来放置下拉列表,请参见屏幕截图:
文档颜色下拉列表2

2。 点击 时间 > 数据验证 > 数据验证,请参见屏幕截图:
文档颜色下拉列表3

3.然后 数据验证 对话框,单击 个人设置 选项卡,然后选择 清单 选项从 下拉列表,然后单击以选择要使用的列表值。 看截图:
文档颜色下拉列表4

4。 然后点击 OK,下拉列表已创建,如下所示:
文档颜色下拉列表5

现在,您可以将颜色添加到下拉列表中,根据需要选择一种方法。


方法A具有条件格式的颜色编码下拉列表

1.突出显示您的下拉单元格(这里是A列),然后单击 主页 > 条件格式 > 新规则,请参见屏幕截图:
文档颜色下拉列表6

2.在 新格式规则 对话框,单击 仅格式化包含以下内容的单元格 在选项 选择规则类型 部分,在 仅格式化带有 部分中,选择 特定文本 从第一个下拉列表中选择并从第二个下拉列表中选择包含,然后单击 doc按钮1按钮以选择要设置特定颜色格式的值,请参见屏幕截图:
文档颜色下拉列表7

3。 然后点击 格式 按钮,然后从中选择所需的一种颜色 标签。
文档颜色下拉列表8

4.然后单击 OK > OK 要关闭对话框,请对其他下拉选择重复步骤5到7,例如,“桃子”表示粉红色,“葡萄”表示紫色…
文档颜色下拉列表9

5.设置值的颜色后,当您从下拉菜单中选择任何值时,单元格将自动以其指定的颜色着色。
文档颜色下拉列表10


方法B使用方便的工具进行颜色编码的下拉列表-彩色下拉列表

如果您想更快地处理这项工作,可以尝试 彩色下拉列表 的工具 Kutools for Excel,可以帮助您直接将颜色添加到下拉列表的项目中。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

1.选择下拉列表单元格,然后单击 库工具 > 下拉列表 > 彩色下拉列表.
文档颜色下拉列表11

2.在 彩色下拉列表 对话框中,执行以下设置。

1)检查您要在其中添加颜色的比例 适用于 部分。
文档颜色下拉列表12

如果您检查 数据范围行 ,在 适用于 部分,您需要选择行范围。
文档颜色下拉列表13

2)逐一将颜色添加到下拉列表的项目中。

单击“列表项”中的一项,然后单击将颜色添加到所选项目所需的一种颜色。
文档颜色下拉列表14

重复该步骤,为所有项目添加颜色。
文档颜色下拉列表15

3。 点击 Ok。 现在,下拉列表中的项目已着色。
文档颜色下拉列表1


其他操作(文章)

在Excel下拉列表中键入时自动完成
如果您有一个包含大值的数据验证下拉列表,则需要在列表中向下滚动以查找合适的列表,或直接在列表框中键入整个单词。 如果在下拉列表中键入第一个字母时有允许自动完成的方法,一切将变得更加容易。

在Google工作表中创建一个依赖下拉列表
在Google表格中插入普通的下拉列表可能对您来说很容易,但是有时您可能需要插入一个依赖的下拉列表,这意味着第二个下拉列表取决于第一个下拉列表的选择。

从Excel中的另一个下拉列表创建下拉列表
在本教程中,我将介绍从另一个下拉列表创建下拉列表的方法,如Excel中显示的屏幕截图所示。

在Excel中按字母顺序创建动态下拉列表
你们中的大多数人可能都知道如何创建动态下拉列表,但是在某些情况下,您可能希望按照字母顺序对下拉列表进行排序,如下图所示。 现在,本教程介绍了在Excel中按字母顺序创建动态下拉列表的方法


  • 超级公式栏 (轻松编辑多行文本和公式); 阅读视图 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 和保存数据; 拆分单元格内容; 合并重复的行和总和/平均值...防止细胞重复; 比较范围...
  • 选择重复或唯一 行; 选择空白行 (所有单元格都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择...
  • 确切的副本 多个单元格,无需更改公式参考; 自动创建参考 到多张纸; 插入项目符号,复选框等...
  • 收藏并快速插入公式,范围,图表和图片; 加密单元 带密码 创建邮件列表 并发送电子邮件...
  • 提取文字,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级筛选 (将过滤方案保存并应用于其他工作表); 高级排序 按月/周/日,频率及更多; 特殊过滤器 用粗体,斜体...
  • 结合工作簿和工作表; 根据关键列合并表; 将数据分割成多个工作表; 批量转换xls,xlsx和PDF...
  • 数据透视表分组依据 周号,周几等 显示未锁定的单元格 用不同的颜色 突出显示具有公式/名称的单元格...
kte选项卡201905
  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
officetab底部
Comments (46)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thanks for the really good help
This comment was minimized by the moderator on the site
Hi, this was very helpful. However, now i need to color the whole line in the same color in reference to one cell on the line. know what i mean? can you assist in this too?

thanks again!
This comment was minimized by the moderator on the site
Try this: in step 5, Highlight your drop down cells(here is column A) is replace with highlight the whole lines where place your drop down list cells, then apply the conditional formatting rule.
This comment was minimized by the moderator on the site
Thank you ! It worked perfectly for me
This comment was minimized by the moderator on the site
well, finally it works! this article should have been informed about the Excel version. Format Conditioning has its new feature in Excel 2013 and above and has quite a little different. For example, the step above as mentioned would only work if your MS Excel you are using is version 2010 and above. For below, the reason why it wouldn't worked is because conditioning format should be placed the value on the containing cell i.e you have to type the word apple to the rule (and not $D$2 as stated in the screenshot). The reason why some others had come up a not working is maybe because it use up different version of MS Excel like mine which is MS Excel 2007. the value should have been like this upon filing up in Format only cells Specific Text: Specific Text - Containing - type the word Apple or grapes or strawberry. Then, Go to Format button for your specified color and fonts you desire. As for me, you don't need to have select the entire cells in spreadsheet as it would only gotten confuse.
This comment was minimized by the moderator on the site
Very helpful tutorial! Much appreciated!
This comment was minimized by the moderator on the site
How can I change the colors to a pattern type thatch? In multiple cells/columns to something more aesthetic. Would like to send you a screen shot of what i'm creating, would you assist?
This comment was minimized by the moderator on the site
This Is really cool I tried It & It worked I feel so good about it. Thanks
This comment was minimized by the moderator on the site
it is helpful to data validation colour change the perticular name thank you
This comment was minimized by the moderator on the site
It worked.... Many Many Thanks.
This comment was minimized by the moderator on the site
Kudos - this really helped and gave the best examples compared to most sites. Thank You.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations