multiple Formula in Conditional Formatting

Saneesh

New Member
Joined
Jun 15, 2017
Messages
5
Hi All,

i have a scenario where i have a scenario that i have to apply two conditions for a cell:

Let say i want to do it for Column A1

1. A1<10 if yes cell interior color should change to Red
2.A1>=10 if yes cell interior color should change to Green

can i do this in just one condition?

Thanks in advance
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Willem,
Thanks for the update.

But in my case that is not allowed as all cell should be in white.

can u help me in executing my below code:

Code:
With ThisWorkbook.Sheets("27-Sep").Range("g7:g10") .FormatConditions.Add Type:=xlExpression, Formula1:="=g7<$g$3", Formula2:="=g7>=$g$3"
.FormatConditions(1).Formula1.Interior.ColorIndex = 3
.FormatConditions(2).Formula2.Interior.ColorIndex = 46
End With
any way to execute this?
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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