搜尋
首頁專題excel如何在Excel和Google表中創建彩色下拉列表

The article shows how to add colors to your data validation lists to make them more visually appealing and user-friendly.

You don't have to be an expert to make a drop-down menu in Excel or Google Sheets. But let's be honest - staring at a long list of values can be pretty boring. If you're looking to add some excitement to your spreadsheets, why not try highlighting a drop-down list with color? Whether you're organizing a list of products, categorizing expenses, or tracking sales data, a colored dropdown will make your data easier to read and understand. In this article, we'll show you how to do just that.

如何在Excel和Google表中創建彩色下拉列表

How to create Excel colored drop down list

If you use Excel for data entry, you've likely used the Data Validation feature to create drop-down lists. But did you know that you can also add colors to these lists? This section will guide you through the steps to colorize your drop-down list for a more eye-catching look.

Step 1. Create drop-down list

To add color to your Excel picklist, you first need to create the list itself. If you're unfamiliar with this process, refer to our separate article on creating a drop-down list that describes all possible methods in detail.

For this example, let's assume you have the source list of items in A3:A10 and you've created a drop-down menu with those items. To do that, simply select the range of cells where you want the dropdown to appear (D3:D12 in our case) and click the Data Validation button on the Data tab. In the Data Validation dialog box that appears, choose List from the Allow drop-down menu and, in the Source field, enter the reference to the range of cells containing your items.

如何在Excel和Google表中創建彩色下拉列表

Once you've created your drop-down list, you can move on to adding colors.

Step 2. Add colors to drop-down menu

To highlight your picklist with some color, we will be using Excel conditional formatting. The steps are:

  1. Select the cell(s) with your drop-down menu.
  2. On the Home tab, in the Styles group, click Conditional Formatting > New Rule… .
  3. In the New Formatting Rule dialog window, choose the Format only cells that contain option.
  4. Choose Specific Text from the first drop-down box and containing from the second drop-down box. In the third box, enter the reference to the cell containing the value that you want to format with a certain color like shown in the screenshot below. Alternatively, you can type the value enclosed in double quotes directly in the box, e.g. "Blue".

    如何在Excel和Google表中創建彩色下拉列表

  5. Click the Format button.
  6. In the Format Cells dialog box, switch to the Fill tab, choose the color you like for that particular item, and click OK.

    如何在Excel和Google表中創建彩色下拉列表

  7. Back in the New Formatting Rule dialog window, review the settings, and if everything looks good, click OK to save the changes.

    如何在Excel和Google表中創建彩色下拉列表

Step 3. Test your colored drop-down list

To test your colored drop down menu, click on the arrow next to the cell. You should see the list of items you entered, with the first item highlighted in the chosen color:

如何在Excel和Google表中創建彩色下拉列表

Repeat the above steps for other selections and you will get a cohesive color scheme that makes it easy to visually distinguish between different selections.

如何在Excel和Google表中創建彩色下拉列表

Tips:

  • If you've chosen dark fill colors for your drop-down list, selecting the white font color will make your options more readable. Similarly, if you've chosen light fill colors, using a dark font color will provide better contrast and readability.
  • Don't be afraid to experiment with different color combinations to find the one that works best for your data!
  • In Excel 365, you can use the brand new IMAGE function to create dropdown with pictures.

How to make Google Sheets drop down list with color

Google Sheets has become a go-to tool for many people. Like its Microsoft Excel counterpart, it offers the ability to create drop-down menus for easier data entry. With the latest version of Google spreadsheets, you no longer need to rely on conditional formatting tricks. Now, you can add colors to your data validation lists directly as you create them!

To create a colored drop-down list in Google Sheets, follow these steps:

  1. Select one or more cells where we want the dropdown list to appear.
  2. From the top toolbar, select Data and click Data validation.

    如何在Excel和Google表中創建彩色下拉列表

  3. On the Data Validation rules pane, click Add rule.

    如何在Excel和Google表中創建彩色下拉列表

  4. In the Criteria drop down menu, pick either the Dropdown or Dropdown from a range option.

    如何在Excel和Google表中創建彩色下拉列表

  5. If you choose Dropdown, type your values in the Option 1 and Option 2 boxes, clicking the Add another item button as needed.

    If you choose Dropdown from a range, type the range reference in the text field or use the Select Data Range button to pick the range. Either way, be sure to use absolute references with the $ sign to lock cell addresses such as e.g. =$D$4:$D$8.

    如何在Excel和Google表中創建彩色下拉列表

  6. Once you've entered your options, it's time to add some color! Simply select the color you want for each item. If you need more tints than shown in the predefined palette, click Customize, and then choose a custom color.

    如何在Excel和Google表中創建彩色下拉列表

  7. When you're finished, click the Done button.

There you have it - a colored drop-down menu that not only looks great, but also helps you organize and analyze your data more effectively.

如何在Excel和Google表中創建彩色下拉列表

How to create color-coded drop down list

In the first part of this tutorial, you learned how to create dropdown with colored text values. But what if you want to create a color-coded dropdown where only colors are visible, without any text values? This section will show you how to achieve that outcome. By selecting the same color for both the fill and font, you can create a monochromatic effect that is ideal for organizing data in a clear and concise way. Let's dive in and learn how to create a color coded dropdown list with hidden text values.

Color coded dropdown list in Excel

