+ Reply to Thread
Results 1 to 4 of 4

SumIf including both positive and negative numbers

  1. #1
    Registered User
    Join Date
    10-24-2019
    Location
    Madison, WI
    MS-Off Ver
    Office 2010
    Posts
    2

    SumIf including both positive and negative numbers

    I have posted a small sample file for your reference and wondering if someone can help me out. I have a little experience in Excel and need help with a formula to see how this can be done.

    In the attached file I have a Summary worksheet with 2 job numbers. What I would like to do is have this worksheet sum the total cost for these projects. I have a SUMIF formula in Row C on Summary page that give me the overall total cost. I would also like to have 2 columns to show me the specific totals of cost and of the credits separately in columns D and E on Summary page.

    Let me know if there is a way to do this.

    Shawn
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: SumIf including both positive and negative numbers

    Shawn

    You could try SUMIFS.

    For the cost: =SUMIFS(Cost!$C$3:$C$14,Cost!$B$3:$B$14,Summary!$B3, Cost!$C$3:$C$14, ">0")

    For the credits: =SUMIFS(Cost!$C$3:$C$14,Cost!$B$3:$B$14,Summary!$B3, Cost!$C$3:$C$14, "<0")
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-24-2019
    Location
    Madison, WI
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: SumIf including both positive and negative numbers

    Thank you!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,649

    Re: SumIf including both positive and negative numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 10
    Last Post: 09-24-2018, 09:26 AM
  2. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  3. [SOLVED] SUMIF formula returning negative value & I need it to be positive
    By dosbirn in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-11-2013, 05:10 PM
  4. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  5. adding positive and negative numbers all as positive
    By tomvh444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2009, 04:08 PM
  6. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  7. [SOLVED] Sumif using dates and positive negative values
    By Eqa in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 05:15 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