Conditional Formatting a cell based on the adjacent cell being blank

donbot97

New Member
Joined
Jan 6, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I want to highlight a cell as white (no fill) if the cell contains a number and the cell to the left of is blank - how can I achieve this using conditional formatting? Currently with my other rules, it will appear as red if the adjacent cell to the blank one contains a value.

I currently have 3 rules in this worksheet:
- Highlight red if d2>c2
- Highlight green if d2 < c2
- Highlight grey if blank



1609934582301.png
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi Donbot

If you highlight one cell you want to be affected by the conditional formatting and in the conditional formatting you put in this
=AND(E2<>"",D2="")
(I highlighted E2){ take away the $ signs, very important)
Then use the format painter to update al thecells you want to be affected

Hope this helps

Excel Fun
 
Upvote 0
Hi EFANY,

Yes this works perfectly, thank you so much!
 
Upvote 0
Hi Donbot

If you highlight one cell you want to be affected by the conditional formatting and in the conditional formatting you put in this
=AND(E2<>"",D2="")
(I highlighted E2){ take away the $ signs, very important)
Then use the format painter to update al thecells you want to be affected

Hope this helps

Excel Fun
I wonder if you can also help me....

I am trying to put some conditional formatting on column H in my spreadsheet.

I want it to work like this: Cell H7 should turn Red if the cell to the left, G7 is blank. I am able to do this, however I want it to work all the way down the column... so H8 should turn red if G8 is blank. For some reason the entire column is turning red - I want the formatting to work like a regular formula would, with each cell in column H reading the cell to the left in column G.

Are you able to help me with this? I would appreciate it so much!
 
Upvote 0
Hi Donbot

If you highlight one cell you want to be affected by the conditional formatting and in the conditional formatting you put in this
=AND(E2<>"",D2="")
(I highlighted E2){ take away the $ signs, very important)
Then use the format painter to update al thecells you want to be affected

Hope this helps

Excel Fun
You know what, I just got it to work. I guess I had to break down and ask someone. :)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top