+ Reply to Thread
Results 1 to 3 of 3

Summing values if conditions are true

  1. #1
    mike camburn
    Guest

    Summing values if conditions are true

    Hello, I am fairly new to advanced excel functions. I have a question that
    may require multiple steps. I will describe my issue as simply as I can.

    In cell E1, I need to SUM the values in column D if columns A, B, & C all
    meet specific criteria.

    For Example: IF A3=2006, B3=3, & C3=1, THEN D3 should be added to E1.
    If any one of the three criteria is not true then D3 should not get added to
    E1.

    Thanks to everyone who contributes to this site. It has been very helpful.
    -Mike


  2. #2
    KL
    Guest

    Re: Summing values if conditions are true

    [E1] =SUMPRODUCT(--(A2:A100=2006),--(B2:B100=3),--(C2:C100=1),D2:D100)

    Regards,
    KL



    "mike camburn" <mike camburn@discussions.microsoft.com> wrote in message news:03031244-A247-4458-AF11-FCC082F2F347@microsoft.com...
    > Hello, I am fairly new to advanced excel functions. I have a question that
    > may require multiple steps. I will describe my issue as simply as I can.
    >
    > In cell E1, I need to SUM the values in column D if columns A, B, & C all
    > meet specific criteria.
    >
    > For Example: IF A3=2006, B3=3, & C3=1, THEN D3 should be added to E1.
    > If any one of the three criteria is not true then D3 should not get added to
    > E1.
    >
    > Thanks to everyone who contributes to this site. It has been very helpful.
    > -Mike
    >


  3. #3
    Ragdyer
    Guest

    Re: Summing values if conditions are true

    To simplify your criteria choices, how about entering them at the top of
    their respective columns instead of "hard-coding" them in the formula.
    This makes changing them easier then having to revise the formula itself,
    plus it helps with equalizing the data formats, since I'll assume that
    "2006" is a date.

    Try something like this:

    =SUMPRODUCT((TEXT(A3:A100,"yyyy")=TEXT(A1,"yyyy"))*(B3:B100=B1)*(C3:C100=C1)*D3:D100)

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "mike camburn" <mike camburn@discussions.microsoft.com> wrote in message
    news:03031244-A247-4458-AF11-FCC082F2F347@microsoft.com...
    > Hello, I am fairly new to advanced excel functions. I have a question that
    > may require multiple steps. I will describe my issue as simply as I can.
    >
    > In cell E1, I need to SUM the values in column D if columns A, B, & C all
    > meet specific criteria.
    >
    > For Example: IF A3=2006, B3=3, & C3=1, THEN D3 should be added to E1.
    > If any one of the three criteria is not true then D3 should not get added
    > to
    > E1.
    >
    > Thanks to everyone who contributes to this site. It has been very helpful.
    > -Mike
    >



+ 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