Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    La Jolla,CA
    Posts
    1,055
    Thanks
    11
    Thanked 35 Times in 34 Posts

    Would you use SUMPRODUCT of SUMIF?

    Both give the same results.
    Other than a preference for someone understanding the logic of one versus the other, is there any efficiency reason to use one over the other?

    =SUMPRODUCT($B$3:$B$5000*($E3=$A$3:$A$5000))

    =SUMIF($A$3:$A$5000,$E3,$B$3:$B$5000)

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,202
    Thanks
    14
    Thanked 330 Times in 323 Posts
    I believe SUMIF should be mmore efficient, but I doubt you would see a performance difference at all.

    Steve

  4. #3
    Bronze Lounger
    Join Date
    Mar 2002
    Location
    Newcastle, UK
    Posts
    1,474
    Thanks
    22
    Thanked 168 Times in 164 Posts
    SUMPRODUCT will return a #value if any cells within the range contain text.

    ..so I too prefer SUMIF

    zeddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •