Conditional formatting based on number of blank cells

lizard_queen

New Member
Joined
Mar 22, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have figured out how to format my range (row) of columns into a single colour based on whether or not there is any blank cell in the specified range using the COUNTBLANK() function. However, I was wondering if it is possible to apply a gradient to this so that cells which have more blanks are coloured, say red, those with less being yellow and those that are complete being green (along a gradient)?

Thanks heaps :)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Applying a color gradient to the WHOLE row is the stumbling block.
The same issue is covered in this forum here conditionally-formatting-a-row-using-a-colour-scale
One suggested option is to apply colors to a number of different value ranges. This will not give a full spectrum but at least give color groupings.

For the formula to form a basis for the above substitute your conditional format formula with a Countifs.
Excel Formula:
=COUNTIFS($A10:$G$10,"")
And then pick colors base on that being > a nominated value, and repeat a number of timed in order.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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