Re: SUMPRODUCT - 2 columns (one date one text)

From: Peter (anonymous_at_discussions.microsoft.com)
Date: 08/18/04


Date: Wed, 18 Aug 2004 10:23:10 -0700

Frank,
I am trying to figure out how the "--" (double unary?)
works. Is there a layperson's explanation you can put up
here?

TIA.

>-----Original Message-----
>Hi
>if you also want to count 'abc' as valid value try:
>=SUMPRODUCT(--(MONTH(A1:A96)=8),--(YEAR(A1:A96)=2004),--
(LEFT(B1:B96,3)
>="abc")),
>
>SUMPRODUCT does not support wildcards directly
>
>
>--
>Regards
>Frank Kabel
>Frankfurt, Germany
>
>"Brian" <Brian@discussions.microsoft.com> schrieb im
Newsbeitrag
>news:994CA3AD-8F7E-4FD2-8D05-7C77D0283C7F@microsoft.com...
>> Can anyone help
>>
>> I have two columns and want to count number of times
abc* (any
>charecters
>> after abc) occurs with a particular month
>>
>> Date code
>> 08/01/2004 abc
>> 08/02/2004 abc123
>> 08/02/2004 xyz
>>
>> if I use
>>
>=SUMPRODUCT(--(MONTH(A1:A96)=8),--(YEAR(A1:A96)=2004),--
(B1:B96="abc"))
>, I
>> get the correct answer = 1
>>
>> If I use
>>
>=SUMPRODUCT(--(MONTH(A1:A96)=8),--(YEAR(A1:A96)=2004),--
(B1:B96="abc*")
>) I
>> get incorrect answer = 0
>>
>> now how do I use this formula so that it will count all
codes
>begining with
>> abc (e.g. abc1, abc123 etc.. (there will be lots of
codes begining
>with abc).
>> So how can I use the wildcard * in this formula?
>>
>> Any ideas?
>
>.
>



Relevant Pages

  • Find arguments
    ... When I use Find in code, I generally want a "no-frills" find, so ... works just fine to find "abc" in the values, any part of the values, ... TIA, James ...
    (microsoft.public.excel.programming)
  • const references : confusion
    ... I need explanation of the behavior of the following code. ... class ABC ... ABC frnd_func ... int main ...
    (comp.lang.cpp)
  • Re: alt.coffee.binaries
    ... I've loaded allnews.readfreenews.net and a coule of others, but it's abc ... text only - no piccies. ... TIA ... Craig. ...
    (alt.coffee)
  • Re: alt.coffee.binaries
    ... I've loaded allnews.readfreenews.net and a coule of others, but it's abc ... text only - no piccies. ... TIA ... Craig. ...
    (alt.coffee)
  • subet algo, hash table
    ... A B C AB AC BC ABC). ... the ability to access an individual element in Otime? ... TIA ...
    (comp.lang.java.help)