Multiple Conditional Formatting Options ...

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
680
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hello Excel World ,

Once again the management have tasked something & i really don't know where to begin .. so here goes.

A table detailing number of sales from each location . So each cell has a number within it (or it is blank if the
formula result is 0). These cells have been conditionally formatted into four "static" conditions:
Cell value is blank = Blue
<50 = Red
>50,<100 = Amber
>100= Green
So four conditions , and it works perfectly .
Powers that be would like to be able to re model the formatting , for example change the less than , greater than
quantities but keep the same colours.
My question is , is there any way to either dynamically change the rule , or is there an option to have several rules
and you could select that rule ?.
Any ideas , as always gratefully received..
Many thanks ,
Russ.
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,655
Office Version
  1. 365
Platform
  1. Windows
You could use a couple of helper cells where you input the lower & upper values
+Fluff 1.xlsm
ABCDEFGHIJKL
7558843511162983813036Lower50
8100104125641491116310113185Upper100
916177783137100553106
10441360110115181201811725
1196754726144139140563425
1213686109121145113674794143
1368707510511510340124143
14305013211212425371379882
1512418201486211112191385
16148108891389114848892132
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A7:J16Expression=A7<=$L$7textNO
A7:J16Expression=A7>$L$8textNO
A7:J16Expression=A7<=$L$8textNO
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,589
Office Version
  1. 365
Platform
  1. MacOS
you could refer to a different sheet for a range of values to use , so that things can be changed

otherwise, can you give more examples of how to dynamically change the range

so you could have 2 cells
one with 50 in and 1 with 100

then say thats in sheet2 cell A1 and A2

then
<sheet2!$A$1 = Red
>sheet2!$A$1,<sheet2!$A$2 = Amber
>sheet2!$A$2 = Green

But you may need to change the conditional formatting to use formulas
 

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
680
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi Fluff ,
Many thanks for the prompt response , i will give your helper cell solution a whirl and let you know how
i get on .
Have a good & safe weekend,
Russ.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,655
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Glad we could help & thanks for the feedback.
 

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
680
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi Fluff ,
Sorry for the delay in testing Mate ,
Both green & red formatting are working just fine , but alas the amber function is not ....
Any ideas
Thanks
Russ.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,655
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Can you post some sample data showing the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
680
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi Fluff ,
Mini sheet attached
BHX-HeatMap_V1.4_Nov_Dec_Jan-CF Test.xlsx
ABCDEFGHIJ
1Min50Aisle41848382
2Max99Nov558843
3Dec100104125
4Jan16177
HeatMapOPA-PIC01-QPA
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H2:J4Expression=H2<=$B$2textNO
H2:J4Expression=H2>$B$2textNO
H2:J4Expression=H2<=$B$1textNO
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,655
Office Version
  1. 365
Platform
  1. Windows
Thanks for that, you need to move the rule for the red cells, above the Amber rule.
 

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
680
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Thanks for that, you need to move the rule for the red cells, above the Amber rule.
Excellent , saved a considerable amount of grief , thank you very much indeed .

Stay safe , and stay sane ,
Russ.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,809
Messages
5,627,019
Members
416,215
Latest member
Ostie3994

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
Top