+ Reply to Thread
Results 1 to 3 of 3

Conditional sum

  1. #1
    Ray
    Guest

    Conditional sum

    I would like to sum a column depending the condition of another column as
    below:-

    A B
    ---------
    3 O
    4 O
    2
    1 O
    5
    2 O
    ----------
    Sum up the cells of column A if O exists on the same row of the column B.

    Thanks,

    Ray



  2. #2
    Richard Buttrey
    Guest

    Re: Conditional sum

    On Mon, 5 Sep 2005 22:29:58 +0800, "Ray"
    <[email protected]> wrote:

    >I would like to sum a column depending the condition of another column as
    >below:-
    >
    >A B
    >---------
    >3 O
    >4 O
    >2
    >1 O
    >5
    >2 O
    >----------
    >Sum up the cells of column A if O exists on the same row of the column B.
    >
    >Thanks,
    >
    >Ray


    =sumif(B:B,"O",A:A)

    Rgds

    __
    Richard Buttrey
    Grappenhall, Cheshire, UK
    __________________________

  3. #3
    bj
    Guest

    RE: Conditional sum

    sumif() should work for you

    =sumif(B1:B10,"O",A1:A10)

    "Ray" wrote:

    > I would like to sum a column depending the condition of another column as
    > below:-
    >
    > A B
    > ---------
    > 3 O
    > 4 O
    > 2
    > 1 O
    > 5
    > 2 O
    > ----------
    > Sum up the cells of column A if O exists on the same row of the column B.
    >
    > Thanks,
    >
    > Ray
    >
    >
    >


+ 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