+ Reply to Thread
Results 1 to 8 of 8

Embedded if statement not returning the catch all if false

Hybrid View

  1. #1
    Registered User
    Join Date
    03-02-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Embedded if statement not returning the catch all if false

    =IF(ISBLANK(A21),"-",IF(AND(Y21="-",Z21="-",AA21="-"),X21,IF(AND(X21="-",Y21="-",Z21="-"),AA21,IF(AND(X21="-",Y21="-",AA21="-"),Z21,IF(AND(X21="-",Z21="-",AA21="-"),Y21,"Custom Security Tool"))))) ***the above in cell AB21

    This formula returns "--" TYPE reveals Excel thinks it is text and when I test in cell AC21-> AB21="--" it returns false. I have no idea what the catch all in the last IF statement is not dubbing it "Custom Security Tool", as I desire it to. Please help.
    Last edited by nschneemann; 03-02-2010 at 01:47 PM. Reason: Incorrect Title

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,162

    Re: Formula Help

    I don't see why

    =AB21="--"

    is returning FALSE, but your main problem is why the formula is returning "--". There is no way to diagnose this without seeing the workbook. Can you attach it?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-02-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Formula Help

    Book2.xlsm

    There are connections in there than feed to automated data from a secure source that will not be able to be transferred. Maybe there is enough there for you to help though. Thanks.

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Formula Help

    nschneemann, welcome to the forum. Please take a moment to read the rules and then revise your title in compliance with rule #1. Thanks.

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Embedded if statement not returning the catch all if false

    I'm confused. It looks like the formula is doing what you tell it to. Could you please tell us in which cell or under which set of circumstances it is not working?

  6. #6
    Registered User
    Join Date
    03-02-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedded if statement not returning the catch all if false

    Item: 635405-10-3 - row 21on my information. In cell AC21 it is returning "--". I am having the "Generate Population" sheet index values from an unformatted output. What other information can I give you to help? Thank you for your time.

  7. #7
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Embedded if statement not returning the catch all if false

    Your first post says AB21 and gives a relatively short formula. AC21 is blank in what you provided, with a very long formula in AC1.

    Assuming it was AB21, based on the formula you posted, I don't see the error. The part of the formula that says IF(AND(X21="-",Z21="-",AA21="-") returns TRUE, which means it returns Y21, which is --. What should it be showing? If you want it to show "Custom Security Tool", could you explain your logic step by step. Right now, unless at least two of the cells between X and AA read something other than -, you get the other cell.

  8. #8
    Registered User
    Join Date
    03-02-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedded if statement not returning the catch all if false

    Reading through your explanation I realized where the error was. I need to qualify what I am looking for earlier on in the string of equations. Thanks for your time, problem solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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