Results 1 to 4 of 4

If statement missing segment

Threaded View

  1. #1
    Registered User
    Join Date
    01-16-2019
    Location
    Bristol
    MS-Off Ver
    10
    Posts
    2

    If statement missing segment

    Hi

    I have data which looks like;

    1 Case w x y z aa
    2 Case 1 Reason 1 Reason 2 Reason 3 0
    3 Case 1 Reason 1 Reason 2 Reason 3 Reason 4 1
    4 Case 2 Reason 1 0
    5 Case 2 Reason 1 Reason 2 0

    In AA is the following code.

    =if(and(w2=w3,x2=x3,y2=y3,z2=z3),0,if(and(x2=x3,y2=y3,z2=z3),0,if(and(x2=x3,y2=0),0,if(and(y2=y3,z2=0),0,1))))
    In AA5 I want to return 1 as the line relating to case 2 with the most information.

    I know there is a section of code missing but I can't work out where.

    Any help appreciated.
    Last edited by Dan190984; 02-01-2021 at 11:54 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF Statement - Nested - Error saying Missing Parentheses
    By zaimink in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2016, 08:22 PM
  2. missing somethingin this statement
    By i2trader in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2016, 05:57 PM
  3. IF Statement and Vlookup Formula....something small missing!! HELP!
    By Nicole Matthews in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2014, 11:34 AM
  4. [SOLVED] IF statement missing parenthesis in formula
    By Abyrose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2014, 06:24 PM
  5. [SOLVED] What is wrong with my code here? (Missing IF or End Sub statement?)
    By Brookshire in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-23-2013, 01:32 PM
  6. Replies: 3
    Last Post: 11-26-2009, 03:39 PM
  7. If Statement in Function code, what is missing?
    By ChicPea in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2009, 03:33 AM

Tags for this Thread

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