Conditional formatting based on two requirement in different cells

Mldeuser

Well-known Member
Joined
Dec 27, 2008
Messages
574
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet that I am trying to come up with a way to look at variations in two different cells ad if they are met to highlight the cell.

For example I am currently using

=OR(D6>=1000,D6<=-1000) - this is to find any vales greater than or equal to 5,000 or a negative 5,000.

=OR(E6>=10,E6<=-10) this is based on the above.

What I would like is to combine them in column D so if the to statements are found the cell in column D will highlight

For example D9 has a value of (31,038.00) and E9 has a value of (246.47) in this case I would like the conditional formatting to highlight D9

Thank you
Mark
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Just combine your two formulas with an AND statement, try this.

Code:
=and(or[COLOR=#333333](D6>=1000,D6<=-1000),[/COLOR][COLOR=#333333]OR(E6>=10,E6<=-10))[/COLOR]

Both OR formulas would have be true for you to get a TRUE value for the AND formula.

Also, note, I just copied your formulas from your OP, you stated 5,000, but your formula shows 1,000, just making sure you are aware.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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