Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    La Jolla, CA
    Posts
    1,150
    Thanks
    16
    Thanked 39 Times in 38 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. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    I believe SUMIF should be mmore efficient, but I doubt you would see a performance difference at all.

    Steve

  3. #3
    WS Lounge VIP
    Join Date
    Mar 2002
    Location
    Newcastle, UK
    Posts
    1,766
    Thanks
    61
    Thanked 219 Times in 213 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
  •