+ Reply to Thread
Results 1 to 5 of 5

sumproduct with 0/blank cells

  1. #1
    Matt
    Guest

    sumproduct with 0/blank cells

    I am using sumproduct to count a total number of cases. The formula I have
    been using is:

    =SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))

    I have some cells that have a value of 0, and some are blank. I don't want
    to count the cells that are blank, but I do want the cells with zero counted.

    How would I do this?

    Thanks in advance.

  2. #2
    Biff
    Guest

    Re: sumproduct with 0/blank cells

    Hi!

    Try this:

    =SUMPRODUCT((ISNUMBER(report!$Y$4:$Y$400))*(report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))

    Biff

    "Matt" <[email protected]> wrote in message
    news:[email protected]...
    >I am using sumproduct to count a total number of cases. The formula I have
    > been using is:
    >
    > =SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    >
    > I have some cells that have a value of 0, and some are blank. I don't
    > want
    > to count the cells that are blank, but I do want the cells with zero
    > counted.
    >
    > How would I do this?
    >
    > Thanks in advance.




  3. #3
    Bob Phillips
    Guest

    Re: sumproduct with 0/blank cells

    =SUMPRODUCT(--(report!$Y$4:$Y$400>-60),--(report!$Y$4:$Y$400<60),--(report!$
    Y$4:$Y$400<>""))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Matt" <[email protected]> wrote in message
    news:[email protected]...
    > I am using sumproduct to count a total number of cases. The formula I

    have
    > been using is:
    >
    > =SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    >
    > I have some cells that have a value of 0, and some are blank. I don't

    want
    > to count the cells that are blank, but I do want the cells with zero

    counted.
    >
    > How would I do this?
    >
    > Thanks in advance.




  4. #4
    Matt
    Guest

    Re: sumproduct with 0/blank cells

    Thanks! This worked like I wanted it to.

    I really appreciate it.

    "Biff" wrote:

    > Hi!
    >
    > Try this:
    >
    > =SUMPRODUCT((ISNUMBER(report!$Y$4:$Y$400))*(report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    >
    > Biff
    >
    > "Matt" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am using sumproduct to count a total number of cases. The formula I have
    > > been using is:
    > >
    > > =SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    > >
    > > I have some cells that have a value of 0, and some are blank. I don't
    > > want
    > > to count the cells that are blank, but I do want the cells with zero
    > > counted.
    > >
    > > How would I do this?
    > >
    > > Thanks in advance.

    >
    >
    >


  5. #5
    Biff
    Guest

    Re: sumproduct with 0/blank cells

    You're welcome. Thanks for the feedback!

    Biff

    "Matt" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks! This worked like I wanted it to.
    >
    > I really appreciate it.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> Try this:
    >>
    >> =SUMPRODUCT((ISNUMBER(report!$Y$4:$Y$400))*(report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    >>
    >> Biff
    >>
    >> "Matt" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am using sumproduct to count a total number of cases. The formula I
    >> >have
    >> > been using is:
    >> >
    >> > =SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))
    >> >
    >> > I have some cells that have a value of 0, and some are blank. I don't
    >> > want
    >> > to count the cells that are blank, but I do want the cells with zero
    >> > counted.
    >> >
    >> > How would I do this?
    >> >
    >> > Thanks in advance.

    >>
    >>
    >>




+ 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