#1   Report Post  
CarlosAntenna
 
Posts: n/a
Default SUMIF question

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   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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   Report Post  
CarlosAntenna
 
Posts: n/a
Default

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
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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 06:27 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 11:07 AM.

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

About Us

"It's about Microsoft Excel"