Conditional formatting in an array

Plongy

New Member
Joined
Sep 16, 2015
Messages
5
I'm trying to format rows in an array, simply to colour code the priority.
In Column 'A' I am prioritising a list of tasks by designating it '1' to '3' depending on importance. Based on this I want the remaining 5 cells in an individual row of the array to appear with a red, amber or blue fill, then once the task is completed, column A will be annotated with a 'C' and go green.
I'm thinking I need to do four rules, one for each colour? or do I?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Arrays are treated just like cell data. Mike Garvin at ExcelIsFun explained it best. To work out what your formula has to be, make a mirror of the data using a logical formula.

Cell Formulas
RangeFormula
B2,K2B2=MAX(B3#)-10
K3:M22,B3:D22B3=RANDARRAY(20,,1,100,1)
F3:H22F3=B3>=$B$2
O3:Q22O3=$K3>=$K$2
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K3:M22Expression=$K3>=$K$2textNO
B3:D22Expression=B3>=$B$2textNO
F3:H22,O3:Q22Cell Value=TRUEtextNO


The formula for conditional formatting is worked out in cells F3 and O3, and then used for the conditional formatting. Remember to always start the conditional formatting range at the TOP LEFT of the data, and the "perspective" of the formula needed is from that vantage point.

A playlist of 138 (!) short videos (with sample files) can be found at Excel Conditional Formatting Tricks.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

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