+ Reply to Thread
Results 1 to 2 of 2

Difference Between Evaluating 0 and False (or 1 and True)

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Difference Between Evaluating 0 and False (or 1 and True)

    Hi,

    I was attempting to use the IFNA function, but I had it evaluating against a 0 instead of "False", only to find that it doesn't work that way. I found that using "FALSE" instead of the "0" in my code below fixed the formula.

    Please Login or Register  to view this content.
    Can someone explain to me the difference (or point me to an article) between using "0" and "FALSE" or "1" vs "TRUE" in this example?

    Thank you.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Difference Between Evaluating 0 and False (or 1 and True)

    Excel is quite literal about comparing a logical to a number ... a different data type.

    Try putting a double-unary preceding the ISNA like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or adding 0 to the ISNA function
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Either of those (or any math operation) will coerce the TRUE/FALSE output of ISNA to their underlying numeric values 1/0.
    Dave

+ 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. [SOLVED] Evaluating TRUE/FALSE values up to a certain date
    By st87 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-18-2017, 01:56 AM
  2. [SOLVED] TREND - difference between TRUE and FALSE
    By Saturn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-23-2012, 04:04 AM
  3. [SOLVED] if logical test true, then hlookup, if false then difference betwe
    By VictoriaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  4. if logical test true, then hlookup, if false then difference betwe
    By VictoriaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. if logical test true, then hlookup, if false then difference betwe
    By VictoriaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] if logical test true, then hlookup, if false then difference betwe
    By VictoriaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] if logical test true, then hlookup, if false then difference betwe
    By VictoriaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-08-2005, 11: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