conditional formatting based on content of another cell

New Contributor

Hi all. I cannot figure out how to colour one cell based on the content of another. 


I have successfully formatted one cell to be red if its empty and orange if it is non empty. However, I don't know how to then change it green if the cell next to it is non-empty. Specifically, column A has an action due date (red if not date entered, orange if a date is entered). Column B is the actual completion date. So if Column B has a date in it, I wish Column A to turn green. Any ideas? Thank you!

2 Replies
best response confirmed by alvarezb (New Contributor)


Select the cells that you want to format conditionally. If more than one, the top left cell should be the active cell in the selection. Note the address of this cell.

On the Home tab of the ribbon. select Conditional Formatting > New Rule...

Select 'Use a formula to determine which cells to format'.

Enter a formula that evaluates to TRUE (or a non-zero number) if the rule should be applied, and to FALSE (or 0) otherwise.

In your example, let's say A2 is the active cell in the selection.

Use the following formula:




Click Format...

Activate the Fill tab.

Specify the desired color (green in your example).

Click OK, then click OK again.

@Hans Vogelaar 


Awesome! That works perfectly! Thank you Hans Vogelaar! Hope you are keeping well and safe.