跳到主要內容

如何在Excel中為空白或非空白單元格著色或著色?

假設您要在Excel中指定範圍內的所有空白單元格(或非空白單元格)著色/著色。 如何在Excel中一次填充或著色所有空白單元格?


使用轉到特殊功能填充所有空白/非空白單元格

使用此方法,您可以快速為工作表中的空白單元格上色。

1。 選擇指定範圍,在該範圍內將所有空白單元格(或非空白單元格)著色。

2。 點擊 首頁 > 查找和選擇 > 去特別…打開 去特別 對話框。 然後檢查 空白 該對話框中的選項,請參見屏幕截圖:
備註:要選擇所有非空白單元格,請檢查 常量 選項。

3。 點擊 OK。 並且已在指定範圍內選擇了所有空白單元格(或非空白單元格)。

4。 然後點擊 首頁 > 填充顏色 並選擇您想要填充的顏色。 看截圖:

並且所有空單元格(或非空白單元格)都已被陰影化。


使用條件格式為所有空白/非空白單元格著色

您還可以將條件格式應用於空白(或非空白)單元格的陰影。 使用此方法,當您在空白單元格中輸入數據(或從非空白單元格中刪除數據)時,此單元格中的陰影顏色將恢復為默認顏色。 您可以執行以下操作:

1。 選擇將所有空白(或非空白)單元格著色的範圍。 看截圖:

2。 然後點擊 首頁 > 條件格式 > 新規則 打開 新格式規則 對話框。

3。 在打開的對話框中,請單擊 使用公式來確定要格式化的單元格 ,在 選擇規則類型 框,然後輸入公式 = A1 =“” (A1是指定範圍內的第一個單元格) 格式化此公式為真的值 框中,然後單擊 格式 按鈕。
備註:要為指定範圍內的所有非空白單元格著色,請輸入此公式 = A1 <>“”格式化此公式為真的值 框。

4。 然後在 格式單元格 對話框中,在 選項卡,然後單擊 OK 按鈕。

5。 它會返回到 新格式規則 對話框中,您可以在 預覽 框,然後單擊 OK 按鈕以應用此條件格式。
指定範圍內的所有空白單元格(或非空白單元格)已被陰影化。 當您在彩色空白單元格中鍵入一些數據(或從非空白單元格中刪除數據)時,該單元格將恢復為默認背景色。


使用Kutools for Excel為非空白單元格著色

該方法將指導您應用Kutools for Excel的 選擇非空白單元格 實用程序選擇指定範圍內的所有非空白單元格,然後在Excel中輕鬆為它們上色。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1。 選擇將所有非空白單元格一起上色的範圍,然後單擊 庫工具 > 選擇 > 選擇非空白單元格。 看截圖:

然後將出現一個對話框,告訴您已選擇了多少個非空白單元格。 點擊 OK 按鈕將其關閉。 參見上面的截圖。

2。 通過單擊添加這些選定單元格的填充顏色 首頁 > 填充顏色 然後從下拉列表中選擇填充顏色。 看截圖:

到目前為止,我們已經在指定範圍內將所有非空白單元格上色,如下圖所示:
doc顏色非空白單元格4


演示:Excel中的陰影或顏色非空白單元格


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

最佳辦公生產力工具

🤖 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 (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hey, thanks for the help. Just one question, is there a way to fill in nonblank cells and leave cells with a formula but no value blank?
This comment was minimized by the moderator on the site
I actually had to reverse the formula to say =A1"" and Format the conditional format the normal format (no fill and black text) and then format the range the way I wanted the blanks to look (light red fill) to get it to work. I am not sure why it would not detect the empty cells but it could detect the not empty cells. maybe it was because it was a table built linked to a query. But either way i can use it, so thanks so much.
This comment was minimized by the moderator on the site
Excellent, clear and concise instructions. Great when you can google a question, find the answer and the instructions are simple and clear.
This comment was minimized by the moderator on the site
I wanted to JUST shade cells in excel that are blank using a formula but your formula shades all cells with any content blank or otherwise. Is there a formula other than "" for blank cells? Thanks!
This comment was minimized by the moderator on the site
Vendor1 Vendor2 Vendor3 Vendor4 Vendor5 Low Bid Vendor For Low Bid Product1 8 6 3 8 3 Product2 6 4 4 3 5 Product3 8 6 6 8 3 Product4 6 7 7 8 4 Product5 8 8 3 3 5 Product6 8 4 7 3 7 Product7 5 8 7 4 5 Product8 4 6 6 7 4 Product9 4 8 6 7 3 Product10 6 6 5 7 5 Product11 4 5 6 4 3 How we can do this can any one help me
This comment was minimized by the moderator on the site
Thanks a lot for both the method,it worked perfectly well.
This comment was minimized by the moderator on the site
Worked perfectly ^^ Thanks a lot!
This comment was minimized by the moderator on the site
Thanks for both methods. Very nice
This comment was minimized by the moderator on the site
Hi I have a data sheet where different contact are saved. Phone Nr.1, Phone2, Phone3, Phone4. I need to delete all rows where all 4 selected cells(e.g. A2, B2, C2, D2) are blank. Its about 7000 rows I have to clean up. Can you help? thx L.
This comment was minimized by the moderator on the site
I would just filter those columns so that only blanks are showing in all four fields. Then just delete those rows. Not sure if there is a more slick way, but that seems easy.
This comment was minimized by the moderator on the site
Coloring every other field can be achieved by using a theme on your spreadsheet
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