Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   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 03:38 PM
SUMIFS and OR mohavv Excel Discussion (Misc queries) 4 January 30th 08 04:02 PM
SUMIFS Mark Excel Discussion (Misc queries) 3 November 28th 07 12:09 PM
SUMIFS and OR M.S. Westerbeek Excel Worksheet Functions 6 August 23rd 07 07:24 PM
SumIfs timson Excel Discussion (Misc queries) 3 January 26th 07 07:46 PM


All times are GMT +1. The time now is 06:08 PM.

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"