Re: Count unique records?
- From: JE McGimpsey <jemcgimpsey@xxxxxxxx>
- Date: Sun, 16 Apr 2006 16:44:18 -0600
In article <C06811E4.CC82F%berkowit@xxxxxxxxxxxxxxxx>,
Paul Berkowitz <berkowit@xxxxxxxxxxxxxxxx> wrote:
I'm still not understanding why blank is not a valid value, I guess. Is that
the operation can't be performed at all with a blank cell, so 0 is returned
by default?
Almost. A reference to a cell always returns a value. If the cell is
blank, the reference returns either numeric zero, or a null string,
depending on the data type that's expected. A zero is returned by
default.
COUNTIF(), however, appears to coerce both the range values and the
target value to a string.
Without the &"", the returned value is coerced to "0". This will not
match the blank's null string.
By concatenating the returned reference, the returned value is coerced
into a null string, and the result of the concatenation is also a null
string. This *does* match the blank cell's value in the range argument.
.
- References:
- Count unique records?
- From: Jason O
- Re: Count unique records?
- From: JE McGimpsey
- Re: Count unique records?
- From: Paul Berkowitz
- Re: Count unique records?
- From: JE McGimpsey
- Re: Count unique records?
- From: Jason O
- Re: Count unique records?
- From: JE McGimpsey
- Re: Count unique records?
- From: Paul Berkowitz
- Count unique records?
- Prev by Date: Re: Count unique records?
- Next by Date: Re: Count unique records?
- Previous by thread: Re: Count unique records?
- Next by thread: Re: Count unique records?
- Index(es):
Relevant Pages
|
|