Conditional Formatting

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have the following conditional formatting below so that if the rate in Col A <>14% and the value <> 0 in Col E, then columns A:G that are part of the CF are highlighted in Blue



Code:
 =IF(AND($A2<>14%),$E2<>0)


I need to amend my formula so that if #Div/0! is in Col A and col E <> 0 then the cells must also be highlighted


It would be appreciated if someone could kindly amend my formula to incorporate the above requirement
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
thanks for the help. I had to amend slightly as one parenthesis missing after 14%, but it does not highlight any of the cells per my requirement

Code:
 =IF(AND(OR($A2<>14%),ISERROR($A2)),$E2<>0)


Kindly test and amend when you have a chance
 
Upvote 0
Harder than I expected. I think this works for all conditions...
Code:
=IFERROR(AND($A2<>14%,$E2<>0),ISERROR($A2))
 
Upvote 0
Thanks very much for your help. Your amended formula works perfectly for the CF
 
Upvote 0

Forum statistics

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