+ Reply to Thread
Results 1 to 2 of 2

Nested IF function returning N/A for some cells

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Canada
    MS-Off Ver
    MS Office 2013 Professional
    Posts
    18

    Nested IF function returning N/A for some cells

    This is the formula:
    =SUM(VLOOKUP([@[Total Pts]],QBpts,2,FALSE)*IF([@GS]>12,0.2,IF(AND([@GS]>0,[@GS]<12.1),0.1,0)),[@[ESPN rnk]]*IF([@GS]>12,0.35,IF(AND([@GS]>0,[@GS]<12.1),0.375,0.4)),VLOOKUP([@[NFL rnk]],QBNFL,2,FALSE)*IF([@GS]>12,0.35,IF(AND([@GS]>0,[@GS]<12.1),0.375,0.4)),VLOOKUP([@FPA],QBFPA,2,FALSE)*IF([@GS]>12,0.1,IF(AND([@GS]>0,[@GS]<12.1),0.15,0.2)))

    To make it simpler, here is the first "number" in the SUM:
    VLOOKUP([@[Total Pts]],QBpts,2,FALSE)*IF([@GS]>12,0.2,IF(AND([@GS]>0,[@GS]<12.1),0.1,0))

    The second part of this formula, the nested IF statements, they are essentially a weighting system based on the number of "GS" (games started). What I am finding with this formula is that, in cases where GS>12, it works out fine and returns a value no problem; but anything that isn't, anything from 0-12, is returning N/A. I have no idea what I could be doing wrong. Any suggestions?

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Nested IF function returning N/A for some cells

    #N/A - in the vlookup can not find the lookup value from lookup range, to alter this error result you may use IFERROR():

    =IFERROR(SUM(VLOOKUP([@[Total Pts]],QBpts,2,FALSE)*IF([@GS]>12,0.2,IF(AND([@GS]>0,[@GS]<12.1),0.1,0)),[@[ESPN rnk]]*IF([@GS]>12,0.35,IF(AND([@GS]>0,[@GS]<12.1),0.375,0.4)),VLOOKUP([@[NFL rnk]],QBNFL,2,FALSE)*IF([@GS]>12,0.35,IF(AND([@GS]>0,[@GS]<12.1),0.375,0.4)),VLOOKUP([@FPA],QBFPA,2,FALSE)*IF([@GS]>12,0.1,IF(AND([@GS]>0,[@GS]<12.1),0.15,0.2))),"")

    YOU CAN USE "" OR 0

+ 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