Results 1 to 3 of 3

Thread: Sumif

  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    In D1, I would like to sum the values in column A1:A10 if the words "red", "green", or "blue" appear in column B1:B10, AND, the names "John", "William", or "Mary" appear in C1:C10. Any ideas?
    Thanks in advance...

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Try

    =SUMPRODUCT(A1:A10*((B1:B10="red")+(B1:B10="green" )+(B1:B10="blue"))*((C1:C10="John")+(C1:C10="Willi am")+(C1:C10="Mary")))

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='788244' date='10-Aug-2009 07:19']Try

    =SUMPRODUCT(A1:A10*((B1:B10="red")+(B1:B10="green" )+(B1:B10="blue"))*((C1:C10="John")+(C1:C10="Willi am")+(C1:C10="Mary")))[/quote]

    Thanks Hans.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •