Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 139
Default Sumif with multiple criteria

I have a very simple sumif with mulitple criteria, but I can't get the
correct result.
This is my formula. Shouldn't the "*" indicate the "and" operator?
=SUMIF($B$8:$B$135,($B$8:$B$135=GO143)*($J$8:$J$13 5=$GR$142),$ER$8:$ER$135)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Sumif with multiple criteria

Try:

=SUMPRODUCT(($B$8:$B$135=GO143)*($J$8:$J$135=$GR$1 42),$ER$8:$ER$135)



On Feb 2, 9:27 am, Tina wrote:
I have a very simple sumif with mulitple criteria, but I can't get the
correct result.
This is my formula. Shouldn't the "*" indicate the "and" operator?
=SUMIF($B$8:$B$135,($B$8:$B$135=GO143)*($J$8:$J$13 5=$GR$142),$ER$8:$ER$135)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 139
Default Sumif with multiple criteria

Perfect!

Would you please tell me why sumproduct works? I would never have thought
to use sumproduct because I'm not multiplying anything, and I thought that's
what sumproduct did.

Thanks!

"Lori" wrote:

Try:

=SUMPRODUCT(($B$8:$B$135=GO143)*($J$8:$J$135=$GR$1 42),$ER$8:$ER$135)



On Feb 2, 9:27 am, Tina wrote:
I have a very simple sumif with mulitple criteria, but I can't get the
correct result.
This is my formula. Shouldn't the "*" indicate the "and" operator?
=SUMIF($B$8:$B$135,($B$8:$B$135=GO143)*($J$8:$J$13 5=$GR$142),$ER$8:$ER$135)




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Sumif with multiple criteria

Hi Tina

Sumproduct is producing arrays.
The first term returns True or False, depending upon whether the cells
in the B range that match GO143.
The second term returns True or False depending upon whether the cells
in the J range that match $GR$142.
The third term represents the array of numbers you wish to sum in ER

Multiplying the terms, coerces Trues to 1's and False's to 0's which
sumproduct then calculates.

1 * 1 * 100 = 100
0 * 1 * 100 = 0
1 * 0 * 100 = 0
0 * 0 * 100 = 0

So only the values in ER where the results are True for the 2 tests get
summed.

For a more detailed explanation of how Sumproduct works take a look at
Bob Philips excellent treatise on the subject at
http://xldynamic.com/source/xld.SUMPRODUCT.html


--
Regards

Roger Govier


"Tina" wrote in message
...
Perfect!

Would you please tell me why sumproduct works? I would never have
thought
to use sumproduct because I'm not multiplying anything, and I thought
that's
what sumproduct did.

Thanks!

"Lori" wrote:

Try:

=SUMPRODUCT(($B$8:$B$135=GO143)*($J$8:$J$135=$GR$1 42),$ER$8:$ER$135)



On Feb 2, 9:27 am, Tina wrote:
I have a very simple sumif with mulitple criteria, but I can't get
the
correct result.
This is my formula. Shouldn't the "*" indicate the "and" operator?
=SUMIF($B$8:$B$135,($B$8:$B$135=GO143)*($J$8:$J$13 5=$GR$142),$ER$8:$ER$135)






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 139
Default Sumif with multiple criteria

Ah ha! Thank you. Much appreciated.

"Roger Govier" wrote:

Hi Tina

Sumproduct is producing arrays.
The first term returns True or False, depending upon whether the cells
in the B range that match GO143.
The second term returns True or False depending upon whether the cells
in the J range that match $GR$142.
The third term represents the array of numbers you wish to sum in ER

Multiplying the terms, coerces Trues to 1's and False's to 0's which
sumproduct then calculates.

1 * 1 * 100 = 100
0 * 1 * 100 = 0
1 * 0 * 100 = 0
0 * 0 * 100 = 0

So only the values in ER where the results are True for the 2 tests get
summed.

For a more detailed explanation of how Sumproduct works take a look at
Bob Philips excellent treatise on the subject at
http://xldynamic.com/source/xld.SUMPRODUCT.html


--
Regards

Roger Govier


"Tina" wrote in message
...
Perfect!

Would you please tell me why sumproduct works? I would never have
thought
to use sumproduct because I'm not multiplying anything, and I thought
that's
what sumproduct did.

Thanks!

"Lori" wrote:

Try:

=SUMPRODUCT(($B$8:$B$135=GO143)*($J$8:$J$135=$GR$1 42),$ER$8:$ER$135)



On Feb 2, 9:27 am, Tina wrote:
I have a very simple sumif with mulitple criteria, but I can't get
the
correct result.
This is my formula. Shouldn't the "*" indicate the "and" operator?
=SUMIF($B$8:$B$135,($B$8:$B$135=GO143)*($J$8:$J$13 5=$GR$142),$ER$8:$ER$135)






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumif with multiple criteria Farhad Excel Discussion (Misc queries) 6 December 3rd 06 03:56 AM
SUMIF - multiple criteria in different columns SUMIF Multiple Criteria in diff columns Excel Worksheet Functions 1 September 22nd 06 04:06 PM
SUMIF multiple criteria HLS Excel Discussion (Misc queries) 5 March 24th 06 03:43 PM
SUMIF with multiple criteria stacyjhaskins Excel Worksheet Functions 4 August 29th 05 08:22 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM


All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"