+ Reply to Thread
Results 1 to 7 of 7

Why and If statement works in Excel 2007 but fails to work in Excel 2010?

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    2

    Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    Hello Excel friends apologize for the non formal introduction I do plan to stop by and introduce myself. Currently I am having an issue with a formula that was working for me in Excel 2007 but when I got home today the same formula in Excel 2010 came back with an error message "You entered to many arguments for this function". I am trying to populate a single cell with 3 different variable with the following forumula:

    =if(H17>=B$11,"Admit","Reject",if(F17="Yes","Early Admission"))

    I also tried referring the F17 cell first but same effect with to many arguments.

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    Hi and welcome to the forum

    I dont see how that would work in 2007 either, you have 4 arguments in the 1st and only 2 in the 2nd, an if statement only takes 3...

    =if(H17>=B$11,.........."Admit",.........."Reject",..........if(F17="Yes",.........."Early Admission"..........?????????????))

    =if(criteria-to-test,..........what-to-do-if-test=TRUE,..........what-to-do-if-test=FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    That formula will not work in Excelx as written.
    The "Reject" segment is the false condition and the If(F17.. clause does not belong.

    You need something that looks like:

    Please Login or Register  to view this content.
    Notice that in the formula you posted, that the second If has no false condition.
    Ben Van Johnson

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    You have "Reject" out of place.

    Maybe this is what you're after:

    =IF(H17>=B$11,"Admit",IF(F17="Yes","Early Admission","Reject"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    if formula only has true or false

    i re-arranged to what i think you are trying to do
    if H17 > b11 then Admit otherwise if F17 = yes then reject otherwise early admission

    Please Login or Register  to view this content.
    Last edited by humdingaling; 05-02-2013 at 09:02 PM. Reason: way too slow on this one, 4 posts by the time i completed

  6. #6
    Registered User
    Join Date
    05-02-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    2

    Talking Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    Thanks guys you are absolutely right I rearranged it the wrong way before where reject fell in as my false with Early Admit. Thanks everyone for helping me get this straight.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Why and If statement works in Excel 2007 but fails to work in Excel 2010?

    You're welcome. We appreciate the feedback!

+ 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