+ Reply to Thread
Results 1 to 6 of 6

SUM if difference is positive / negative

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    SUM if difference is positive / negative

    Hi,

    I have a list of projects and their income per month, as attached. I would like a formula that shows the sum of values where the figure has increased from column K to column L (red cells), and also where they have decreased (yellow cells).

    Does anyone have any advice?

    Thanks
    rich
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SUM if difference is positive / negative

    =SUMPRODUCT(($H$4:$H$71>$G$4:$G$71)*$H$4:$H$71)
    and
    =SUMPRODUCT(($H$4:$H$71<$G$4:$G$71)*$H$4:$H$71)
    oughta do it
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: SUM if difference is positive / negative

    Thank for the reply. I am trying to show the difference though, which I can see is not what my original question stated, so apologies for that.

    Can I adjust this formula to give the difference?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SUM if difference is positive / negative

    sure
    =SUMPRODUCT(($H$4:$H$71>$G$4:$G$71)*($H$4:$H$71-$G$4:$G$71))
    and then use < for the other one :-)

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: SUM if difference is positive / negative

    That's perfect, thank you very much.

    You've helped me take a substantial chunk out of a process and speed the whole thing up, which is the aim of the game!

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SUM if difference is positive / negative

    you're welcome :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Number difference involving ranges with a mix of positive and negative values
    By coasterman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 02:34 PM
  2. Formula to calculate difference between a negative and positive number.
    By zumwaj01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 02:13 PM
  3. Replies: 4
    Last Post: 09-12-2012, 10:31 PM
  4. [SOLVED] how to calculate difference in two columns either positive or negative ?
    By spandan21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2012, 10:40 AM
  5. Replies: 4
    Last Post: 06-09-2010, 09:31 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1