+ Reply to Thread
Results 1 to 8 of 8

If Than formula returning 0 or calculates value

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Portland, Oregon
    MS-Off Ver
    Office 365 ProPlus
    Posts
    20

    If Than formula returning 0 or calculates value

    Hi all,

    I am attempting to return a value to a cell with labor hours that cannot be less than .8, but can be 0 if 0 is entered.

    For instance..

    if a person enters a quantity of 0 in N22, P22 will say 0,
    but if N22 is entered as a real number (greater than 0), it will multiply the quantity (N22) times the hourly rate (E22).
    The returned value cannot be below .8 hours unless entered as 0.

    Here is my sorry attempt to make it work.
    =IF(E22*N22<.8,.8, IF(E22*N22=0,""),E22*N22)
    But it doesn't.

    Your help is most appreciated !

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: If Than formula returning 0 or calculates value

    Try this in P22
    Please Login or Register  to view this content.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Than formula returning 0 or calculates value

    Try this...

    =IF(N22=0,0,MAX(.8,E22*N22))

  4. #4
    Registered User
    Join Date
    08-19-2015
    Location
    Portland, Oregon
    MS-Off Ver
    Office 365 ProPlus
    Posts
    20

    Re: If Than formula returning 0 or calculates value

    Well... That solves the "0" issue but not the .8 minimum issue.
    I need to see a minimum value of .8 in P22 unless a 0 is entered.
    As it is, if we have .2 hours (E22) * a quantity of 1 (N22), it shows .2 which is below the minimum.

  5. #5
    Registered User
    Join Date
    08-19-2015
    Location
    Portland, Oregon
    MS-Off Ver
    Office 365 ProPlus
    Posts
    20

    Re: If Than formula returning 0 or calculates value

    Works! Thank you.
    I was unaware of the MAX function.
    Very cool.

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: If Than formula returning 0 or calculates value

    My bad, I forgot all about the .8 issue.

  7. #7
    Registered User
    Join Date
    08-19-2015
    Location
    Portland, Oregon
    MS-Off Ver
    Office 365 ProPlus
    Posts
    20

    Re: If Than formula returning 0 or calculates value

    No worries.

  8. #8
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: If Than formula returning 0 or calculates value

    Glad it works for you... thank you for the rep!

+ 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. Formula that calculates how many rows are in use
    By chrisdue in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2013, 07:24 AM
  2. [SOLVED] Formula That Calculates Conditionally
    By vinceancona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 11:16 AM
  3. Need help in a formula that calculates the local income tax
    By Mughrabi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2012, 03:27 PM
  4. Replies: 2
    Last Post: 05-11-2012, 01:03 PM
  5. a formula that calculates cell positions?
    By huy in forum Excel General
    Replies: 0
    Last Post: 07-14-2010, 06:50 PM
  6. Changing the Answer formula calculates
    By johnlyons in forum Excel General
    Replies: 6
    Last Post: 01-08-2009, 06:43 PM
  7. Automatically calculates cell as formula
    By udaman55 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2007, 09:03 AM
  8. [SOLVED] formula that calculates upon saving only
    By hw in forum Excel General
    Replies: 2
    Last Post: 05-26-2005, 05:15 PM

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