How to copy conditional formatting with formulas

MaddogJason

New Member
Joined
Jan 30, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
A small Saturday evening challenge for you.
I've done some conditional formatting with a formula. Works like a charm.
Based on the value in cell E4 the range E5:E6 changes colour.
Now I wish to copy/paste or drag the formula to be valid in the next column. but based on F4.
This seems to work but it will not automatically change the reference to the next column. I played around with the dollar signs but it did not seem to help.
The final idea would be to have different colours for a range of values based on the value in row 4, but each column with reference to its own row 4.

CocoaBreak3.0.xlsm
BCDEFG
2Grade Grade avgalfaBetaCh.2. Test
3
4Last name Weigh->122
5Lisa 6.7676.5
6Paul5.9475
Grades (2)
Cell Formulas
RangeFormula
D5D5=SUMPRODUCT(E$4:AA$4*E5:AA5)/SUMIF(E5:AA5,"<>",E$4:AA$4)
D6D6=SUMPRODUCT(E$4:R$4*E6:R6)/SUMIF(E6:R6,"<>",E$4:R$4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2Expression=$E$4<=1textNO
E5:E23Expression=$E$4<=1textNO
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Select the range you want to use it on & use this formula
Excel Formula:
=E$4<=1
 
Upvote 0
Solution
Select the range you want to use it on & use this formula
Excel Formula:
=E$4<=1
PFFFFT! I swear to the Excel God´s that I gave that option a go, and it did not work!
Then you post the advice and I give it another go and.... voila!
Once again Cheers for the help Fluff!
I have a feeling We´ll talk again :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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