Challenging: Conditional format negative-->positive

sg2004

New Member
Joined
Mar 20, 2009
Messages
46
In column F14 i have a number that i want to show as RED if it is less than E14 by at least 5%, or GREEN if it is more than E14 by 5%.

I've successfully tried "greater than 1.05 * E14" = Green and "less than 0.95 * E14" is Red.

This doesnt work though as the numbers can sometimes be negative!
It's a bit tricky.

What might help is the absolute function =abs(-6) for example is 6.

But i can't work out how to do this, because sometimes E14 is negative and F14 is a lot greater and therefore positive.

Tricky but hopefully doable? HELP :rolleyes:
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Would this work for you?

Formula is: =F14>E14+ABS(E14)*0.05 (Green) and similar for red.
 
Upvote 0
Doesn't look like it.
I've selected greater than, and set it to green, and typed in all sorts of numbers a great deal below and above the negative number on the right and it wont turn it green..
 
Upvote 0
if you get it working on a simple sheet (need 2 numbers in the sheet), pleaase let me know. Thanks so much
 
Upvote 0
for the example you cite in row 14:

use conditional formatting with:

Condition 1 as "Formula Is" =F14/E14<=0.95 with stated format RED

Condition 2 as "Formula Is" = F14/E14>=1.05 with stated format GREEN
 
Upvote 0
I've selected greater than, ...
In the Conditional Formatting dialog, have you chosen 'Formula is' from the left hand drop-down?

Are these correct?

Excel Workbook
EFG
14-100-94.99
15-100-120
16-100-102
1715-800
18580389
19
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F141. / Formula is =F14>E14+ABS(E14)*0.05Abc
F142. / Formula is =F14Abc
 
Upvote 0
no i hadn't.. someone sitting next to me told me formula is, looks at whether the formula is the same... not quite.

OK that looks great, will give it a go, thanks!
 
Upvote 0

Forum statistics

Threads
1,215,274
Messages
6,123,991
Members
449,137
Latest member
abdahsankhan

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