ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   A very simple conditional formatting question (https://www.excelbanter.com/excel-discussion-misc-queries/221205-very-simple-conditional-formatting-question.html)

Mel[_4_]

A very simple conditional formatting question
 
Excel 2003

I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...

=AND(G4<"",G4=0)

So, is this the recommended hoop to jump through to make it work or is
there a better way?

Thanks,
Melina

T. Valko

A very simple conditional formatting question
 
zero and null evaluated as the same?

Yes

=AND(G4<"",G4=0)
is this the recommended hoop to jump through to make it work


Yes

--
Biff
Microsoft Excel MVP


"Mel" wrote in message
...
Excel 2003

I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...

=AND(G4<"",G4=0)

So, is this the recommended hoop to jump through to make it work or is
there a better way?

Thanks,
Melina




Bob Phillips[_3_]

A very simple conditional formatting question
 
That is as good a way as any.

--
__________________________________
HTH

Bob

"Mel" wrote in message
...
Excel 2003

I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...

=AND(G4<"",G4=0)

So, is this the recommended hoop to jump through to make it work or is
there a better way?

Thanks,
Melina




Shane Devenshire[_2_]

A very simple conditional formatting question
 
Hi,

Your title is conditional formatting but you aren't doing conditional
formatting. If you are then the formula in conditional formatting should be

=AND(A1<"",A1=0)

Second question - is null and 0 the same. In most cases yes but not all
cases. the following formula returns #NULL! =A1:A10 B1:B10 which is not
equal to 0.

I realize that this is an obscure point, but...

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Mel" wrote:

Excel 2003

I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...

=AND(G4<"",G4=0)

So, is this the recommended hoop to jump through to make it work or is
there a better way?

Thanks,
Melina


Mel[_4_]

A very simple conditional formatting question
 
Thanks, Biff.

'Just wanted to be sure I missed anything. <g

-Melina


On Feb 16, 3:51*pm, "T. Valko" wrote:
zero and null evaluated as the same?


Yes

=AND(G4<"",G4=0)
is this the recommended hoop to jump through to make it work


Yes

--
Biff
Microsoft Excel MVP

"Mel" wrote in message

...

Excel 2003


I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...


=AND(G4<"",G4=0)


So, is this the recommended hoop to jump through to make it work or is
there a better way?


Thanks,
Melina



Mel[_4_]

A very simple conditional formatting question
 
I'm doing conditional formatting.

-Melina

On Feb 16, 4:06*pm, Shane Devenshire
wrote:

Your title is conditional formatting but you aren't doing conditional
formatting. *If you are then the formula in conditional formatting should be


T. Valko

A very simple conditional formatting question
 
You're welcome!

--
Biff
Microsoft Excel MVP


"Mel" wrote in message
...
Thanks, Biff.

'Just wanted to be sure I missed anything. <g

-Melina


On Feb 16, 3:51 pm, "T. Valko" wrote:
zero and null evaluated as the same?


Yes

=AND(G4<"",G4=0)
is this the recommended hoop to jump through to make it work


Yes

--
Biff
Microsoft Excel MVP

"Mel" wrote in message

...

Excel 2003


I want cell G4 conditionally formatted if a zero (0) is entered, but
no action if left blank. To simply program "G4=0" formats the cell
when empty because zero and null evaluated as the same? But when I use
this formula it works...


=AND(G4<"",G4=0)


So, is this the recommended hoop to jump through to make it work or is
there a better way?


Thanks,
Melina





All times are GMT +1. The time now is 02:46 PM.

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