+ Reply to Thread
Results 1 to 4 of 4

IF Statement with cells containing N/A

  1. #1
    Registered User
    Join Date
    02-14-2018
    Location
    England
    MS-Off Ver
    2010
    Posts
    4

    IF Statement with cells containing N/A

    I'm trying to use an IF Statement in my worksheet.

    The rows contain numerous dates and the odd cell contains #N/A.

    The formula I'm currently using is;

    =IF(ISNA(I6:X6),"Incomplete","Complete")

    What I want to happen is for the cell to return either Incomplete if the cell within the range contains #N/A or Complete is it doesn't.

    Whilst this works when referencing one cell it doesn't want to work over a range of cells.

    Any help would be appreciated.

    Thanks.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Statement with cells containing N/A

    how about =IF(COUNTIF(I6:X6,"#N/A"),"incomplete","complete")

    EDIT: could also work w/o quotes =IF(COUNTIF(I6:X6,#N/A),"incomplete","complete")
    Last edited by Sam Capricci; 02-14-2018 at 08:05 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    02-14-2018
    Location
    England
    MS-Off Ver
    2010
    Posts
    4

    Re: IF Statement with cells containing N/A

    Awesome, that worked right away.

    Thank you for the quick response, I'd been racking my brain for a while trying different combinations but didn't think to use a COUNTIF.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Statement with cells containing N/A

    Great! Glad it worked for you, sometimes it just takes a different set of eyes to see something you've missed, happened to me many times.
    Don't forget to mark your post as solved using the thread tools dropdown at the top of this post.
    And thank you for the reputation!
    Last edited by Sam Capricci; 02-14-2018 at 08:18 AM.

+ 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] If Statement for two cells
    By rhett7660 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2017, 05:30 PM
  2. [SOLVED] How to use If statement for many cells
    By forseti7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2015, 08:53 AM
  3. [SOLVED] Nested If statement, checking multiple cells for Blank cells
    By JLeague in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-30-2015, 11:18 AM
  4. If statement with different cells
    By kuzna26 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2014, 05:34 AM
  5. [SOLVED] If two cells are blank, if statement to show third statement is blank
    By juliewoo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2013, 12:28 PM
  6. [SOLVED] Need help with IF statement using different cells
    By JackBauer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2012, 11:06 AM
  7. [SOLVED] If AND statement for cells with #N/A
    By Jaymann in forum Excel General
    Replies: 2
    Last Post: 08-14-2012, 09:08 AM

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