SUMIF question

C

CarlosAntenna

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:E500)

Is this normal behavior or is something wrong?

--Carlos
 
P

Peo Sjoblom

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))
 
C

CarlosAntenna

Thanks Peo, I have never used SUMPRODDUCT before but there is always a first
time. This must be it.

-- Carlos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top