Conditional Formatting if difference in cells is greater than 1%

Fazila

Board Regular
Joined
Nov 19, 2014
Messages
163
Hi All

Wondering if anyone can help me here. I need to highlight cells where the number is lower than say cell A2 but only if there difference is more than 1%. Any ideas? For example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]53[/TD]
[TD]52.6[/TD]
[/TR]
[TR]
[TD]55[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]47[/TD]
[TD]69[/TD]
[/TR]
</tbody>[/TABLE]

Only the cell in purple would be highlighted. 52.6 would not as it is only 0.4% less than 53.

Thanks

Fazila
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Go into manage rules and add a new rule, use the last option "use a formula to determine which cells to format". In the area to enter the formula to format based off, try entering this (this formula assumes that the row that contains 53 and 52.6 in your example start in row 3 and you want the value in cell B3 - the 52.6 - to be lower than a predetermined value in cell A2):

=IF(AND(B3<$A$2, (A3-B3)/B3>.01), 1, 0)=1
 
Upvote 0
Maybe
=B2< A2*0.99
 
Last edited:
Upvote 0
KennyGreens think I miscommunicated I wanted to highlight cell B3 if it was less than A3 by greater than 1% but thank you for taking the time into looking at this.
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
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