ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Formatting Formula (https://www.excelbanter.com/excel-worksheet-functions/447413-conditional-formatting-formula.html)

deutz

Conditional Formatting Formula
 
Hi and thanks in advance,

Trying to formulate a conditional formatting formula.

I want to colour cell A1 when the following is true: Whenever there is text in B1 then C1 must equal "Completed" and whenever there is text in D1 then E1 must equal "Completed" and whenever there is text in F1 then G1 must equal "Completed".

So say if cells B1, D1 and F1 all contain text then their corresponding cells C1, E1, G1 must contain "Completed"

or say if just D1 alone contains text then the corresponding cell E1 must contain "Completed".

Spencer101

Quote:

Originally Posted by deutz (Post 1606476)
Hi and thanks in advance,

Trying to formulate a conditional formatting formula.

I want to colour cell A1 when the following is true: Whenever there is text in B1 then C1 must equal "Completed" and whenever there is text in D1 then E1 must equal "Completed" and whenever there is text in F1 then G1 must equal "Completed".

So say if cells B1, D1 and F1 all contain text then their corresponding cells C1, E1, G1 must contain "Completed"

or say if just D1 alone contains text then the corresponding cell E1 must contain "Completed".

You seem to have two conditions here :

1) Where B, D & F contain text and their corresponding cells contain "Completed", so ALL 6 cells must be populated to trigger the conditional formatting.

2) Where just one set of the two cells needs need to be populated to trigger the conditional formatting.

Could you explain a little more of what you require?
It's easy enough to show you how, but depends on which of the above you really mean.

GS[_2_]

Conditional Formatting Formula
 
Try the following formula for CF in A1...

=OR(AND(LEN(B1),C1="Completed"),AND(LEN(D1),E1="Co mpleted"),AND(LEN(F1),G1="Completed"))

...where if any of the 3 cell pairss meet the criteria A1 will shade.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion



Living the Dream

Conditional Formatting Formula
 
Hi

Try this:

=IF(B1<"",AND(C1="Completed"))

rinse and repeat for all your other cells.

HTH
Mick.


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com