Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Are SUMIFS and SUMPRODUCT the same?

Not familiar with SUMIFS in 2007. Are SUMIFS and SUMPRODUCT the same?

If not what is the difference? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
rub rub is offline
external usenet poster
 
Posts: 21
Default Are SUMIFS and SUMPRODUCT the same?

On Dec 7, 6:52*pm, wx4usa wrote:
Not familiar with SUMIFS in 2007. Are SUMIFS and SUMPRODUCT the same?

If not what is the difference? *Thanks


SUMPRODUCT would add the product of 2 rows or columns
sumproduct(a1:a2,b1:b2)

5 4 =20
2 3=6
total 26

SUMIF would add those numbers in a row that met a criteria

1000
2000
2500
3000
sumif(a1:a4,"2000")=5500
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Are SUMIFS and SUMPRODUCT the same?

No, they are not the same.

With SUMIFS you can't "manipulate" arrays like you can in SUMPRODUCT.

This is a very basic example but it demonstrates the difference.

1/21/2008...X...10
5/27/2008...Y...15

If you wanted to get the sum for the month of January and "X"...

=SUMPRODUCT(--(MONTH(A1:A2)=1),--(B1:B2="X"),C1:C2)

We can "manipulate" the array by testing for the month number using
SUMPRODUCT. You can't "manipulate" an array using SUMIFS.

SUMIFS handles only "constant" comparisons just like SUMIF.

Jan...X...10
May.X...15

=SUMIFS(C1:C2,A1:A2,"Jan",B1:B2,"X")


--
Biff
Microsoft Excel MVP


"wx4usa" wrote in message
...
Not familiar with SUMIFS in 2007. Are SUMIFS and SUMPRODUCT the same?

If not what is the difference? Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Are SUMIFS and SUMPRODUCT the same?

No, they are very different in the MS concept.

SUMIFS allows the summation of a range dependent upon multiple conditional
tests on ranges.

SUMPRODUCT multiples tow or more arrays and sums the results.

Of course, SUMPRODUCT has been (ab)used by spreadsheet developers to
incorporate conditional tests (something MS seem largely oblivious to), in a
manner similar to the old familiar SUMIF, but even more similar to the new
Excel 2007 COUNTIFS and SUMIFS. But COUNTIFS and SUMIFS does not supersede
SUMPRODUCT because SUMPRODUCT is so much more versatile than COUNTIFS and
SUMIFS (and thereby than COUNTIF and SUMIF), it allows the inclusion of
extra functions to be acted upon the ranges being tested or counted or
summed. Here is a relatively complex example which calculates how many dates
in a range have a week number of 20

=SUMPRODUCT(--(1+INT(($A$2:$A$200-(DATE(YEAR($A$2:$A$200),1,2)
-WEEKDAY(DATE(YEAR($A$2:$A$200),1,1))))/7)=20),B$2:B$200)

this is not possible with SUMIF, and so cannot be done with SUMIFS, but as
you see can be done with SUMPRODUCT.

Of course, these modified conditions could be added to separate columns and
COUNTIFS and SUMIFS act upon these columns, which might actually be more
efficient, but that is another question.

--
__________________________________
HTH

Bob

"wx4usa" wrote in message
...
Not familiar with SUMIFS in 2007. Are SUMIFS and SUMPRODUCT the same?

If not what is the difference? Thanks



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
SUMIFS Steen Excel Worksheet Functions 5 November 2nd 08 04:38 PM
SUMIFS and OR mohavv Excel Discussion (Misc queries) 4 January 30th 08 05:02 PM
SUMIFS Mark Excel Discussion (Misc queries) 3 November 28th 07 01:09 PM
SUMIFS and OR M.S. Westerbeek Excel Worksheet Functions 6 August 23rd 07 08:24 PM
SumIfs timson Excel Discussion (Misc queries) 3 January 26th 07 08:46 PM


All times are GMT +1. The time now is 04:55 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"