Conditional Formatting Formula to highlight empty cells between cells with value

Status
Not open for further replies.

apor

New Member
Joined
Dec 20, 2021
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
I want to use conditional formatting to highlight cells with no value if they sit between cells with value.

I have tried this rule however it is not giving me any results:

=" =AND(B2="""",SUM($B2:B2)>0,SUM(B2:$CC2)>0)"

bbccddeeffgghh
A
1​
1​
1​
1​
B
1​
1​
1​
1​
11​
1​
C
1​
11​
11​
1​
D
1​
1​
1​
1​
E
1​
1​
1​
F
1​
1​
1​
G
1​
1​
1​
1​
1​
1​
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Not sure if you want column A considered in the blankness or not, but try this;

Mr excel questions 42.xlsm
ABCDEFGH
1bbccddeeffgghh
2A1111
3B1111111
4C111111
5D1111
6E111
7F111
8G111111
apor
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:H8Expression=AND(SUM(--($A2:A2<>""))>0,SUM(--(C2:$H2<>""))>0,B2="")textNO
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,995
Messages
6,128,180
Members
449,430
Latest member
sadielynn7

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