+ Reply to Thread
Results 1 to 4 of 4

Display Negative Numbers as 0

  1. #1
    Registered User
    Join Date
    10-18-2007
    Posts
    4

    Display Negative Numbers as 0

    I have an inventory sheet set up - the first column is Maximum Quantity, the 2nd column is Quantity Received, the 3rd is Not Yet Received. So I have a simple subtraction formula set up in the 3rd column (A1-B1) to display what we haven't received.

    The issue is that sometimes we receive more items than what our maximum is listed as, so the 3rd column will list our Not Yet Received as a negative number. I'd really like it to display as plain 0 instead of a negative number without having to remove the forumula from the cell.

    Any ideas?
    Last edited by VBA Noob; 10-18-2007 at 01:03 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =MAX(0,A1-B1)
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-18-2007
    Posts
    4
    Thanks so much!!!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Thx for the feedback

    VBA Noob

+ 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