Conditional formatting with countblank

scott_86_

New Member
Joined
Sep 27, 2018
Messages
46
Office Version
  1. 365
Platform
  1. Windows
Hi,

Could anyone please help me out with how to apply the countblank function to conditional formatting?

I'm looking to somehow convert the below if function into conditional formatting so that:
  • TRUE will be green (=0)
  • FALSE will be red (<>0)
Excel Formula:
=IF(COUNTBLANK(tbl_test[@[Column1]:[Column13]])=0,TRUE,FALSE)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
no need if function, and i think u need 2 conditional formatting

conditional formatting 1 : (if tbl_test cells TRUE & set colour to Green)
Excel Formula:
tbl_test[@[Column1]:[Column13]])=0

conditional formatting 2 : (if tbl_test cells FALSE & set colour to RED)
Excel Formula:
tbl_test[@[Column1]:[Column13]])<>0
 
Upvote 0
Try these formulas in Conditional Formatting

scott_86_.xlsm
DEFGHIJKLMNOP
5Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10Column11Column12Column13
6xxxxxxxxxxxxx
7xxxxxxxxxxxx
8xxxxxxxxxxxxx
9
10
11xxxxxxxxxxxxx
12xxxxxxxxxxxxx
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D6:P12Expression=COUNTBLANK(INDIRECT("tbl_test[@[Column1]:[Column13]]"))>0textNO
D6:P12Expression=COUNTBLANK(INDIRECT("tbl_test[@[Column1]:[Column13]]"))=0textNO
 
Upvote 0

Forum statistics

Threads
1,226,050
Messages
6,188,571
Members
453,484
Latest member
jlo1673

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