From: Nickle on
I am trying to format a cell that has three scenario's.

1. If A1=B1, then the text will be green
2. If A1 does not equal B1, then the text will be red
3. If B1 is empty/blank, then A1 has no formatting.

The value of B1 is dependant on a value that is selected from the Master
Sheet. So B1 has a formula that is attached to it.

I am having difficulties getting A1 to have no formatting if nothing has
been filled/selected for B1. Any ideas would help.

Thanks
From: Eduardo on
Hi,
in conditional formating enter

=AND(B1<>"",B1<>A1)

then set up the colour to be red

"Nickle" wrote:

> I am trying to format a cell that has three scenario's.
>
> 1. If A1=B1, then the text will be green
> 2. If A1 does not equal B1, then the text will be red
> 3. If B1 is empty/blank, then A1 has no formatting.
>
> The value of B1 is dependant on a value that is selected from the Master
> Sheet. So B1 has a formula that is attached to it.
>
> I am having difficulties getting A1 to have no formatting if nothing has
> been filled/selected for B1. Any ideas would help.
>
> Thanks
From: Eduardo on
Hi Nickle,
try this, open a new workbook, in cell a1 enter conditional formating, where
the formula is, type the formula, ok, then open the conditional formating
again and check that the formula is exactly the same I has sent to you, if
you see " at the beginning or end of the formula delete it

"Nickle" wrote:

> A1 still comes back with Red lettering when using this formula even though B1
> has no value in the cell. Any idea?
>