Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I have a formula that attempts to use SUMIF to sum a range that includes two
columns. =SUMIF(C3:C500,C3,D3:E500) The result of this formula is the sum of column D only. I had to break it down as follows: =SUMIF(C3:C500,C3,D3:D500)+SUMIF(C3:C500,C3,E3:E50 0) Is this normal behavior or is something wrong? --Carlos |
#2
![]() |
|||
|
|||
![]()
Yes it is normal behaviour, in SUMIF the corresponding sum range needs to be
of the same size, you can use =SUMPRODUCT((C3:C500=C3)*(D3:E500)) -- Regards, Peo Sjoblom "CarlosAntenna" wrote in message ... I have a formula that attempts to use SUMIF to sum a range that includes two columns. =SUMIF(C3:C500,C3,D3:E500) The result of this formula is the sum of column D only. I had to break it down as follows: =SUMIF(C3:C500,C3,D3:D500)+SUMIF(C3:C500,C3,E3:E50 0) Is this normal behavior or is something wrong? --Carlos |
#3
![]() |
|||
|
|||
![]()
Thanks Peo, I have never used SUMPRODDUCT before but there is always a first
time. This must be it. -- Carlos "Peo Sjoblom" wrote in message ... Yes it is normal behaviour, in SUMIF the corresponding sum range needs to be of the same size, you can use =SUMPRODUCT((C3:C500=C3)*(D3:E500)) -- Regards, Peo Sjoblom "CarlosAntenna" wrote in message ... I have a formula that attempts to use SUMIF to sum a range that includes two columns. =SUMIF(C3:C500,C3,D3:E500) The result of this formula is the sum of column D only. I had to break it down as follows: =SUMIF(C3:C500,C3,D3:D500)+SUMIF(C3:C500,C3,E3:E50 0) Is this normal behavior or is something wrong? --Carlos |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use SUMIF to return sums between two values located in cells | Excel Worksheet Functions | |||
An easy macro question and one I believe to be a little more diffi | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions | |||
help with "criterea" in the sumif function | Excel Worksheet Functions | |||
SUM(IF( Array to avoid #NUM! values | Excel Worksheet Functions |