+ Reply to Thread
Results 1 to 3 of 3

Less than zero show zero

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Less than zero show zero

    Hello,
    I am working on an employee bonus sheet. If the amount is greater than zero, than they get a bonus, but if it is less than, they just get zero (not negative).

    However, when I tried to enter a formula for this, I got a circular reference warning b/c the cell I'm referencing in the formula is the cell it is in.

    Also, I want it it to display $0.00 if no text entered and if less than zero.

    There is already a formula in the cell to figure out the amount of the bonus, and I've put it a formula to show $0.00.

    This formula is in H491

    =IF(G491="","$0.00",(G491-8000)/1000*2.2)



    So can I put if (G491-8000)/1000*2.2 is less than zero, show zero. And if no data in G, or if zero or less than zero, show $0.00 ?

    Thank you

    ------
    The replies worked, I've given good reputation and am marking this as solved, thank you so much!
    Last edited by sabrinigreen; 10-05-2011 at 12:53 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Less than zero show zero

    Give this a try:

    Please Login or Register  to view this content.
    Cheers,
    Last edited by ConneXionLost; 10-05-2011 at 12:44 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,001

    Re: Less than zero show zero

    =IF(G491="","$0.00",MAX(0,(G491-8000)/1000*2.2))

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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