Closed Thread
Results 1 to 3 of 3

If Statement returns "FALSE"

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    If Statement returns "FALSE"

    Hey guys,

    I understand you get a "FALSE" from your IF statement when the criteria of the IF statement are not met and you did not provide an 'else' option. However, I did provide an 'else' option and still I keep getting "FALSE", instead of the else option which is "FAIL". Any help is greatly appreciated. I have been battling this formula for hours!

    =IF($B5="","",IF('Order form'!$L4="F",IF(AND('Measurements with Shrinkage'!$B4>='Spec Sheet with Tolerences'!B$17,'Measurements with Shrinkage'!$B4<='Spec Sheet with Tolerences'!C$17,'Measurements with Shrinkage'!$E4>='Spec Sheet with Tolerences'!B$20,'Measurements with Shrinkage'!$E4<='Spec Sheet with Tolerences'!C$20,'Measurements with Shrinkage'!$F4>='Spec Sheet with Tolerences'!B$22,'Measurements with Shrinkage'!$F4<='Spec Sheet with Tolerences'!C$22,'Measurements with Shrinkage'!$G4>='Spec Sheet with Tolerences'!B$21,'Measurements with Shrinkage'!$G4<='Spec Sheet with Tolerences'!C$21),IF('Measurements with Shrinkage'!$C4-'Spec Sheet'!B$19>='Measurements with Shrinkage'!$D4-'Spec Sheet'!B$20,IF(AND('Measurements with Shrinkage'!$C4>='Spec Sheet with Tolerences'!B$18,'Measurements with Shrinkage'!$C4<='Spec Sheet with Tolerences'!C$18),"PASS",IF('Measurements with Shrinkage'!$D4-'Spec Sheet'!B$20>'Measurements with Shrinkage'!$C4-'Spec Sheet'!B$19,IF(AND('Measurements with Shrinkage'!$D4>='Spec Sheet with Tolerences'!B$19,'Measurements with Shrinkage'!$D4<='Spec Sheet with Tolerences'!C$19),"PASS","FAIL")))))))

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: If Statement returns "FALSE"

    You don't have anything in the value_if_false for one or more of those IF statements


    --------------------------

    Edit: There are a few, after each of these commas (highlighted in red at the end) there should be an if_false statement:
    =IF($B5="","",IF('Order form'!$L4="F",IF(AND('Measurements with Shrinkage'!$B4>='Spec Sheet with Tolerences'!B$17,'Measurements with Shrinkage'!$B4<='Spec Sheet with Tolerences'!C$17,'Measurements with Shrinkage'!$E4>='Spec Sheet with Tolerences'!B$20,'Measurements with Shrinkage'!$E4<='Spec Sheet with Tolerences'!C$20,'Measurements with Shrinkage'!$F4>='Spec Sheet with Tolerences'!B$22,'Measurements with Shrinkage'!$F4<='Spec Sheet with Tolerences'!C$22,'Measurements with Shrinkage'!$G4>='Spec Sheet with Tolerences'!B$21,'Measurements with Shrinkage'!$G4<='Spec Sheet with Tolerences'!C$21),IF('Measurements with Shrinkage'!$C4-'Spec Sheet'!B$19>='Measurements with Shrinkage'!$D4-'Spec Sheet'!B$20,IF(AND('Measurements with Shrinkage'!$C4>='Spec Sheet with Tolerences'!B$18,'Measurements with Shrinkage'!$C4<='Spec Sheet with Tolerences'!C$18),"PASS",IF('Measurements with Shrinkage'!$D4-'Spec Sheet'!B$20>'Measurements with Shrinkage'!$C4-'Spec Sheet'!B$19,IF(AND('Measurements with Shrinkage'!$D4>='Spec Sheet with Tolerences'!B$19,'Measurements with Shrinkage'!$D4<='Spec Sheet with Tolerences'!C$19),"PASS","FAIL"),)),),),))
    Last edited by Speshul; 07-16-2014 at 05:28 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If Statement returns "FALSE"

    Thread posted in Commercial services, hence closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] if formula returns ":false" instead of "0"
    By pja_14 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-20-2013, 04:09 AM
  2. Using "IF" with date returns an improper "FALSE"
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2008, 10:31 AM
  3. [SOLVED] First part of "IF" function returns false even if true. ??
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-06-2005, 10:05 PM
  4. First part of "IF" function returns false even if true. ??
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 PM
  5. First part of "IF" function returns false even if true. ??
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 09:05 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