Forum Discussion

Jimmy0600's avatar
Jimmy0600
Copper Contributor
Jun 20, 2024

How to conditionally format a range of not blank cells, then check & format per category

Is there a way to conditionally format a range of cells [$C$6:$AT$25 or named range] using formula for the following? -

Firstly, check if cell is not blank [suggested code; NOT(ISBLANK($C$6:$AT$25))].

Then check column A on the same row as that cell and use the following rule:

If CATEGORY1 then format fill yellow,

If CATEGORY2 then format fill blue,

If CATEGORY3 then format fill green,

If CATEGORY4 then format fill red, and so on...

Is this possible in conditional formatting using formula and if so what is the best method?

    • Jimmy0600's avatar
      Jimmy0600
      Copper Contributor

      Hi OliverScheurich 

      Thanks for looking at this for me.

      I've looked at the sample file and found that the formatting only applies to the whole row so if there's one blank cell, then no cells are formatted.  I'm looking for only cells that contain a value in that row to be formatted.

       

      As I currently have 23 categories, I would prefer a formula that applies to full range as a whole otherwise, I'll be inputting 23 categories x 19 rows = 437 conditional formatting rules!

      Let me know what you can do - many thanks

Resources