Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


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

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

Fill all blank/nonblank cells with Go to Special function

Shade all blank/nonblank cells with Conditional Formatting

Color nonblank cells with Kutools for Excel (only 2 steps)

Easily combine multiple worksheets/workbooks into single worksheet/workbook

It may be tedious to combine dozens of sheets from different workbooks into one sheet. But with Kutools for Excel’s Combine (worksheets and workbooks) utility, you can get it done with just several clicks! Full Feature Free Trial 60-day!

ad combine sheets books 1

With this method you can quickly color the 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.

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:

And all of the empty cells (or nonblank cells) have been shaded.

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.

3. Then in the Format Cell dialog box, select a fill color on the Fill tab, and click the OK button.

4. 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. When you type some data into the colored blank cells (or remove data from nonblank cells), the cell will return to the default background color.

This method will guide you apply 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 - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select the range where you will color all nonblank cells together, and click Kutools > Select > Select Nonblank Cells. See screenshot:

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:

So far we have colored all nonblank cells together in the specified range as below screenshot shown:

doc color nonblank cells 4

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!

In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!

Automatically Count/Sum/Average cells by fill color in Excel

Sometimes you mark cells by fill color, and then count/sum up these cells or calculate these cells’ average later. Kutools for Excel’s Count by Color utility can help you solve it with ease. This Count by Color utility can count/sum/average cells by font color or background color no matter they are formatted by solid color or conditional formatting. Full Feature Free Trial 60-day!

ad unhide all sheets 1

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    ND · 2 years ago
    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?
  • To post as a guest, your comment is unpublished.
    Deborah · 2 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Mark · 2 years ago
    Excellent, clear and concise instructions. Great when you can google a question, find the answer and the instructions are simple and clear.
  • To post as a guest, your comment is unpublished.
    Ntharotep · 3 years ago
    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?

  • To post as a guest, your comment is unpublished.
    saneel · 3 years ago
    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