Copy Conditional Formattting (Greater than)

visionavenger

New Member
Joined
Aug 31, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello
I have created a rule to show if (eg) the value in Column B is greater than Column A, but when I use the Format Painter to copy the Conditional Formatting, Excel is using the absolute reference (even if I remove the $).
For example, IF B44 > A44, highlight Red.
When copied to B45, the formula is still checking row 44 and isn't updating to row 45.

Am I doing something wrong or using the wrong type of Conditional Formatting formula?

Thanks for any help or advice.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the Board!

Truth be told, I find the Format Painter a little flaky when it comes to Conditional Formatting.
I have much better luck doing the following:
- select the WHOLE range you want to apply the Conditional Formatting to, and then write the formula as it applies to the FIRST cell in that selected range

So maybe you select rows 44:100, and enter your CF formula like this:
Excel Formula:
=$B44>$A44
(note how columns are locked by rows are not).
 
Upvote 0
Solution
Hi, Joe

Thanks so much for your reply. I tried your way, and it works (although it seems odd that it does).
You'd think that MS would fix the Conditional Formatting, but I guess it's way, way down a long list of fixes needed.

Anyway, thanks again for this. Much appreciated. :)
 

Attachments

  • 230831_CF.png
    230831_CF.png
    17.8 KB · Views: 14
Upvote 0
I guess because you're only entering 1 value (ie, 44) yet it applies to dozens or hundreds of row. I realize that the Absolute Reference ($) is only applying to the columns and not the rows, but it just seems odd that you can highlight a hundred row, and Excel knows that it needs to increase (or decrease) all the row numbers, despite explicitly entering "44" in the formula.
 
Upvote 0
I guess because you're only entering 1 value (ie, 44) yet it applies to dozens or hundreds of row. I realize that the Absolute Reference ($) is only applying to the columns and not the rows, but it just seems odd that you can highlight a hundred row, and Excel knows that it needs to increase (or decrease) all the row numbers, despite explicitly entering "44" in the formula.
It is similar to if you add a formula in one cell, and click auto-fill to copy down the entire column for all your rows of data (or if you manually copy a formula down/across a range of cells).
Through the use of "$", Excel knows what range references you want to "lock down" as the formula travels down, and which you want to allow to "float" (so row number increases by one for every row you move down).
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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