Skip to main content

如何在 Excel 中套用隔行或隔列的顏色?

Author: Siluvia Last Modified: 2025-05-12

本文將向您展示在 Excel 中套用隔行或隔列顏色的三種方法。請按照以下步驟操作。

使用條件格式化套用隔行或隔列顏色
通過插入表格來套用隔行或隔列顏色
使用 Kutools for Excel 套用隔行或隔列顏色


使用條件格式化套用隔行或隔列顏色

您可以創建一個條件格式化規則,以在 Excel 中套用隔行或隔列顏色。

1. 選擇要套用隔行或隔列顏色的區域,然後點擊「Home」標籤下的「Conditional Formatting」>「New Rule」。

A screenshot of the Conditional Formatting option in Excel for creating banded rows or columns

2. 在「New Formatting Rule」對話框中,請執行以下操作:

2.1 在「Select a Rule Type」框中選擇「Use a formula to determine which cells to format」選項;
2.2 要套用隔行顏色,請在「Format values where this formula is true」框中輸入公式 =MOD(ROW(),2)=0
要套用隔列顏色,請使用此公式 =MOD(COLUMN(),2)=0
2.3 點擊「Format」按鈕指定所需的隔行顏色,然後點擊「OK」按鈕;
2.4 在「New Formatting Rule」對話框中點擊「OK」按鈕。

A screenshot showing Conditional Formatting options for banded rows or columns

然後您可以看到所選區域已按照如下截圖所示套用了指定的背景色。

A screenshot of selected cells with banded background color applied using Conditional Formatting


通過插入表格來套用隔行或隔列顏色

除了上述方法外,您還可以通過在所選區域內插入表格來套用隔行或隔列顏色。

1. 選擇要套用隔行或隔列顏色的區域,然後點擊「Insert」>「Table」。

A screenshot showing the Insert Table option in Excel

2. 在彈出的「Create Table」對話框中,點擊「OK」按鈕。

A screenshot of the Create Table dialog

3. 然後會顯示「Design」標籤,如果您想套用隔行顏色,請勾選「Table Style Options」組中的「Banded Rows」框,否則勾選「Banded Columns」框。請參見截圖:

A screenshot of the Design tab in Excel with options to apply banded rows or columns


使用 Kutools for Excel 套用隔行或隔列顏色

借助 Kutools for Excel 的「Alternate Row / Column Shading」工具,您可以輕鬆地在 Excel 中為指定區域套用隔行或隔列顏色。

Kutools for Excel 提供超過 300 種進階功能,簡化複雜任務,提升創造力與效率。 結合 AI 能力,Kutools 能夠精準自動化任務,讓數據管理變得輕而易舉。Kutools for Excel 的詳細資訊...免費試用...

1. 選擇需要套用隔行或隔列顏色的區域,然後點擊「Kutools」>「Format」>「Alternate Row / Column Shading」。請參見截圖:

A screenshot showing the Alternate Row / Column Shading option selected in Kutools tab in Excel

2. 在「Alternate Row / Column Shading」對話框中,請進行以下配置:

2.1 在「Shade color」下拉列表中指定所需的隔行顏色;
2.2 根據您的需求,在「Apply shading to」部分選擇「Rows」或「Columns」選項;
2.3 在「 Shading method」部分,選擇「Conditional formatting」或「Standard formatting」選項;
2.4 在「Shade every」框中輸入隔行或隔列的間隔數字;
2.5 點擊「OK」按鈕。請參見截圖:

A screenshot of the Alternate Row / Column Shading dialog

現在,所選區域已按照如下截圖所示套用了隔行顏色。

A screenshot showing the result of banded row shading in Excel using Kutools

注意:若要移除所有條件格式化或背景色,「Remove existing alternate row shading」選項可以幫助您。請參見截圖:

A screenshot of Kutools for Excel with options to remove alternate row shading

Kutools for Excel - 超過 300 種必備工具,讓 Excel 功能更強大。永久免費享受 AI 功能!立即獲取

最佳辦公效率工具

🤖 Kutools AI 助手:基於智能執行方式革新數據分析:智能執行   |  生成代碼  |  創建自訂公式  |  分析數據並生成圖表  |  調用 Kutools 函數
熱門功能查找、標記重複值或識別重複項   |  刪除空行   |  合併列或單元格而不丟失數據   |   四捨五入無需公式 ...
高級 LOOKUP多條件 VLookup    多值 VLookup  |   多表查找   |   模糊查找 ....
高級下拉列表快速創建下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
列管理器添加特定數量的列  |  移動列  |  切換隱藏列的可見狀態  |  比較區域和列 ...
特色功能網格聚焦   |  設計檢視   |   增強編輯欄    工作簿與工作表管理器   |  資源庫(自動文本)   |  日期提取器   |  合併資料   |  加密/解密儲存格    按列表發送電子郵件   |  超級篩選   |   特殊篩選(篩選粗體/斜體/刪除線...) ...
頂級 15 種工具集12 個文本工具添加文本刪除特定字符、...)   |   50+ 圖表 類型甘特圖、...)   |   40+ 實用 公式基於生日計算年齡、...)   |   19 個插入工具插入QR碼根據路徑插入圖片、...)   |   12 個轉換工具金額轉大寫匯率轉換、...)   |   7 個合併與分割工具高級合併行分割儲存格、...)   |   ... 還有更多

使用 Kutools for Excel 提升您的 Excel 技巧,體驗前所未有的高效。 Kutools for Excel 提供超過 300 種高級功能來提高生產力並節省時間。  點擊這裡獲取您最需要的功能...


Office Tab 將標籤式界面帶到 Office,讓您的工作更加輕鬆

  • 在 Word、Excel、PowerPoint、Publisher、Access、Visio 和 Project 中啟用標籤式編輯和閱讀。
  • 在同一窗口的新標籤中打開和創建多個文檔,而不是在新窗口中。
  • 將您的生產力提高 50%,每天為您減少數百次鼠標點擊!