+ Reply to Thread
Results 1 to 4 of 4

#N/A in function IF return to 1

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    #N/A in function IF return to 1

    Hi all,

    How to get #N/A in IF function to return to 1?

    This is the formula:

    =IF(A1=#N/A,1,2)

    The result always return to #N/A. Use text but same result.

    I dont understand this

    Is there something missing here?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: #N/A in function IF return to 1

    Use

    =IF(ISNA(A1),1,2)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: #N/A in function IF return to 1

    Thanks. It works.

  4. #4
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: #N/A in function IF return to 1

    or else can use =--ISNA(a1)

+ 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. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  2. Return zero if UDF-function return error
    By mkvassh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2010, 08:56 AM
  3. IF function does not return blank in function cell
    By superdow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2009, 05:11 PM
  4. INTRATE function-what interest rate does this function return?
    By gfoster07k in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2005, 03:05 PM
  5. [SOLVED] Function to return value from each tab
    By Steven Leuck in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2005, 01:06 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