+ Reply to Thread
Results 1 to 4 of 4

Function

  1. #1
    Javster095
    Guest

    Function

    If my result is a negative number, how can I setup the function to display a
    zero as suppose to a negative number. Example, if 2- 3= -1, but I would
    rather have my cell to display a zero as suppose to a negative number?

    Thanks.


  2. #2
    Roger Govier
    Guest

    Re: Function

    Hi

    Something like
    =IF(A1-B1<0,0,A1-B1)
    or
    =MAX(0,A1-B1)

    Regards

    Roger Govier


    Javster095 wrote:
    > If my result is a negative number, how can I setup the function to display a
    > zero as suppose to a negative number. Example, if 2- 3= -1, but I would
    > rather have my cell to display a zero as suppose to a negative number?
    >
    > Thanks.
    >


  3. #3
    Elkar
    Guest

    RE: Function

    =MAX(2-3,0)

    Replace 2-3 with your original function.


    "Javster095" wrote:

    > If my result is a negative number, how can I setup the function to display a
    > zero as suppose to a negative number. Example, if 2- 3= -1, but I would
    > rather have my cell to display a zero as suppose to a negative number?
    >
    > Thanks.
    >


  4. #4
    Bob Umlas
    Guest

    Re: Function

    to DISPLAY 0 (but calc as -1), use Format/Cells, select Custom, and enter:
    General;"0"
    To CALCULATE as 0, change the formula to be =MAX(0,yourcurrentformula)
    "Javster095" <Javster095@discussions.microsoft.com> wrote in message
    news:93E1E1F6-AE9C-4656-8A19-348D6BB96652@microsoft.com...
    > If my result is a negative number, how can I setup the function to display

    a
    > zero as suppose to a negative number. Example, if 2- 3= -1, but I would
    > rather have my cell to display a zero as suppose to a negative number?
    >
    > Thanks.
    >




+ 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