+ Reply to Thread
Results 1 to 4 of 4

How to stop a result going below zero

  1. #1
    Registered User
    Join Date
    08-06-2011
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    25

    How to stop a result going below zero

    Hi,

    If cell a1 has a value of 10, anc cell a2 a value of 20, and I subtract the 20 from 10, how can I return a result of zero instead of minus 10?

    Many Thanks

    Sue

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,422

    Re: How to stop a result going below zero

    Try this:

    =MAX(0,A1-A2)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-06-2011
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: How to stop a result going below zero

    Thanks Pete,

    That did the trick

    Sue

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to stop a result going below zero

    @ suma

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    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