+ Reply to Thread
Results 1 to 8 of 8

Adding and Subtracting negative and positive numbers

  1. #1
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    Adding and Subtracting negative and positive numbers

    Having an issue when taking a negative number and minusing a positive number. I assume there is a formula. I have attached a copy of the form. Example... Cas, had a total for the month -$642.55, last week, she was in the positive by 195. the total should be
    (-$642.55) - $195 =( -$447.55). Instead it is adding the two (even thought $195 is a positive number) and totaling to (-$837.55). Need a formula so that when starting with a negative number and subtracting a positive number returns a lower negative number. (as shown in illustration)

    In the illustration, I manually inputed the number. Would love a formula to handle this for me!

    Thanks for any help??
    Attached Files Attached Files
    Last edited by NBVC; 05-06-2011 at 10:15 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding and Subtracting negative and positive numbers

    I don't see what specifically you need in the sheet... is the red cells? Are those the expected results? If so, of what numbers summed?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Adding and Subtracting negative and positive numbers

    Ok. When looking at the attachment look at Cassy for example.
    Cassy
    (h12) -$642.55
    Minus
    (h17) $195
    =(h18) -$447.55

    This is how it should show. Instead it is adding the -$642.55 and $195 for total of -$837.55. I manually inputed (h18) -$447.55.

    The formula in H18 should take H12(negative number) and minus H17(positive number) and return a lower negative number since this last week she was positive $195, this week negative $642.55, so the new number should show -$447.55.

    Hopefully this makes sense. Thanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding and Subtracting negative and positive numbers

    What cell has -$837.55 in it?
    FYI, the formula in H12
    =SUM(H7-H11) can be simply = H7- H11

    H18 does not have a formula in it. If you enter
    = H12 - H17, you get -837.55
    Last edited by ChemistB; 04-28-2011 at 03:50 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding and Subtracting negative and positive numbers

    Not sure what you are doing, if you use this:

    =SUM(H12,H17)

    it give the -447.55

  6. #6
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Adding and Subtracting negative and positive numbers

    In the attachment, I want...

    Row 18 to be = to row 12 minus row 17.
    Row 19 should be = to row 12 minus row 18
    Row 20 Should be = to row 12 minus row 19

    Then I need...

    Row 27 to add rows 16, 17,18, 19 and 20.

    The issue seems to be when I am starting with a negative number and adding a positive number it adds the positive to the negative to increase the negative number. (seeH12 to H18)

    It should subtract the postive to give me a lower negative number. This is what I need a formula for. The basic formula is say h12-h17, however, since h12 is a negative number it add h17 a postive number we get a larger negative number when it should return a lower negative number?

    The illustration shows -837.55 it should be -447.55

    Disregard any other cells as some were manually inputed. If someone can tell me the formula, I can take it from there. Unless someone wants to do it for me?
    Attached Files Attached Files

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding and Subtracting negative and positive numbers

    First you say
    I want...

    Row 18 to be = to row 12 minus row 17.
    Row 19 should be = to row 12 minus row 18
    Row 20 Should be = to row 12 minus row 19
    implying you want to subtract...

    then you say

    The issue seems to be when I am starting with a negative number and adding a positive number
    implying you want to add.

    Subtracting a positive number from a negative number gets you a negative number. Subtracting a negative number from a negative number gets you a negative number or a positive number depending on how large the subtracted negative number is.... it is basic math....remember the number line?

    See here:

    http://www.mathleague.com/help/posandneg/posandneg.htm

    and

    http://math.about.com/od/prealgebra/ht/PostiveNeg.htm

    If you insist on the results you are wanting, then try absoluting (forcing positive) the first number:

    =ABS(E12)-E17 copied across.

  8. #8
    Registered User
    Join Date
    04-19-2011
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Adding and Subtracting negative and positive numbers

    IIt sounds like iut makes sense but, I understand what you are referring to and I guess I did not explain it very well. I believe the absolute forcing positive will work. THank you! This site is awesome!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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