Results 1 to 5 of 5

Thread: Is there a SUM-minus formula instead of SUMPRODUCT?
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Nov 2011
    Posts
    1,144
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Is there a SUM-minus formula instead of SUMPRODUCT?

    Hiya guys

    Im after a formula that essentially does a sumproduct but instead of multiplying i want to take away

    ie im after =sum(B2-A2,B3-A3,B4-A4,B5-A5) etc

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    85,117
    Post Thanks / Like
    Mentioned
    44 Post(s)
    Tagged
    9 Thread(s)

    Default Re: Is there a SUM-minus formula instead of SUMPRODUCT?

    Quote Originally Posted by Siyanna View Post
    Hiya guys

    Im after a formula that essentially does a sumproduct but instead of multiplying i want to take away

    ie im after =sum(B2-A2,B3-A3,B4-A4,B5-A5) etc
    Control+shift+enter, not just enter:

    =SUM(IF(ISNUMBER(A2:A5*B2:B5),B2:B5-A2:A5))
    Assuming too much and qualifying too much are two faces of the same problem.

  3. #3
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,976
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Is there a SUM-minus formula instead of SUMPRODUCT?

    .. or possibly just this?

    =SUM(B2:B5)-SUM(A2:A5)
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  4. #4
    Board Regular
    Join Date
    Mar 2014
    Posts
    2,431
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Is there a SUM-minus formula instead of SUMPRODUCT?

    Although I think Peter's SUM-SUM is the efficient way to do it in this case, there might be some value in learning how to use SUMPRODUCT effectively.

    =SUMPRODUCT(B2:B5 - A2:A5)

  5. #5
    Board Regular
    Join Date
    Nov 2011
    Posts
    1,144
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Is there a SUM-minus formula instead of SUMPRODUCT?

    thank you

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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