+ Reply to Thread
Results 1 to 5 of 5

Issue with IF statement

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Issue with IF statement

    Hi,

    I need help with the below nested IF statement -

    =IF(OR(OR(YEAR(F5)=2012,YEAR(F5)=2013),YEAR(F5)=2013),IF(OR(15<Z5,AA5<1),0,(N5*IF(AND(Z5<1, AA5>15),15,IF(Z5>=1,15-Z5+1,AA5-1+1)))/(T5)), IF(OR(15<AB5,AC5<1),0,(O5*IF(AND(AB5<1, AC5>15),15,IF(AB5>=1,15-AB5+1,AC5-1+1)))/(U5)), IF(OR(15<AD5,AE5<1),0,(P5*IF(AND(AD5<1, AE5>15),15,IF(AD5>=1,15-AD5+1,AE5-1+1)))/(V5)), IF(OR(15<AF5,AG5<1),0,(Q5*IF(AND(AF5<1, AG5>15),15,IF(AF5>=1,15-AF5+1,AG5-1+1)))/(W5)), IF(OR(15<AH5,AI5<1),0,(R5*IF(AND(AH5<1, AI5>15),15,IF(AH5>=1,15-AH5+1,AI5-1+1)))/(X5)), IF(OR(15<AJ5,AK5<1),0,(S5*IF(AND(AJ5<1, AK5>15),15,IF(AJ5>=1,15-AJ5+1,AK5-1+1)))/(Y5)),0)))))

    I get an error 'too many arguments'

    I tried combining six different IF statements. Can you please help?

    Regards,
    D

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Issue with IF statement

    Hi Denny,

    Welcome to the forum.

    Please share the logic which you wanted to apply here... also if possible, upload a sample workbook. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Issue with IF statement

    I can help with putting in some spaces and linebreaks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have no idea of what's wrong but this looks way too much to be in one cell if you ask me. I would split it up to 7 columns or so. There is most likely a smarter way to do, let's hope that a forum member that is more formula oriented than me picks this up.
    Last edited by Jacc; 10-09-2012 at 06:43 AM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Issue with IF statement

    Quote Originally Posted by dilipandey View Post
    Hi Denny,

    Welcome to the forum.

    Please share the logic which you wanted to apply here... also if possible, upload a sample workbook. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Hi Dilip,

    Thank you.

    I am working on a capacity model and the logic is % involvement for each of the phases.
    This is what I was trying to combine -

    Requirement Phase Formula - This req phase formula is for 1st half of Jan'12.

    =IF(OR(OR(YEAR(F5)=2012,YEAR(F5)=2013),YEAR(F5)=2013),IF(OR(15<Z5,AA5<1),0,(N5*IF(AND(Z5<1, AA5>15),15,IF(Z5>=1,15-Z5+1,AA5-1+1)))/(T5)),0)



    Formuals for other phases are also ready.

    Design Phase - (IF(OR(15<AB5,AC5<1),0,(O5*IF(AND(AB5<1, AC5>15),15,IF(AB5>=1,15-AB5+1,AC5-1+1)))/(U5)),0))

    Construction Phase - IF(OR(15<AD5,AE5<1),0,(P5*IF(AND(AD5<1, AE5>15),15,IF(AD5>=1,15-AD5+1,AE5-1+1)))/(V5)),0)

    Test Phase - IF(OR(15<AF5,AG5<1),0,(Q5*IF(AND(AF5<1, AG5>15),15,IF(AF5>=1,15-AF5+1,AG5-1+1)))/(W5)),0)

    Implementation Phase - IF(OR(15<AH5,AI5<1),0,(R5*IF(AND(AH5<1, AI5>15),15,IF(AH5>=1,15-AH5+1,AI5-1+1)))/(X5)),0)

    Post Implementation Phase - IF(OR(15<AJ5,AK5<1),0,(S5*IF(AND(AJ5<1, AK5>15),15,IF(AJ5>=1,15-AJ5+1,AK5-1+1)))/(Y5)),0)

    I tried to combine it as one formula.

    Regards,
    Denny

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Issue with IF statement

    Thank you

+ 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