+ Reply to Thread
Results 1 to 4 of 4

SUMIF positive and negative numbers - take double a negative number?

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    6

    SUMIF positive and negative numbers - take double a negative number?

    Hello,

    I would just like to say that so far this forum has been a wealth of information so thank you all.

    I am using SUMIF to add together a range of numbers based upon whether one cell equals the same as another cell. It works, thanks to another post on this forum, but for some reason when a negative number is added into the range (for example -10) it takes off double the amount (in this case -20)

    This is the formula.

    =SUMIF('In-Out'!B5:B1000,"="&C5,'In-Out'!C5:C1000)

    Does anyone have ideas?

    I have tried for ages to get this work correctly. At first it was simply treating the negative numbers as a positive number. Until I then realized that conditional formatting does not really change the value.
    On a side note does anyone know how to force a number to become a negative based upon whether one cell has the value "in" or "out" without using conditional formatting?

    Any help would be appreciated.

    Thank you in advance

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: SUMIF positive and negative numbers - take double a negative number?

    could you post a sample?

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: SUMIF positive and negative numbers - take double a negative number?

    I was going to however the problem seems to have solved itself...I don't know how but it has. lol that's embarrassing.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: SUMIF positive and negative numbers - take double a negative number?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Determine whether number of positive numbers exceeds number of negative numbers
    By HRBP in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-04-2012, 09:49 PM
  2. 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
  3. 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
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. Replies: 2
    Last Post: 11-13-2008, 12:35 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