Conditional Formatting - Variance of Percentage compared to another cell

chelsycvg

New Member
Joined
Nov 10, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am needing to set up conditional formatting rules of a column based on how it compares to another cell. I do not want to add another cell to calculate out percentages because there's already a ton of visible data in the spreadsheet.

What I am needing to setup. Anyone have guidance on how to do this? I know it must have to do with the sequence of the way the rules are applied but can't quite wrap my brain around it.

 

Attachments

  • Capture.JPG
    Capture.JPG
    48.2 KB · Views: 40

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi Chelsycvg,

To clarify you want cell B33 to change colour if it's value is...
  1. <+/-10% - green
  2. >+/-10% & <+/-20% - amber
  3. < +/-20% - red
when compared to cell C33?

Can do conditional formatting without any additional cells but need to clarify the rules first.

1636593849972.png


Steven
 
Upvote 0
I know it must have to do with the sequence of the way the rules are applied
That is correct. I don't know if you might have blank cells and if you do how you want those formatted if at all but see if this is any use.
After you have applied the rules as shown below my mini-sheet, if the formatting does not seem right, go back to Conditions Formatting -> Manage Rules and make sure they appear in this order

1636613012082.png


21 11 11.xlsm
BC
33135135
34135160
35100
365480
CF Variance
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B33:C36Expression=ABS((C33-B33)/C33)<=0.1textNO
B33:B36Expression=ABS((C33-B33)/C33)<=0.2textNO
B33:B36Expression=B33<>""textNO
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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