Thread: SUMIFS
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bassman62 Bassman62 is offline
external usenet poster
 
Posts: 117
Default SUMIFS

Hello,

SUMPRODUCT multiplies corresponding components in arrays with the same
dimensions, and returns the sum of those products.
In some cases, like yours, where each cell in an array is being compared
with another value, the items may result as TRUE or FALSE. However
SUMPRODUCT cannont multiply these results so by using the double unary
operator "--" you coerce Excel to convert the logical "TRUE or FALSE"
results of your arrarys into numeric 1 or 0 which is required for the
operation.
Try building the formula using the function wizard (fx). By seeing the
resulting arrays it may help you understand what is happening inside the
formula.
Go here to get more information.
http://www.xldynamic.com/source/xld.....html#examples
Hope this helps.

Regards
Dave

"MurrayBarn" wrote in message
...
A B C D
1 01/11/2008 Motor -10,039.24 -1,232.89
2 01/11/2008 Non-Motor -12,414.70 -1,524.61
3 01/12/2008 SASRIA Mo -52.75 -6.48
4 01/12/2008 SASRIA No -712.15 -87.46
5 01/01/2009 Motor 10,039.24 1,232.89
6 01/01/2009 Non-Motor 12,414.70 1,524.61
7 01/01/2009 SASRIA Mo 52.75 6.48

I really want to use the SUMIFS formula to sum columns C and D for all
items
that fall in a specific month like November 2008, December 2008 etc AND
that
correspond to a category per column B like Motor. I really battling with
the
syntax

I have a solution using SUMPRODUCT but it uses double negatives which I
dont
understand.

Thanks