Conditional formatting with if statement

quercus

New Member
Joined
Feb 23, 2009
Messages
19
I am sure this is a simple solution, alas my mind hasn't yet figures it out :)

I am trying to apply the following conditional formatting:

Assuming data is in Row 5:


  • If there is data entered in ANY of cells G5:K5 then highlight the row.
  • If there is data entered in ALL cells G5:K5 then no highlighting
  • If there is NO data entered in cells G5:K5 then no highlighting'
:???:

Thank you
Quercus
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try
=AND(COUNTA(G5:K5)>0,COUNTA(G5:K5)<5)

Hi Jonmo,

Thanks for the swift response :)

The formula you suggested, when applied to G5:K5 will highlight the cell that has data entered. When all cells G5:K5 have data then only G5 loses it's highlight. So not quite what I was after....Does that make sense?!

Essentially, I need to flag when a cell within the range G:K does not have a value, when at least one of the other cells in this range does. If none/all of the cells have a value then no formatting applies.

Quercus
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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