跳到主要內容

如何在Excel中每隔一行或其他行加上陰影?

作者:技術支持 最後修改時間:2020-05-19

為了提高可讀性,有些人在繁忙的Excel工作表中每隔一行顯示陰影。 但是在工作表中,如果要著色的行太多,而您必須一一進行,這會浪費很多時間。 有沒有簡單的方法可以快速執行此操作?這些方法向您展示瞭如何在excel中為交替的行或列著色。

在Excel中使用條件格式公式對其他所有行進行著色
使用Kutools for Excel快速隱藏每行並節省時間


在Excel中使用條件格式公式對其他所有行進行著色

1.選擇要著色的範圍,然後單擊 首頁 >> 條件格式>> 新規則... 見截圖:

2.然後 新格式規則 對話框將會彈出。 選擇 使用公式來確定要格式化的單元格 項目。 然後輸入公式“= MOD(ROW(),2)“以 格式化此公式為真的值.

3。 然後點擊 格式… 按鈕,另一個 單元格格式 對話框將會彈出。 去 l選項卡並選擇一種顏色為背景加陰影。 看截圖:

3。 點擊 OK 返回 新格式規則 對話框,您還將在 預覽 框。

4。 然後點擊 OK。 您將得到想要的結果。 看截圖:

doc shadeternate1

筆記:

1.在陰影範圍內插入或刪除一行,您會看到陰影仍然存在。

2.如果要為備用列加陰影,請使用以下公式“= MOD(COLUMN(),2)“。


使用Kutools for Excel快速隱藏每行並節省時間

隨著 交替的行/列底紋 第三方加載項的實用程序 Excel的Kutools,您可以快速方便地為備用行或列添加陰影。

申請前 Excel的Kutools首先下載並安裝.

1.選擇要著色的範圍。 請點擊 庫工具 > 格式 > 交替的行/列底紋。 見截圖:

2。 在裡面 交替的行/列底紋 對話框,您需要執行以下操作:

doc每隔一排陰影2




(1)選擇 在選項 將底紋應用到 部分.

(2)選擇 條件格式 在選項 遮光方式 部分。

(3)從中指定要使用的顏色 陰影顏色 下拉列表。

(4)在 遮蔽每一個 框,輸入要著色的備用行號。
例如,我們要在選定範圍內的每一行著色,然後輸入數字1。

(5)點擊 OK

然後,您可以立即看到條件範圍的每1行選定的陰影都帶有條件格式,如下圖所示:

doc陰影替代

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


使用Kutools for Excel快速隱藏每行並節省時間

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
=ISEVEN(AGGREGATE(3,5,A$2:A2)) will maintain the alternate shading even when rows have been filtered
This comment was minimized by the moderator on the site
Instructions were perfect. Works great!! Thanks!!
This comment was minimized by the moderator on the site
This is great. how can I achieve the same effect in word 2010 thanks bret
This comment was minimized by the moderator on the site
For those of you who had problems with this formula, make sure you insert a space between the two parentheses after "ROW". This is where I initially went wrong and I had the same problem: "The formula is invalid." Hope this helps.
This comment was minimized by the moderator on the site
Works perfectly on my side that goodness i found this site without any agony! found it on my second Google link Thank you :lol:
This comment was minimized by the moderator on the site
Doe NOT work in Excel 2013! When I press "OK" after inputting the formula and choosing the fill color, Excel tells: "We found a problem with this formula." :sad:
This comment was minimized by the moderator on the site
THANKKKKK YOUUU! This was so helpful! I have been searching for a way to do this for a good hour! thank you so much!
This comment was minimized by the moderator on the site
:lol: THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU!!!!
This comment was minimized by the moderator on the site
As a general rule, I never post comments on any site, let alone one providing assistance with Excel. However, in this instance I just want to extend a, 'thank you!' You have saved me so much time and even despite my fruitless poking,I wouldn't have uncovered the formula to alternate cells I copied the formula provided, and voila! Thank you X560. Best, BMitche
This comment was minimized by the moderator on the site
I cannot get this to work, I always get a notification from Excel that the formula is not correct. Do I need to change some settings in Excel in order for this to work?
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