+ Reply to Thread
Results 1 to 7 of 7

Show zero in this VALUE formula instead of negative number

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    47

    Smile Show zero in this VALUE formula instead of negative number

    Good Monring,

    I have the following formula:

    =VALUE(M11)-VALUE(N10)

    it referes to the first cell in this row which is:

    =23-VALUE(C10)

    when a cell hits 23, the rest of the cells show a negative number, instead I would like those cells to show zeros.

    Thank you

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Show zero in this VALUE formula instead of negative number

    How about:
    =MAX(23-VALUE(C10),0)
    Quang PT

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Show zero in this VALUE formula instead of negative number

    Hi Bebo,

    thank you for your help,

    i tried entering that formula and the rest of the cells shows a negative number once over 23.
    Attached Files Attached Files

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Show zero in this VALUE formula instead of negative number

    So your formula is: =I11-VALUE(J10) ?
    If yes, try: =MAX(I11-VALUE(J10),0)
    Copy to the rest cells.

  5. #5
    Registered User
    Join Date
    01-29-2014
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Show zero in this VALUE formula instead of negative number

    Hi Bebo,

    i want to make a correction to me reply, that formula did work in cell C11, but subsequest cells are fomulated to subtract the amounts in cells D10-N10 until they reach 23. When the reach 23 they show a negative number. Instead I will like them to show a zero.

    Cell C11 has the formula:
    =23-VALUE(C10).

    Cell D11 and following cells have the formula:

    =VALUE(C11)-VALUE(D10) Which takes the value of the prior cell and subtracts the cell above it until the number 23 is reached.

    So in cell G11, it takes the value of cell F11 and then subtracts the amount in cell G10.

    I have attache a sample to help with the visual.

    Thank you
    Attached Files Attached Files

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Show zero in this VALUE formula instead of negative number

    Try to understand the MAX function and you can use it yourself.
    If your statement gives negative that you expect 0, just use MAX :
    =MAX(YOUR STATEMENT,0)
    =MAX(VALUE(C11)-VALUE(D10),0)

  7. #7
    Registered User
    Join Date
    01-29-2014
    Location
    san diego
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Show zero in this VALUE formula instead of negative number

    Thank you for your help and quick responses! Your solution works perfectly!

+ 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. Negative number show a dash
    By astole in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2013, 04:14 AM
  2. Date formula if positive show, if negative don't show.
    By Cyberpawz in forum Excel General
    Replies: 8
    Last Post: 03-14-2012, 07:49 AM
  3. Instead of a negative number, I'd like to show zero...
    By Dr. Darrell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-07-2005, 04:25 PM
  4. cell to show ' 0 ' , or nothing at all, if the sum is a negative number
    By rdmdale in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-17-2005, 11:05 AM
  5. [SOLVED] Sum - show negative number?
    By Steve in forum Excel General
    Replies: 27
    Last Post: 07-23-2005, 10:05 PM

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