Conditional formating Help needed

Mldeuser

Well-known Member
Joined
Dec 27, 2008
Messages
574
Office Version
  1. 365
Platform
  1. Windows
Is it possible to have a conditional formating rule that looks at the value of cell e12 and if that value is greater than 5,000 or less than -5,000 and is greater than 5% or -5% when the value in cell e12 is divided by d12. and shades the cell

D12 = (130,000)
E12 = 8,870

Thank you
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You can test for absolute value (which is easier than two tests for >5K or <-5K), and also include compound tests.
You should include a conditional format for "formula is"

=(ABS($D12) >= 5000) * (ABS($E12 / $D12) > 5%)

and then set the formatting you want. The relative references assume that you want to copy this down the sheet for multiple rows.
 
Upvote 0
Thankyou for your help.

One last thing is there a way to account for cell D12 being zero. since this returns #DIV/0! instead of a number.

Thank you
 
Upvote 0
Thankyou for your help.

One last thing is there a way to account for cell D12 being zero. since this returns #DIV/0! instead of a number.

Thank you

That won't matter in conditional formatting..
Conditional formatting considers errors as False..
Or more accurately....NOT True.

Unless you want the Formatting applied in the case that D12 is 0, then you don't need to test for it.
 
Upvote 0
I would like formatting to account for D12 being 0 since this could mean that E12 is greater than 5,000

Thank you
 
Upvote 0
I made it work by adding a second conditional format rule

Thank you
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

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