Clif McIrvin explained on 6/29/2011 :
> "GS" <(E-Mail Removed)> wrote in message news:iug73j$hnb$(E-Mail Removed)...
>> Clif McIrvin wrote on 6/29/2011 :
>>> "GS" <(E-Mail Removed)> wrote in message
>>> news:iufv7v$of1$(E-Mail Removed)...
>>>> Tim Childs wrote :
> [ ]
>>>>>
>>>>> Can someone help show me where I can find that Countif will not work
>>>>> with
>>>>> declared arrays?
>>>>>
>>>>> Many thanks
>>>>>
>>>>> Tim
>>>>
> [ ]
>> That is what the online help says! Not sure why anyone would expect
>> something other than that!
>>
>
> Garry, that sent me back to the on-board help files, where I realized that I
> didn't read them carefully earlier.
>
> Tim, the answer to your question is, in fact, in the help text (internet
> search not needed):
>
> Both COUNT and COUNTA specify the argument data type as *Variant*, while
> COUNTIF specifies the argument data type as *Range*.
Clif, my focus was more on what arguments were required. While both
COUNT/COUNTA require variant data types (thus allowing arrays of
values), they both explicitly state that they will accept a range OR an
array.
COUNTIF explicitly states that it will accept a range and criteria.
Since online (built-in) help provides descriptive info as to what each
function 'supports' args-wise, I found Tim's Q odd in that he wanted
someone to show him where it states COUNTIF doesn't accept an array. -
Not trying to be a smartass or throw digs at anyone but the help NOT
stating that COUNTIF accepts arrays should have been
self-illuminating.<g>
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc