+ Reply to Thread
Results 1 to 5 of 5

Nested IF Function or LOOKUP Function

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

    Nested IF Function or LOOKUP Function

    Hi there,

    I posted a similar request last week but now I need to change the formula so need some more help! I was working on this for HOURS last week haha.

    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. I also have a GAMES PLAYED column. This is how the bonus works:

    Average 0-249 yards/game = 0 points per game played
    Average 250-274 yards/game = 4 points per game played
    Average 275-299 yards/game = 6 points per game played
    Average 300-324 yards/game = 8 points per game played
    Average 325+ yards/game = 10 points per game played

    I need the formula in the BONUS cell to pull the information in the AVERAGE YARDS PER GAME cell and determine if it is worth 0, 2, 4, 6, 8, or 10 bonus points and then multiply the bonus points it is worth by the number in the GAMES PLAYED cell. The BONUS cell (where the formula is going to go) is cell D4, the AVERAGE YARDS PER GAME cell is cell D3 and the GAMES PLAYED cell is D2.

    Can someone please help, please!

    THANKS!!

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Nested IF Function or LOOKUP Function

    hello, maybe...


    =LOOKUP(averageyardpergame,{0,250,275,300,325},{0,4,6,8,10})*numberofgamesplayed
    Last edited by vlady; 07-03-2012 at 09:25 PM.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Nested IF Function or LOOKUP Function

    Hi,

    You need a VLookup function with the Range_Lookup = TRUE. See example 2 on http://www.excelfunctions.net/ExcelVlookup.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Nested IF Function or LOOKUP Function

    Quote Originally Posted by vlady View Post
    hello, maybe...


    =LOOKUP(averageyardpergame,{0,250,275,300,325},{0,4,6,8,10})*numberofgamesplayed
    This works! THANKS!

    Hi,

    You need a VLookup function with the Range_Lookup = TRUE. See example 2 on http://www.excelfunctions.net/ExcelVlookup.html
    I'm sure this would work too but the other option was much easier haha. Thanks anyways!

    Have a good day!!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Nested IF Function or LOOKUP Function

    it will work "good only for small table" you could look into the vlookup if this is not applicable anymore.

    thanks.

+ 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