+ Reply to Thread
Results 1 to 8 of 8

Use multiple criteria with COUNTIF: between dates and not blank

  1. #1
    l.shields
    Guest

    Use multiple criteria with COUNTIF: between dates and not blank

    Using Excel 2003 I need to count rows where the date in column A is in a
    particular month and year and column G is not blank.

  2. #2
    Ardus Petus
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not blank

    =SUMPRODUCT((YEAR(A1:A999)=2006)*(MONTH(A1:A999)=6)*(G1:G999<>""))

    HTH
    --
    AP

    "l.shields" <l.shields@discussions.microsoft.com> a écrit dans le message de
    news: 31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > Using Excel 2003 I need to count rows where the date in column A is in a
    > particular month and year and column G is not blank.




  3. #3
    Bob Phillips
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not blank

    =SUMPRODUCT(--(G2:G20<>""),--(MONTH(A2:A20)=1))

    for January

    Note that SUMPRODUCT doesn't work with complete columns, you have to specify
    a range.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "l.shields" <l.shields@discussions.microsoft.com> wrote in message
    news:31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > Using Excel 2003 I need to count rows where the date in column A is in a
    > particular month and year and column G is not blank.




  4. #4
    Bob Phillips
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not blank

    oops, mis-read it. I see that now seeing Ardus' response.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Bob Phillips" <bob.NGs@somewhere.com> wrote in message
    news:%23eQQr34kGHA.4212@TK2MSFTNGP03.phx.gbl...
    > =SUMPRODUCT(--(G2:G20<>""),--(MONTH(A2:A20)=1))
    >
    > for January
    >
    > Note that SUMPRODUCT doesn't work with complete columns, you have to

    specify
    > a range.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "l.shields" <l.shields@discussions.microsoft.com> wrote in message
    > news:31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > > Using Excel 2003 I need to count rows where the date in column A is in a
    > > particular month and year and column G is not blank.

    >
    >




  5. #5
    Ardus Petus
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not blank

    You're the fastest shooter West of Colorado, Bob!

    Cheers,
    --
    AP

    "Bob Phillips" <bob.NGs@somewhere.com> a écrit dans le message de news:
    uOcfDX5kGHA.3816@TK2MSFTNGP02.phx.gbl...
    > oops, mis-read it. I see that now seeing Ardus' response.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "Bob Phillips" <bob.NGs@somewhere.com> wrote in message
    > news:%23eQQr34kGHA.4212@TK2MSFTNGP03.phx.gbl...
    >> =SUMPRODUCT(--(G2:G20<>""),--(MONTH(A2:A20)=1))
    >>
    >> for January
    >>
    >> Note that SUMPRODUCT doesn't work with complete columns, you have to

    > specify
    >> a range.
    >>
    >> --
    >> HTH
    >>
    >> Bob Phillips
    >>
    >> (replace somewhere in email address with gmail if mailing direct)
    >>
    >> "l.shields" <l.shields@discussions.microsoft.com> wrote in message
    >> news:31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    >> > Using Excel 2003 I need to count rows where the date in column A is in
    >> > a
    >> > particular month and year and column G is not blank.

    >>
    >>

    >
    >




  6. #6
    Bob Phillips
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not blank

    I'm actually East of Colorado!

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Ardus Petus" <ardus.petus@laposte.net> wrote in message
    news:Oi8jEj5kGHA.1936@TK2MSFTNGP04.phx.gbl...
    > You're the fastest shooter West of Colorado, Bob!
    >
    > Cheers,
    > --
    > AP
    >
    > "Bob Phillips" <bob.NGs@somewhere.com> a écrit dans le message de news:
    > uOcfDX5kGHA.3816@TK2MSFTNGP02.phx.gbl...
    > > oops, mis-read it. I see that now seeing Ardus' response.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace somewhere in email address with gmail if mailing direct)
    > >
    > > "Bob Phillips" <bob.NGs@somewhere.com> wrote in message
    > > news:%23eQQr34kGHA.4212@TK2MSFTNGP03.phx.gbl...
    > >> =SUMPRODUCT(--(G2:G20<>""),--(MONTH(A2:A20)=1))
    > >>
    > >> for January
    > >>
    > >> Note that SUMPRODUCT doesn't work with complete columns, you have to

    > > specify
    > >> a range.
    > >>
    > >> --
    > >> HTH
    > >>
    > >> Bob Phillips
    > >>
    > >> (replace somewhere in email address with gmail if mailing direct)
    > >>
    > >> "l.shields" <l.shields@discussions.microsoft.com> wrote in message
    > >> news:31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > >> > Using Excel 2003 I need to count rows where the date in column A is

    in
    > >> > a
    > >> > particular month and year and column G is not blank.
    > >>
    > >>

    > >
    > >

    >
    >




  7. #7
    l.shields
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not bla

    Many thanks guys for the very quick response. Worked perfectly. Sorry it
    took me so long to reply, but I wasn't able to verify my e-mail address.


    "Ardus Petus" wrote:

    > =SUMPRODUCT((YEAR(A1:A999)=2006)*(MONTH(A1:A999)=6)*(G1:G999<>""))
    >
    > HTH
    > --
    > AP
    >
    > "l.shields" <l.shields@discussions.microsoft.com> a écrit dans le message de
    > news: 31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > > Using Excel 2003 I need to count rows where the date in column A is in a
    > > particular month and year and column G is not blank.

    >
    >
    >


  8. #8
    Eliza
    Guest

    Re: Use multiple criteria with COUNTIF: between dates and not bla

    Hello,

    I have a similiar problem but I need to count the number of counts in EVERY
    bin of a graph seperately. i.e. How many have an (x,y) of (0,0) (0,1)(1,0)
    and so on. For the numbers I am talking about I need to do this several
    thousand times and copying the formula below doesn't work because it changes
    the column it's looking at every time copy to a new cell. Is there another
    way that can be easily copied?

    Thanks,

    Eliza

    "Ardus Petus" wrote:

    > =SUMPRODUCT((YEAR(A1:A999)=2006)*(MONTH(A1:A999)=6)*(G1:G999<>""))
    >
    > HTH
    > --
    > AP
    >
    > "l.shields" <l.shields@discussions.microsoft.com> a écrit dans le message de
    > news: 31C32C19-9C42-4F23-AEBE-93676CAB7128@microsoft.com...
    > > Using Excel 2003 I need to count rows where the date in column A is in a
    > > particular month and year and column G is not blank.

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1