+ Reply to Thread
Results 1 to 3 of 3

Negative numbers

  1. #1
    Registered User
    Join Date
    04-13-2006
    Posts
    6

    Negative numbers

    This is my second post. I hope to explain myself better, so I can find a solution.

    A B

    10 Declining difference
    4 6 =A1-A2
    8 -2 =(B2-A3)

    I want to know the remaining positive number which is 4, not -2
    If I begin with 10 and keep subtracting numbers, I want to end up with a non-negative number.
    Subtracting 10-4=6
    Subtracting 6-8=-2, bit what I want is the number 4, the "remaining" amount.

    Thanks!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475
    Quote Originally Posted by krismtx
    This is my second post. I hope to explain myself better, so I can find a solution.

    A B

    10 Declining difference
    4 6 =A1-A2
    8 -2 =(B2-A3)

    I want to know the remaining positive number which is 4, not -2
    If I begin with 10 and keep subtracting numbers, I want to end up with a non-negative number.
    Subtracting 10-4=6
    Subtracting 6-8=-2, bit what I want is the number 4, the "remaining" amount.

    Thanks!
    huh!!
    maybe you mean this
    =$A$1-A2
    =$A$1-B2

  3. #3
    Fred Smith
    Guest

    Re: Negative numbers

    If I understand correctly, you would put in B3:

    =if(b2<a3,a2,b2-a3)

    This will give you 4 as your answer (from cell A2), although I don't understand
    why 6 wouldn't be the "remaining" amount, not 4.

    --
    Regards,
    Fred


    "krismtx" <[email protected]> wrote in
    message news:[email protected]...
    >
    > This is my second post. I hope to explain myself better, so I can find a
    > solution.
    >
    > A B
    >
    > 10 Declining difference
    > 4 6 =A1-A2
    > 8 -2 =(B2-A3)
    >
    > I want to know the remaining positive number which is 4, not -2
    > If I begin with 10 and keep subtracting numbers, I want to end up with
    > a non-negative number.
    > Subtracting 10-4=6
    > Subtracting 6-8=-2, bit what I want is the number 4, the "remaining"
    > amount.
    >
    > Thanks!
    >
    >
    > --
    > krismtx
    > ------------------------------------------------------------------------
    > krismtx's Profile:
    > http://www.excelforum.com/member.php...o&userid=33462
    > View this thread: http://www.excelforum.com/showthread...hreadid=542334
    >




+ 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