+ Reply to Thread
Results 1 to 3 of 3

Numerical error in IF-sentence

  1. #1
    Registered User
    Join Date
    12-15-2005
    Posts
    20

    Numerical error in IF-sentence

    Is it possible to use a numerical error as a term in a logical test in a IF syntax?

    Expressed in words:
    Return 1 if cell A1 contains a numerical error, else return 0
    Or in syntax IF(A1=#Numerical error;1;0)

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by MnO
    Is it possible to use a numerical error as a term in a logical test in a IF syntax?

    Expressed in words:
    Return 1 if cell A1 contains a numerical error, else return 0
    Or in syntax IF(A1=#Numerical error;1;0)
    Hi,
    try

    =IF(ISNUMBER(A1),TRUE,FALSE)

    =IF(ISNUMBER(A1),0,1) for your request

    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704
    Quote Originally Posted by MnO
    Is it possible to use a numerical error as a term in a logical test in a IF syntax?

    Expressed in words:
    Return 1 if cell A1 contains a numerical error, else return 0
    Or in syntax IF(A1=#Numerical error;1;0)
    What do you mean "numerical error"?

    If you want to return 1 if A1 contains any error value

    =ISERROR(A1)+0

    you could also use ISERR to check for all error values other than #N/A, or ERROR.TYPE to check for specific errors

+ 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