Conditional format empty cells turn red, but only if there is data in the column to the left.

krispartsbadger

New Member
Joined
May 13, 2022
Messages
24
Office Version
  1. 365
Im running a conditional format that if the column has empty data it turns red. Is there a custom formula that will make this so it only turns red if there is data in the column to the left of it? Picture attached. I would like for the rows that don't have a value in the first column to not then show red in the second column. Thanks!
 

Attachments

  • 953.png
    953.png
    1.6 KB · Views: 32

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Check this and revert -

Assuming you want to format Column B, use following formula to CF

Excel Formula:
=And(B1="",$A1<>"")
 
Upvote 1
Solution
not sure what columns you are using
lets say its column B that is empty and column A needs to have a value

I would like for the rows that don't have a value in the first column to not then show red in the second column. Thanks!
changing the double negative to show a TRUE result

so row A must have a value to turn red in B
so A is NOT blank and B is blank to show red

i read a few times

use
=AND( $A2<>"", $B2="") - depending on where you start

Book1
AB
10
201/1/24
30
401/1/24
50
6
7
8
9
10
11
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B12Expression=AND($A1<>"", $B1="")textNO
 
Upvote 1

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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