跳到主要內容

如何在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使用方便的工具進行顏色編碼的下拉列表-彩色下拉列表

如果您想更快地處理這項工作,可以嘗試 彩色下拉列表 的工具 Excel的Kutools,可以幫助您直接將顏色添加到下拉列表的項目中。

Excel的Kutools, 與以上 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