Skip to main content

How to shade or color blank or nonblank cells in Excel?

Author: Xiaoyang Last Modified: 2024-11-18

Supposing you want to shade/color all blank cells (or nonblank cells) in a specified range in Excel. How can you quickly fill or shade all blank cells at once in Excel?


Fill all blank/nonblank cells with Go to Special function

This method allows you to quickly color empty cells in the worksheet.

1. Select the specified range where you will shade all blank cells (or nonblank cells).

2. Click Home > Find & Select > Go To Special…to open the Go To Special dialog box. And then check the Blanks option in this dialog box, see screenshot:
Note: For selecting all nonblank cells, please check the Constants option.
A screenshot of the Go To Special dialog box in Excel with the Blanks option selected

3. Click OK. And all of the blank cells (or nonblank cells) have been selected in the specified range.

4. And then click Home > Fill Color and choose the color you'd like to fill. See screenshot:
A screenshot of the Fill Color menu in Excel for coloring blank cells

Now, all blank cells (or nonblank cells) have been shaded.


Shade all blank/nonblank cells with Conditional Formatting

You can also apply Conditional Formatting to shade blank (or nonblank) cells. With this method, when you enter data into a blank cell (or remove data from a nonblank cell), the shading color in this cell will be restored to the default color. You can do as follows:

1. Select the range where you will shade all blank (or nonblank) cells. See screenshot:

2. Then click Home > Conditional Formatting > New Rule to open the New Formatting Rule dialog box.

3. In the opening dialog box, please click Use a formula to determine which cells to format in the Select a Rule Type box, and enter the formula =A1= "" (A1 is the first cell in the specified range) into the Format values where this formula is true box, and click the Format button.
Note: For shading all nonblank cells in the specified range, please enter this formula =A1<>"" into the Format values where this formula is true box.
A screenshot of the New Formatting Rule dialog box in Excel with a formula entered to shade blank cells

4. Then in the Format Cell dialog box, select a fill color on the Fill tab, and click the OK button.
A screenshot of the Format Cells dialog box in Excel showing the Fill tab for selecting a color

5. And it will return to the New Formatting Rule dialog box, you can preview the color in the Preview box, and please click the OK button to apply this conditional formatting.
All of the blank cells (or nonblank cells) in the specified range have been shaded. With this method, entering data into a blank cell (or removing data from a nonblank cell) will restore the cell to its default background color.


Color nonblank cells with Kutools for Excel

This method guides you on how to use Kutools for Excel’s Select Nonblank Cells utility to select all nonblank cells in a specified range, and then color them easily in Excel.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the range where you will color all nonblank cells together, and click Kutools > Select > Select Nonblank Cells. See screenshot:
A screenshot of the Select Nonblank Cells utility in Kutools tab in Excel
Then a dialog box will come out and tell you how many nonblank cells have been selected. Click the OK button to close it. See screenshot above.

2. Add fill color for these selected cell by clicking Home > Fill Color and selecting a fill color from drop down list. See screenshot:
A screenshot of the Fill Color menu in Excel for coloring selected nonblank cells

So far we have colored all nonblank cells together in the specified range as below screenshot shown:
A screenshot showing the result of shaded nonblank cells in Excel

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: shade or color nonblank cells in Excel

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!