+ Reply to Thread
Results 1 to 4 of 4

IF Statement with many arguments

  1. #1
    Registered User
    Join Date
    03-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Smile IF Statement with many arguments

    Hi, I have attached a spreadsheet with data, showing the cells that I need to reference to achieve a "Yes" or "NO" result
    Thankyou
    Attached Files Attached Files
    Last edited by lohnro; 02-01-2015 at 02:53 AM.

  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,938

    Re: IF Statement with many arguments

    Based on your sample, this seems to work...
    =IF(AND(A1=1,C1=1,L1=4,OR(M1=1,M1=2),OR(N1=S1,N1=T1),OR(O1=1,O1=2,O1=4),OR(P1=0,P1=1),OR(Q1=1,Q1=2)),"Yes","No")

    It could probably be simplified if I has some idea of what other values might be in those columns.

    For instance, if M will always be positive and always >1, then the OR(M1=1,M1=2) could be reduced to M1<3, etc
    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
    Registered User
    Join Date
    03-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF Statement with many arguments

    Thank you, that is perfect appreciate you completing this for me,and the detail

  4. #4
    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,938

    Re: IF Statement with many arguments

    Happy to help, thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Going around IF statement with too many arguments
    By Amber12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2013, 01:46 PM
  2. Qty of arguments in an IF statement
    By TRICKD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 05:15 AM
  3. IF( statement, 125 arguments
    By Von1981 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2010, 04:11 PM
  4. Problem with IF statement (too many arguments)
    By djarcadian in forum Excel General
    Replies: 3
    Last Post: 03-31-2009, 02:21 PM
  5. [SOLVED] If statement that contains 6+ arguments in excel
    By JimJams in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2006, 07:30 AM

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