Change cell color based on either being empty or change from existing

Posted on 2013-06-06
Last Modified: 2013-11-30
I have a large spreadsheet with various cells containing data or they are blank.  I have used the excel's conditional formatting to highlight the cells that are blank, but is there a way to 1) highlight all the blank cells one color, and 2) change the cell color of any existing cell (including the blank ones) to another color when the cell contents change or if the blank cell becomes filled?
Question by:SFrongillo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39225869

I am not sure if you were looking for manual, semi-automatic, or fully automatic approaches.

However,... there a way to 1) highlight all the blank cells one color

Quickly in the active (selected) worksheet...

Use the [CTRL]+[G] key combination, & click the [Special...] button.

Select "Blanks", & click [OK].

If you wish to change the colo(u)r of the (now) selected cells, use [CTRL]+[F1] & set the formatting as required.



Author Comment

ID: 39225898
Thanks - that was easy to get to the blank cells, but I also need part 2 - to change cell color when value of cell changes from blank to not blank or if contents of cell changes.  This way I can quickly find what cells have been updated on the spreadsheet.
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39226021

Yes, sorry, I saw the full question, but if the first proposal was not suitable alternate options may have impacted proposals for the second part.

Can we confirm the specifications for the second part of your question to a greater depth, please?

Do you wish to "baseline" all the cells on a worksheet at a fixed point in time; those that are presently empty, for instance?

Then, if any of these change, then the cell colo(u)r will change too?

Or, do you just wish to "mark" any cell in a different colo(u)r regardless of a previous value (empty, or otherwise), whenever it changes?


Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 39226163
I'm attaching a sample of what I'm looking for so this will help you understand what I'm after.
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39226261

So, you just want a change in Interior (Background) colo(u)r & the typeface to change to Bold whenever a cell changes (regardless of the original value)?

Do you wish to have a distinct start point & a distinct stop point (or method of confirming when to start &/or when to stop doing this), or should the Visual Basic for Applications code just continue changing cell formatting in this manner forever more?

Accepted Solution

SFrongillo earned 0 total points
ID: 39229266
Visual Basic for Applications code just continue changing cell formatting in this manner forever more....

I generate a new spreadsheet each day so that would be a new starting point.

Author Closing Comment

ID: 39686699

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question