Conditinal Formatting Question - Have formula, just need to combine

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. MacOS
Hi guys, I am working on a notfication via conditional formatting and needed help combining a formula for conditional formatting


Is it possible to write the below as one statement?

=AND($D2<>"",ISNA(VLOOKUP($D2,$I$4:$I$5,1,FALSE)))
=ABS($E2)>0.01

Individually these formulas work but I need to have it be one statement.

With the new formula, if it is possible, I will be able to update the changes to this.

Code:
With ws.Range("A2:E" & Finalrow) 'The Conditional Formatting Lines
    .FormatConditions.Delete
    .FormatConditions.Add Type:=xlExpression, Formula1:="=AND(OR(D2<>$I$4,D2<>$I$5),ABS($E2)>0.01)" '<------ Update will go here
    .FormatConditions(1).Interior.Color = RGB(255, 255, 0)
    .FormatConditions(1).Font.Color = RGB(255, 0, 0)
    
    End With
 
Last edited:

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.
Hello, I'm not real clear on what you want to do, is the ABS, another condition that must be true for your conditional formatting? If so that just add it as another AND argument:

=AND($D2<>"",ISNA(VLOOKUP($D2,$I$4:$I$5,1,FALSE)),ABS($E2)>0.01)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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