Conditional formatting formula

mayaicar

New Member
Joined
Sep 1, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
I am trying to format a cell based on the following conditions: 1) cell $I$6 has the value "Month" OR "Quarter" and 2) cell $I$9 DOES NOT have the value "All". Both conditions need to be valid at the same time. Attempted to split this into 2 separate formulas but one always overrides the other and doesn't give me the desired result.
 

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.
Excel Formula:
=AND($I$9<>"All",OR($I$6="Month",$I$6="Quarter"))
 
Upvote 0
Excel Formula:
=AND($I$9<>"All",OR($I$6="Month",$I$6="Quarter"))
Thanks for your reply. I tried this previously and it is giving me the same result. It formats the cell I want to format when Month/Quarter is selected in I6 but also when 'All' is selected in I9. I wish for it to format based on All not selected, and month/quarter selected
 
Upvote 0
Double check that I9 is exactly All, with no leading/trailing spaces
 
Upvote 0
Thanks for your reply. I tried this previously and it is giving me the same result. It formats the cell I want to format when Month/Quarter is selected in I6 but also when 'All' is selected in I9. I wish for it to format based on All not selected, and month/quarter selected
I tested & then posted the formula. It works for me.
Only thing I can think of is what @Fluff has suggested in Post # 4
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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