+ Reply to Thread
Results 1 to 4 of 4

How to show a calculation only if greater than zero

  1. #1
    Registered User
    Join Date
    01-07-2021
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    11

    How to show a calculation only if greater than zero

    I want to show a formula that calculates say cell A1/25 (i.e. cell A1 divided by 25), but only show a result if A1/25 is a positive number. If it's a negative number I want it to return"0" or "nil".

    Thanks in advance, embarrassingly still Excel-ing like a noob.
    Last edited by Kellykix; 05-19-2022 at 05:04 AM. Reason: solved

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

    Re: How to show a calculation only if greater than zero

    Try it this way:

    =MAX(0,A1/25)

    That will show zero for any negative results.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-07-2021
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    11

    Re: How to show a calculation only if greater than zero

    Perfect. Yes this works! Thanks so much.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How to show a calculation only if greater than zero

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Enter Y If calculation greater than X
    By cableghost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2021, 06:19 PM
  2. [SOLVED] Calculation formula greater than less than
    By AaruJaan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2019, 08:23 AM
  3. [SOLVED] Calculation if greater than 8
    By AaruJaan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2019, 04:14 PM
  4. Only show quantities of three or greater???
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2014, 12:44 PM
  5. [SOLVED] Only show values that are greater than x
    By mikebon111 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2012, 08:57 PM
  6. Replies: 3
    Last Post: 07-11-2012, 11:00 AM
  7. Replies: 2
    Last Post: 01-17-2012, 09:17 AM

Tags for this Thread

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