+ Reply to Thread
Results 1 to 3 of 3

Thread: Nested IF statements

  1. #1
    Registered User
    Join Date
    04-01-2010
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    2

    Nested IF statements

    Hi, I'm having trouble with one part of a nested IF statement and I'm somewhat of a novice so that probably explains things, but after 6 hours I'm looking for help. What I currently have is:

    =IF(AND(C25>0,C25>10000),5000*0.7,IF(AND(C25>0,C25<10000),(C25-5000)*.7>0,IF(C25-5000)*.7<0,0,((C25-5000)*.7)))

    Where I seem to have the breakdown is the second nested IF statement where if C25>0 and C25<10000, then I want to calculate C25-5000*.7. However is this answer is negative, then I want the answer to be zero. If the answer to the calculation is positive, then I want the answer to be the number output by the calculation. Make sense? Can somehelp clean this up to make it work? Thanks in advance!

    Kevin
    Last edited by kcasement; 04-01-2010 at 03:00 PM.

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

    Re: Help with nested IF statements

    Maybe?

    =IF(C25>0,IF(C25>10000,5000*0.7,MAX(0,(C25-5000)*0.7)),0)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    04-01-2010
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with nested IF statements

    Quote Originally Posted by NBVC View Post
    Maybe?

    =IF(C25>0,IF(C25>10000,5000*0.7,MAX(0,(C25-5000)*0.7)),0)
    Yes, that did work....and a lot simpler than what I was trying to do! Thanks a lot.

    Kevin

+ 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.2.0