conditional format 2.1

hi experts, i have applied conditional formatting to my worksheet as per my screenshot below, but the problem i have is that there is an error. i only wanted there to be 2 conditions which if they = a word it is displayed with either a green background or red background, if the cell does not = either word "a" or "b" then i dont want anything to be applied to the cell, it is to remain as is, please assist.

conditional formatting 2.1
Frank .SBuilding EstimatorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Frank .SBuilding EstimatorAuthor Commented:
condition 1. if cell = to check then show background in red fill
condition 2. if cell = checked then show background in green fill
condition 3. if cell does not = either condition 1 or 2 then dont apply any formatting, cell to remain as is
Ryan ChongSoftware Team LeadCommented:
i got replied you in your another question. see if that works for you?
RaminTechnical AdvisorCommented:
Try attached file,
Test.xlsx
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Answer deleted as Ramin posted the same answer. :)
RaminTechnical AdvisorCommented:
Answer deleted as Ramin posted the same answer. :)
Thanks,  I know you are excellent in Excel and please accept my apologies to enter into your territory.


@Frank

Select all the cells that you want to apply conditional formatting.
from Home tab select conditional formatting.
Manage rules ...
New rule ...
Format only cells that contain
change "between" to "equal to".
Type: To Check
click on format
Fill
pick a red color
OK.
OK.
New rule ...
Format only cells that contain
change "between" to "equal to".
Type: Checked
click on format
Fill
pick a green color
OK.
OK.
OK.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RaminTechnical AdvisorCommented:
Thanks,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.