+ Reply to Thread
Results 1 to 9 of 9

Nested IF Function Not Working

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Nested IF Function Not Working

    Hi there,

    I am trying to get a nested function to work for me and I have seriously been working on it off-and-on for hours.

    Basically I am setting up a fantasy sports spreadsheet that calculates everything for me. I have an AVERAGE YARDS PER GAME column and a BONUS column which gives the player extra bonus points if they average a certain amount of yards per game. This is how the bonus works:

    Average 0-299 yards/game = 0 points
    Average 300-399 yards/game = 4 points
    Average 400-499 yards/game = 6 points
    Average 500+ yards/game = 8 points

    This is what I have, but it is not working. Can you help!?! Thanks in advance!! NOTE: D4 is the cell where the player's AVERAGE YARDS PER GAME will be listed and of course this formula is going in the cell under the BONUS column.

    =IF(D4>499,8,IF((300<=D4<=399),4,IF((400<=D4<=499),6,0)))

    0-499 just gets me 0 in the cell, but of course for 300-399 I want 4 and for 400-499 I want 6. 500+ DOES give me a value of 8, however.

    THANKS!!!

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

    Re: Nested IF Function Not Working

    TRy:

    =LOOKUP(D4,{0,300,400,500},{0,4,6,8})
    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
    Registered User
    Join Date
    06-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Nested IF Function Not Working

    YOU'RE AWESOME!!! Thanks a bunch!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Nested IF Function Not Working

    I solved this problem with VLookup (see example).

    The yellow cell is the answer.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Nested IF Function Not Working

    Quote Originally Posted by oeldere View Post
    I solved this problem with VLookup (see example).

    The yellow cell is the answer.
    Thanks to you as well !

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Nested IF Function Not Working

    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?
    If you have (other) questions, just ask.

  7. #7
    Registered User
    Join Date
    06-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Nested IF Function Not Working

    Quote Originally Posted by oeldere View Post
    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?
    If you have (other) questions, just ask.
    Thank for letting me know. I didn't know I had to mark it solved. First day on here. This is a really handy forum.

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

    Re: Nested IF Function Not Working

    Quote Originally Posted by oeldere View Post
    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?
    If you have (other) questions, just ask.
    I guess you mean Glad we could help

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Nested IF Function Not Working

    @NBVC
    Please Login or Register  to view this content.
    Of course glad we could help.

    In #5 the OP refers to my anser, so I ansered back.

    Sorry for cousing trouble with my statement.

+ 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