+ Reply to Thread
Results 1 to 2 of 2

Suming using 2 criteria

Hybrid View

  1. #1
    Hall
    Guest

    Suming using 2 criteria

    Sheet 1 has
    A B
    Bob Y
    Dan
    Pete
    Ted Y
    Mia Y
    ...

    Sheet 2 has
    A B C
    Bob 10 Q
    Dan 15 W
    Pete 8 E
    Ted 12 R
    Mia 22 T
    ...

    I want to sum(sheet2!B1:B100) where (sheet2!C="W") and (sheet1!B = "Y" where
    (sheet2!A = sheet1!A))

    I know it can be done but I can't figure out the formula construct.

    Anyone?



  2. #2
    JE McGimpsey
    Guest

    Re: Suming using 2 criteria

    One way:

    =SUMPRODUCT(--(Sheet1!B1:B100="Y"), --(Sheet2!C1:C100="W"),
    Sheet2!B1:B100)



    In article <uyNN$euYFHA.3620@TK2MSFTNGP09.phx.gbl>,
    "Hall" <hall@garp.org> wrote:

    > Sheet 1 has
    > A B
    > Bob Y
    > Dan
    > Pete
    > Ted Y
    > Mia Y
    > ..
    >
    > Sheet 2 has
    > A B C
    > Bob 10 Q
    > Dan 15 W
    > Pete 8 E
    > Ted 12 R
    > Mia 22 T
    > ..
    >
    > I want to sum(sheet2!B1:B100) where (sheet2!C="W") and (sheet1!B = "Y" where
    > (sheet2!A = sheet1!A))
    >
    > I know it can be done but I can't figure out the formula construct.
    >
    > Anyone?


+ 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