+ Reply to Thread
Results 1 to 4 of 4

IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    6

    IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)

    I have a large Excel 2007 project I am working on in which I need to determine unique values from linked data that may contain no information, unique information, or duplicate information. My formula is behaving very oddly, and causing problems.

    The odd behavior is that, although the logical argument returns a "TRUE" result, the IF statement I am using is calculating and displaying the [value if false] results.

    If I click on a cell where the incorrect value is returned, and use F9 to evaluate sections of the formula at a time, the logical argument behaves correctly. Also, the [value if true] argument, when highlighted and evaluated separately (using F9), generates the correct value. In fact, if I highlight the entire formula and press F9, the correct value is returned! HOWEVER, when I just allow the formula to do it's thing, the incorrect data is displayed...

    I have attached a sample spreadsheet which shows the issue: Example Sheet for Formula Troubleshooting.xlsx

    VBA is NOT an option for this project.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)

    When nesting MIN, it's often necessary to change the formula to an array type.

    Use Ctrl+Shift+Enter to confirm the formula which will put braces around it.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    11-01-2013
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)

    Wow - I knew it had to be something simple. (I was unaware MIN was a CSE formula - that's good to know...) Using CTRL+Shift+Enter took care of it! Thank you very much!

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)

    No problem, glad I could help.

    MIN isn't usually a CSE, but nesting it inside of IF changes that. Same goes with LARGE, SMALL, and MAX.

+ 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. compare two excel sheets using macros and display the result in "true" or "false"
    By gayunana01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 07:21 AM
  2. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  3. Setting values for "TRUE","FALSE" and "#REF!"
    By Hurtige in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2006, 07:31 AM
  4. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  5. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01: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