+ Reply to Thread
Results 1 to 4 of 4

Inequality Incorrect?

  1. #1
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Inequality Incorrect?

    In cell A1 I have the formula =""
    In cell A2 I have the formula =(A1>2)
    Cell A2 returns TRUE
    How is this possible?
    Last edited by SDruley; 02-12-2011 at 01:03 PM.
    Turn Data into Information
    Turn Information into Knowledge
    Turn Knowledge into Direction
    Turn Direction into Leadership
    Turn Leadership into Results
    Stephen Druley

    It's not how quickly you think
    But how deeply you think
    The quality of thinking is measured
    by remoteness to conformance
    Stephen Druley

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,696

    Re: Inequality Incorrect?

    Because ="" is not the same as an empty cell. If you delete it, the formula in A2 will return FALSE.

    What are you trying to achieve?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Inequality Incorrect?

    Quote Originally Posted by SDruley
    How is this possible?
    A Formula Null is a 0 Length Text String and Text > Number.

    For a numeric comparison where Nulls/Text values are a possibility you can use N or SUM, eg:

    Please Login or Register  to view this content.
    which will return 0 for the Null/Text value whilst avoiding explicit coercion

  4. #4
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Re: Inequality Incorrect?

    There is so much talent in this forum it is unbelievable.
    Thank you both for your expertise and a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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