Conditional Formatting based on percent of another cell.

Dmajure

New Member
Joined
Jan 7, 2021
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Need help with conditional formatting, highlighting based on another cell, but not a simple "greater than"

Column A is greater than 75% of column B

AB
620
33 (red)42
15 (red)17
116
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the Board!

Let's say that you were applying to it cell A2.
Then select cell A2, go to Conditional Formatting, choose the "Formula" option (the last one), and use this formula:
VBA Code:
=A2>(B2*.75)
and choose your red formatting color.

To apply it to a whole range of cells at once, select the whole range, and then write the formula as it pertains to the first cell in your selection, and Excel will automatically adjust it for the other cells.
 
Upvote 0
=($A2/$B2)>0.75
As a conditional formatting rule

Book1
ABCD
1AB
262030%
33342red79%
41517red88%
51166%
Sheet2
Cell Formulas
RangeFormula
D2:D5D2=A2/B2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A5Expression=$A1/$B1>0.75textNO
 
Upvote 0
Thank You! I'm Probably going to have many future questions too ?
 
Upvote 0
You are welcome.
Glad we were able to help.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

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