+ Reply to Thread
Results 1 to 5 of 5

IF formula help

  1. #1
    Forum Contributor
    Join Date
    03-10-2009
    Location
    chicago illinois
    MS-Off Ver
    Excel 2010
    Posts
    127

    IF formula help

    Ok I have an if formula in my spread sheet currently that figures run hours. if the actual run hours are less than .2 it enters .2, if they are greater they enter the actual time. Is there a way that I can adjust the formula so if run hours equals 0 it will enter 0 and the above can stay the same. Here is a copy of the current formula:

    =IF(D6/($B$11*60)>=0.2,D6/($B$11*60),0.2)

    If it can't be done any suggestions on how to get it accomplished? Thanks in advance.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF formula help

    You can add another IF around the current one...

    =IF(D6/($B$11*60)=0,0,IF(D6/($B$11*60)>=0.2,D6/($B$11*60),0.2))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    03-10-2009
    Location
    chicago illinois
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: IF formula help

    thanks worked like a charm.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF formula help

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: IF formula help

    Or try this:

    =IF(D6>0;MAX(D6/($B$11*60);0,2);0)

    (replace ; with , if needed)
    Last edited by zbor; 04-29-2009 at 02:05 PM.

+ 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