Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    La Jolla, CA
    Posts
    1,210
    Thanks
    17
    Thanked 45 Times in 44 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
    Newcazzle, UK
    Posts
    2,109
    Thanks
    92
    Thanked 310 Times in 299 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
  •