Conditional Formatting Formula

vharp91

New Member
Joined
Jul 24, 2020
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Can someone please help me with a conditional formatting formula that I can add to column V that will reference the cells in column AF. I need conditional formatting that will highlight (neutral, bad and good colors) the cells in column V based on what the values are in column AF. For example, if cell value in AF27 is < 0.05 (less than 5%), then it will highlight cell V27 with the neutral (yellow) color, if the cell value in AF27 is >= 0.05 (greater than or equal to 5%) then it will highlight cell V27 with the bad (red) color, and lastly, if cell value in AF27 is < 0.05 and > -0.05 (less than 5% and greater than -5%), then it will highlight cell V27 with the good (green) color. The formula should move down with the rows, so applying the same conditional formatting to rows 28, 29, 30 and so on. So essentially, the conditional formatting in column V should match the current conditional formatting in column AF.

1708038346695.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Perhaps these:
Book1
VAF
272.7-6.0%
286.2410.7%
294.7165.5%
308.1828.9%
311.27-70.6%
324.68-9.1%
3300.0%
349.977.6%
3500.0%
365.26-4.0%
375.91-6.7%
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
V27:V37Expression=AND(AF27<0.05,AF27>-0.05)textNO
V27:V37Expression=AF27>=0.05textNO
V27:V37Expression=AF27<0.05textNO
 
Upvote 0
You can use the same rules for both column V and column AF by putting $ in front of column number in the conditional formula:

Book1
VAFAGAHAI
1AF<-5%-0.05<=x<0.05AF>=.05
22.7-0.06TRUEFALSEFALSE
36.240.107FALSEFALSETRUE
44.710.655FALSEFALSETRUE
55.26-0.04FALSETRUEFALSE
Sheet5
Cell Formulas
RangeFormula
AG2:AG5AG2=AF2<-0.05
AH2:AH5AH2=AND(AF2>=-0.05,AF2<0.05)
AI2:AI5AI2=AF2>=0.05
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF2:AF5Expression=$AF2>=0.05textNO
AF2:AF5Expression=AND($AF2>=-0.05,$AF2<0.05)textNO
AF2:AF5Expression=$AF2<-0.05textNO
V2:V5Expression=$AF2>=0.05textNO
V2:V5Expression=AND($AF2>=-0.05,$AF2<0.05)textNO
V2:V5Expression=$AF2<-0.05textNO
 
Upvote 1
Solution

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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