Conditional formatting embedded within formula

sharshra

Active Member
Joined
Mar 20, 2013
Messages
398
Office Version
  1. 365
I have extensively used conditional formatting for various purposes. But these are made on a set of cells having some values. It is like hard coding the range of cells & applying conditional formatting on it.

Instead, I´m curious to know if it is possible to embed conditional formatting within excel formula. When the formula executes, it will automatically apply conditional formatting to the range of cells where results are updated. Thinking of something similar to dynamic array SPILL the values. Along with SPILL of values, is it possible to SPILL the conditional formatting also?

Consider the following example. I'm using a simple formula to SUM. On top of the formula output, conditional formatting is applied to highlight in red the values less than 10. While the formula SPILL the result, can I embed conditional formatting also within the formula so that both the result & conditional formatting will SPILL?

excel problems.xlsx
BC
561
5748
587
599
60112
6176
6298
63343
merge tables


excel problems.xlsx
G
561
5712
587
599
6013
6176
6298
6337
merge tables
Cell Formulas
RangeFormula
G56:G63G56=BYROW(B56:C63,LAMBDA(r,SUM(r)))
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G56:G63Expression=$G56<10textNO
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
No, not through traditional use of conditional formatting. You will either need to apply the formatting/conditional formatting with some VBA or set a large enough area for a normal CF rule that would cover any range the formula will spill to.
 
Upvote 0
Thanks, @dried1011. I´m already setting large range for CF, but wanted to check if there is a way to SPILL CF.
 
Upvote 0

Forum statistics

Threads
1,223,578
Messages
6,173,168
Members
452,504
Latest member
frankkeith2233

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