+ Reply to Thread
Results 1 to 4 of 4

Sumproduct to count

  1. #1
    GregR
    Guest

    Sumproduct to count

    I have the following formula:
    =SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
    where I am trying to count the number of items in Col AE that are true,
    the month in Col C =C1 or Jan in the year 2005 Col B. The expected
    result is 0,but the returned value is 2, the correct count for 2006.
    Help! TIA

    Greg


  2. #2
    Dave Peterson
    Guest

    Re: Sumproduct to count

    I'd apply data|filter|autofilter

    Then filter to show Jan 2005 and Trues.

    I bet you have 2.

    GregR wrote:
    >
    > I have the following formula:
    > =SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
    > where I am trying to count the number of items in Col AE that are true,
    > the month in Col C =C1 or Jan in the year 2005 Col B. The expected
    > result is 0,but the returned value is 2, the correct count for 2006.
    > Help! TIA
    >
    > Greg


    --

    Dave Peterson

  3. #3
    Dave Peterson
    Guest

    Re: Sumproduct to count

    ps watch out for hidden rows!

    GregR wrote:
    >
    > I have the following formula:
    > =SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
    > where I am trying to count the number of items in Col AE that are true,
    > the month in Col C =C1 or Jan in the year 2005 Col B. The expected
    > result is 0,but the returned value is 2, the correct count for 2006.
    > Help! TIA
    >
    > Greg


    --

    Dave Peterson

  4. #4
    GregR
    Guest

    Re: Sumproduct to count

    Dave, thanks. I figured it out. Had a problem with my True/False Col ,
    which was hidden. When I fixed it, the problem went away. Your
    suggestion of "hidden rows" pointed me in the right direction.

    Greg


+ 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