Conditional Formatting based on Conditional Formatting

kohalloran

New Member
Joined
Jun 3, 2011
Messages
2
This may seem like a simple question, but I can't seem to figure it out. I have cells in a table that I want to color based on a drop down box. For example, if I have chosen "Kindergarten" from the drop down box, I want the cells that say everything kindergarten related to turn blue (more specifically, I want the cell that says "math skills" "story time" and "computer skills" to turn blue. I don't want to choose the blue cells by cell number, as the rows will change frequently.

Is there a way to do that? I'm using Excel 2007.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi, Welcome to MrExcel.

Could you provide some sample data? Something like this perhaps....


Excel Workbook
ABCDEFGHI
1KindergardenData1Data2Data3*KindergardenMath SkillsStory TimeComputer Skills
2*Math SkillsComputer TimeDog*****
3*CatMath TestStory Time*****
4*tea timePigBull*****
5*MouseComputer SkillsStory skills*****
Sheet5



The formula used in Conditional Formatting to fill the cells blue is....

=AND($A$1=$F$1,OR(B2=$G$1,B2=$H$1,B2=$I$1))

I hope that helps.

Ak
 
Upvote 0
Hi, Welcome to MrExcel.

Could you provide some sample data? Something like this perhaps....


Excel Workbook
ABCDEFGHI
1KindergardenData1Data2Data3*KindergardenMath SkillsStory TimeComputer Skills
2*Math SkillsComputer TimeDog*****
3*CatMath TestStory Time*****
4*tea timePigBull*****
5*MouseComputer SkillsStory skills*****
Sheet5



The formula used in Conditional Formatting to fill the cells blue is....

=AND($A$1=$F$1,OR(B2=$G$1,B2=$H$1,B2=$I$1))

I hope that helps.

Ak
When you enter a formula in the conditional formatting refedit (that's what that little box is called), it's automatically evaluated as an array so you can enter array formulas in the refedit (no CSE needed, that only needs to be done on the worksheet).

=AND($A$1=$F$1,OR(B2=$G$1:$I$1))

=AND($A$1=$F$1,MATCH(B2,$G$1:$I$1,0))
 
Upvote 0
Hmmm... but what if I want to search the entire column B for the Kindergarten words (and the entire column B is about 100 cells long)? And I want it to be able to switch so that if I choose "Grade 1-3" instead of "Kindergarten" from the drop down box in cell A1, that different (or in some cases the same) cells shade in Column B.... Like perhaps "Grade 1-3" I need "Math Skills" and "Tea Time" (regardless of where they appear in Column B), and for "Kindergarten" I need "Tea Time" and "Cat".

Thank you all for helping with this... I really do appreciate the time you are taking.
 
Upvote 0
Hi,

You can use the formula provided by Biff and add another condition..
Use this for Kindergarden
=AND($A$1=$F$1,MATCH(B2,$G$1:$I$1,0))
Use this for Grade 1-3
=AND($A$1=$F$1,MATCH(B2,$G$2:$H$2,0))

Excel Workbook
ABCDEFGHI
1Grade 1-3Data1***KindergardenMath SkillsStory TimeComputer Skills
2*Math Skills***Grade 1-3Math SkillsTea Time*
3*Cat*******
4*tea time*******
5*Mouse*******
6*Computer Time*******
7*Math Test*******
8*Pig*******
9*Computer Skills*******
10*Dog*******
11*Story Time*******
12*Bull*******
13*Story skills*******
14*tea time*******
Sheet5



Excel Workbook
ABCDEFGHI
1KindergardenData1***KindergardenMath SkillsStory TimeComputer Skills
2*Math Skills***Grade 1-3Math SkillsTea Time*
3*Cat*******
4*tea time*******
5*Mouse*******
6*Computer Time*******
7*Math Test*******
8*Pig*******
9*Computer Skills*******
10*Dog*******
11*Story Time*******
12*Bull*******
13*Story skills*******
14*tea time*******
Sheet5


I hope that helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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