To make a color-coded dropdown in Excel worksheets, you set up conditional formatting rule as described in Adding colors to drop-down menu. When choosing the format, switch between the Fill and Font tabs and pick the same color on both.

Choosing the fill color:

如何在Excel和Google表中創建彩色下拉列表

Choosing the font color:

如何在Excel和Google表中創建彩色下拉列表

As a result, you will have a color-coded drop down list where each option is represented by a colored cell. This visual representation can be especially useful for data sets with a large number of categories or where color is a significant factor.

如何在Excel和Google表中創建彩色下拉列表

Color coded dropdown list in Google Sheets

To color code drop down list in Google Sheets, follow these steps. After adding background colors (Step 6), do the following:

  1. Click on the color you've added to a certain item, and then click Customize.

    如何在Excel和Google表中創建彩色下拉列表

  2. On the Background tab, copy the Hex color code:

    如何在Excel和Google表中創建彩色下拉列表

  3. On the Text tab, paste the copied hex code:

    如何在Excel和Google表中創建彩色下拉列表

That's it! After following the steps outlined above, you'll have a color-coded dropdown menu effectively hiding the text values and leaving only the color swatches visible.

如何在Excel和Google表中創建彩色下拉列表

Note. Please remember that the purpose of visual communication is to enhance understanding, and different situations may require different visual cues to achieve that goal. Color codes are useful for representing data where the color is the primary indicator of meaning. However, if you need to provide additional context for each item, using different fill and font colors can be a more effective way to communicate this information visually.

In conclusion, adding color to drop-down lists in Excel and Google Sheets is a great way to enhance the visual appeal of your spreadsheets while also making them more functional and comprehensible. So go ahead and try it out, and see how color can transform your spreadsheets today!

Practice workbook for download

Excel color drop down list (.xlsx file) Google Sheets drop down list with color (online sheet)

以上是如何在Excel和Google表中創建彩色下拉列表的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
Excel中的中位公式 - 實際示例Excel中的中位公式 - 實際示例Apr 11, 2025 pm 12:08 PM

本教程解釋瞭如何使用中位功能計算Excel中數值數據中位數。 中位數是中心趨勢的關鍵度量

Google電子表格Countif函數帶有公式示例Google電子表格Countif函數帶有公式示例Apr 11, 2025 pm 12:03 PM

Google主張Countif:綜合指南 本指南探討了Google表中的多功能Countif函數,展示了其超出簡單單元格計數的應用程序。 我們將介紹從精確和部分比賽到Han的各種情況

Excel共享工作簿:如何為多個用戶共享Excel文件Excel共享工作簿:如何為多個用戶共享Excel文件Apr 11, 2025 am 11:58 AM

本教程提供了共享Excel工作簿,涵蓋各種方法,訪問控制和衝突解決方案的綜合指南。 現代Excel版本(2010年,2013年,2016年及以後)簡化了協作編輯,消除了M的需求

如何將Excel轉換為JPG-保存.xls或.xlsx作為圖像文件如何將Excel轉換為JPG-保存.xls或.xlsx作為圖像文件Apr 11, 2025 am 11:31 AM

本教程探討了將.xls文件轉換為.jpg映像的各種方法,包括內置的Windows工具和免費的在線轉換器。 需要創建演示文稿,安全共享電子表格數據或設計文檔嗎?轉換喲

excel名稱和命名範圍:如何定義和使用公式excel名稱和命名範圍:如何定義和使用公式Apr 11, 2025 am 11:13 AM

本教程闡明了Excel名稱的功能,並演示瞭如何定義單元格,範圍,常數或公式的名稱。 它還涵蓋編輯,過濾和刪除定義的名稱。 Excel名稱雖然非常有用,但通常是氾濫的

標準偏差Excel:功能和公式示例標準偏差Excel:功能和公式示例Apr 11, 2025 am 11:01 AM

本教程闡明了平均值的標準偏差和標準誤差之間的區別,指導您掌握標準偏差計算的最佳Excel函數。 在描述性統計中,平均值和標準偏差為interinsi

Excel中的平方根:SQRT功能和其他方式Excel中的平方根:SQRT功能和其他方式Apr 11, 2025 am 10:34 AM

該Excel教程演示瞭如何計算正方根和n根。 找到平方根是常見的數學操作,Excel提供了幾種方法。 計算Excel中正方根的方法: 使用SQRT函數:

Google表基礎知識:了解如何使用Google電子表格Google表基礎知識:了解如何使用Google電子表格Apr 11, 2025 am 10:23 AM

解鎖Google表的力量:初學者指南 本教程介紹了Google Sheets的基礎,這是MS Excel的強大而多才多藝的替代品。 了解如何輕鬆管理電子表格,利用關鍵功能並協作

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

WebStorm Mac版

WebStorm Mac版

好用的JavaScript開發工具

Atom編輯器mac版下載

Atom編輯器mac版下載

最受歡迎的的開源編輯器

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一個PHP/MySQL的Web應用程序,非常容易受到攻擊。它的主要目標是成為安全專業人員在合法環境中測試自己的技能和工具的輔助工具,幫助Web開發人員更好地理解保護網路應用程式的過程,並幫助教師/學生在課堂環境中教授/學習Web應用程式安全性。 DVWA的目標是透過簡單直接的介面練習一些最常見的Web漏洞,難度各不相同。請注意,該軟體中