+ Reply to Thread
Results 1 to 7 of 7

Dealing with minus numbers in formulas

  1. #1
    Registered User
    Join Date
    05-27-2006
    Posts
    1

    Question Dealing with minus numbers in formulas

    I'm adding the values from 3 cells using the formula =SUM(C61,C63,C64) . The value in cell C63 is calculated by a formula =SUM(C62*0.4) which can sometimes produce a minus figure. When the figure in C63 is a minus number, I want it to show a 0, so that the minus number is not factored in to the sum of cells C61,C63,C64. Hope that makes sense! Any suggestions gratefully received! [email protected]

  2. #2
    Forum Contributor
    Join Date
    03-23-2006
    Location
    Vancouver
    Posts
    114
    Replace
    =SUM(C61,C63,C64)
    with
    =SUM(C61,C63*(C63>0),C64)
    Last edited by CaptainQuattro; 05-27-2006 at 02:10 PM.

  3. #3
    Ardus Petus
    Guest

    Re: Dealing with minus numbers in formulas

    =SUM(C61,IF(C63<0,O,C63),C64)

    HTH
    --
    AP

    "duubgina" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > I'm adding the values from 3 cells using the formula =SUM(C61,C63,C64) .
    > The value in cell C63 is calculated by a formula =SUM(C62*0.4) which can
    > sometimes produce a minus figure. When the figure in C63 is a minus
    > number, I want it to show a 0, so that the minus number is not factored
    > in to the sum of cells C61,C63,C64. Hope that makes sense! Any
    > suggestions gratefully received! [email protected]
    >
    >
    > --
    > duubgina
    > ------------------------------------------------------------------------
    > duubgina's Profile:
    > http://www.excelforum.com/member.php...o&userid=34867
    > View this thread: http://www.excelforum.com/showthread...hreadid=546187
    >




  4. #4
    Toppers
    Guest

    RE: Dealing with minus numbers in formulas

    Try:

    =IF(C63<0,C61+C64,C61+C63+C64)

    "duubgina" wrote:

    >
    > I'm adding the values from 3 cells using the formula =SUM(C61,C63,C64) .
    > The value in cell C63 is calculated by a formula =SUM(C62*0.4) which can
    > sometimes produce a minus figure. When the figure in C63 is a minus
    > number, I want it to show a 0, so that the minus number is not factored
    > in to the sum of cells C61,C63,C64. Hope that makes sense! Any
    > suggestions gratefully received! [email protected]
    >
    >
    > --
    > duubgina
    > ------------------------------------------------------------------------
    > duubgina's Profile: http://www.excelforum.com/member.php...o&userid=34867
    > View this thread: http://www.excelforum.com/showthread...hreadid=546187
    >
    >


  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    duubgina:

    Maybe this:

    =C61+C64+MAX(C63,0)

    Does that help?

    Regards,
    Ron

  6. #6

    Re: Dealing with minus numbers in formulas

    =SUM(C61,MAX(0,C63),C64) .

    ed


  7. #7
    Bernard Liengme
    Guest

    Re: Dealing with minus numbers in formulas

    In C63 use one of
    (a) =IF(C62<0,0,C62*0.4)
    or (b) =(C62*0.4)*(C62>0)
    For the summation use =C61+C63+C64
    No need to clutter cells with SUM every time you code a simple formula
    best wishes
    --
    Bernard Liengme
    www.stfx.ca/people/bliengme
    remove CAPS in email address


    "duubgina" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm adding the values from 3 cells using the formula =SUM(C61,C63,C64) .
    > The value in cell C63 is calculated by a formula =SUM(C62*0.4) which can
    > sometimes produce a minus figure. When the figure in C63 is a minus
    > number, I want it to show a 0, so that the minus number is not factored
    > in to the sum of cells C61,C63,C64. Hope that makes sense! Any
    > suggestions gratefully received! [email protected]
    >
    >
    > --
    > duubgina
    > ------------------------------------------------------------------------
    > duubgina's Profile:
    > http://www.excelforum.com/member.php...o&userid=34867
    > View this thread: http://www.excelforum.com/showthread...hreadid=546187
    >




+ 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