Results 1 to 7 of 7

Trouble with nested if/and statements

Threaded View

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    37

    Trouble with nested if/and statements

    Hello! Hopefully my problem has an easy solution. I have an If statement that tests for multiple conditions, and it either always returns true, or alwasy returns false. I think this is because I'm not listing my conditions in the right order.

    The setup: I have 3 columns involved in the formula, and a box on another sheet controlled by a checkbox.
    The columns are Cert?, Cert #, and Price. The check box is for whether or not a cert is needed (since not everything has a cert #).

    The formula goes in the Cert? column

    My conditions:
    If the Price column (Z3) is blank, then blank
    If the Price column is not blank, then test the checkbox ("Sheet2"$B$3):
    If the checkbox is FALSE, then "Ok" (because I will use all selections if a cert is not needed)
    If the checkbox is TRUE, then test the Cert # column (W3)
    If the Cert # column is blank, then blank
    If the Cert # column has a number, then "Ok" (because if a cert is needed, I am only interested in the selections that have a cert #).

    I have tried the following formulas with no luck:

    =IF(Z3="","",IF('Sheet2'!$B$3=FALSE,"Ok",IF(W3>0,"ok",FALSE)))

    =IF(Z3="","",IF(AND('Sheet2'!$B$3="Ok",W3>0),"Ok",IF('Sheet2'!$B$3=FALSE,"Ok",FALSE)))

    Any help would be very much appreciated!
    Last edited by NamiSama; 05-16-2014 at 03:47 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. questions with if statements and nested if statements
    By Pat Excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-03-2013, 01:41 PM
  2. [SOLVED] Having trouble doing what I want with IF statements.
    By poisontoast in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2012, 03:38 AM
  3. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  4. Nested If statements / logic statements
    By Brainless_09 in forum Excel General
    Replies: 3
    Last Post: 06-17-2009, 02:59 PM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 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