+ Reply to Thread
Results 1 to 6 of 6

Having trouble with the IF Function.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    Nowhere
    MS-Off Ver
    Excel 2003
    Posts
    2

    Having trouble with the IF Function.

    I'm trying to help my daughter out with her homework but I'm afraid I have no idea what I'm doing, my experience with Excel is fairly limited. Anyone care to help me out?

    The problem is:

    Insert and IF statement in cell F4 that inserts 10% if E4 is greater than 99999 and insert 7% if E4 is greater than 49999 and inserts 5% if E4 is greater than 24999 and inserts 0% if E4 is greater than 0.


    That just looks like gibberish to me. Please help.

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Having trouble with the IF Function.

    Try

    =if(e4>99999,10%,if(e4>49999,7%,if(e4>24999,5%,0)))
    Last edited by Azam Ali; 08-26-2011 at 01:01 AM.
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Having trouble with the IF Function.

    Hello and welcome to the forum,

    If you need a lot of nested IF statements, then I prefer to us LOOKUP instead. In the example you provided the formula would be:

    =LOOKUP(E4,{0,24999,49999,99999},{0,0.05,0.097,0.1})
    And the results would be:
    0.0%	24998
    5.0%	25000
    9.7%	50000
    10.0%	100000
    remember to format as percentage and identify the number of decimal places you want. In this case, one decimal place should suffice.

    Hope this helps.

    Good luck.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    08-26-2011
    Location
    Nowhere
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Having trouble with the IF Function.

    Quote Originally Posted by Azam Ali View Post
    Try

    =if(e4>99999,10%,if(e4>49999,7%,if(e4>24999,5%,0)))
    Thanks a million. Never thought I'd feel like an idiot looking over my daughters homework.

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Having trouble with the IF Function.

    FYI, indicating " nowhere" as location will not help the day you have ^problems involving Regional Settings

  6. #6
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Having trouble with the IF Function.

    welcome

    If your problem is solved, mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

+ 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