+ Reply to Thread
Results 1 to 9 of 9

Need a formula that sums a column but could exclude some cells

  1. #1
    bj
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    try
    =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))

    "Watercolor artist" wrote:

    > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > However, if the value in cell K1="no" then I do not want to include in the
    > sum any value in column F that has in the same row the value "House" in
    > column I.
    >
    > Howard


  2. #2
    Watercolor artist
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    Thanks.

    "Watercolor artist" wrote:

    > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > However, if the value in cell K1="no" then I do not want to include in the
    > sum any value in column F that has in the same row the value "House" in
    > column I.
    >
    > Howard


  3. #3
    Watercolor artist
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    In "sumproduct(--(" what's the purpose of (--?

    Howard

    "bj" wrote:

    > try
    > =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))
    >
    > "Watercolor artist" wrote:
    >
    > > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > > However, if the value in cell K1="no" then I do not want to include in the
    > > sum any value in column F that has in the same row the value "House" in
    > > column I.
    > >
    > > Howard


  4. #4
    Roger Govier
    Guest

    Re: Need a formula that sums a column but could exclude some cells

    Take a look at the following explanation of SUMPRODUCT by Bob Phillips
    http://xldynamic.com/source/xld.SUMPRODUCT.html

    --
    Regards

    Roger Govier


    "Watercolor artist" <[email protected]> wrote in
    message news:[email protected]...
    > In "sumproduct(--(" what's the purpose of (--?
    >
    > Howard
    >
    > "bj" wrote:
    >
    >> try
    >> =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))
    >>
    >> "Watercolor artist" wrote:
    >>
    >> > In column F, from F5..F30, I have a set of dollar amounts that I want
    >> > to sum.
    >> > However, if the value in cell K1="no" then I do not want to include in
    >> > the
    >> > sum any value in column F that has in the same row the value "House" in
    >> > column I.
    >> >
    >> > Howard




  5. #5
    Watercolor artist
    Guest

    Need a formula that sums a column but could exclude some cells

    In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    However, if the value in cell K1="no" then I do not want to include in the
    sum any value in column F that has in the same row the value "House" in
    column I.

    Howard

  6. #6
    bj
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    try
    =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))

    "Watercolor artist" wrote:

    > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > However, if the value in cell K1="no" then I do not want to include in the
    > sum any value in column F that has in the same row the value "House" in
    > column I.
    >
    > Howard


  7. #7
    Watercolor artist
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    Thanks.

    "Watercolor artist" wrote:

    > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > However, if the value in cell K1="no" then I do not want to include in the
    > sum any value in column F that has in the same row the value "House" in
    > column I.
    >
    > Howard


  8. #8
    Watercolor artist
    Guest

    RE: Need a formula that sums a column but could exclude some cells

    In "sumproduct(--(" what's the purpose of (--?

    Howard

    "bj" wrote:

    > try
    > =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))
    >
    > "Watercolor artist" wrote:
    >
    > > In column F, from F5..F30, I have a set of dollar amounts that I want to sum.
    > > However, if the value in cell K1="no" then I do not want to include in the
    > > sum any value in column F that has in the same row the value "House" in
    > > column I.
    > >
    > > Howard


  9. #9
    Roger Govier
    Guest

    Re: Need a formula that sums a column but could exclude some cells

    Take a look at the following explanation of SUMPRODUCT by Bob Phillips
    http://xldynamic.com/source/xld.SUMPRODUCT.html

    --
    Regards

    Roger Govier


    "Watercolor artist" <[email protected]> wrote in
    message news:[email protected]...
    > In "sumproduct(--(" what's the purpose of (--?
    >
    > Howard
    >
    > "bj" wrote:
    >
    >> try
    >> =if(K1="no",sumproduct(--(I5:I30<>"House"),F5:F30),Sum(F5:F30))
    >>
    >> "Watercolor artist" wrote:
    >>
    >> > In column F, from F5..F30, I have a set of dollar amounts that I want
    >> > to sum.
    >> > However, if the value in cell K1="no" then I do not want to include in
    >> > the
    >> > sum any value in column F that has in the same row the value "House" in
    >> > column I.
    >> >
    >> > Howard




+ 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