Conditional formatting based on conditional formatting -XL02

bdavids3

Board Regular
Joined
Feb 6, 2006
Messages
55
I have conditionally formatted several columns (8 total) in my data. I would like to conditionally format another column based on whether any of the other cells in that row were conditionally formatted.

I'm guessing this will have to be VB code but I don't even know where to begin on this one.

I also wouldn't mind doing all the conditional formatting in VB to make it a little more robust.

Thanks,

Brian
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Brian

Can't you just use the condition(s) you used in the other columns?
 
Upvote 0
Brian

Can't you just use the condition(s) you used in the other columns?

How would I do this? Each of the 8 conditionally formatted columns has 1 to 3 conditions.
 
Upvote 0
Brian

It's hard to tell without seeing the actual conditions.

You might just be able to use formulas with logical operators like OR/AND etc.

But you might be right about needing to use VBA.
 
Upvote 0
Well, you can use Chip Pearson's UDF here (http://www.cpearson.com/excel/CFColors.htm) to determine which (if any) of the conditional formatting conditions are applied.

But, I agree with Norie: it would probably be better to (if possible) just base the conditional formatting of the new ranges on a series of OR/AND functions.
 
Upvote 0
Brian

It's hard to tell without seeing the actual conditions.

You might just be able to use formulas with logical operators like OR/AND etc.

But you might be right about needing to use VBA.

I think I didn't realize what you said originally, but I go it. Thanks.

Here's the final result:

Code:
=AND($F1="G",OR(AND($J1<>"Initiate",$H1=""),AND($H1<>"",$H1<NOW()),$I1<NOW(),AND($J1="Initiate",$K1=3,NOW()>($G1+14)),AND($J1="Initiate",$G1<(NOW()-30)),AND($J1<>"Initiate",$M1=""),AND($J1<>"Initiate",$N1=""),OR($O1>0.1,$O1<-0.1)))

I just combined all the individual conditions into a big AND/OR statement.
 
Upvote 0
Brian

No problem, glad to see you got it working.:)

Mind you I've a feeling that formula could probably be shortened a bit.

I'll take a look at it and see if I can see anything, but perhaps one of the formula wizards will pop by.
 
Upvote 0

Forum statistics

Threads
1,217,476
Messages
6,136,883
Members
450,029
Latest member
MissQuotation

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