+ Reply to Thread
Results 1 to 5 of 5

Nesting 'Countif' into 'If' formula

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    29

    Nesting 'Countif' into 'If' formula

    I want to indicate overall status (No,N/A,Yes) based upon data in a number of cells. I have five questions(rows) that have an answer of No, N/A or Yes. Based upon the number of No's, N/As or Yes's. This is the formula I am having trouble with:

    In cell $O$8......=IF(COUNTIF($O$10:$O$41,"No")>=1,"No",COUNTIF($O$10:$O$41,"N/A)=5,"N/A","Yes")

    I need cell $O$8 to show No, N/A or Yes based upon the criteria.

    When I run this I get a #NAME error and it underlines the second "No".

    I don't have much hair as it is and am quickly removing what is left on my head!!

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Nesting 'Countif' into 'If' formula

    Try

    =IF(COUNTIF($O$10:$O$41,"No")>=1,"No",IF(COUNTIF($O$10:$O$41,"N/A")=5,"N/A","Yes"))

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Nesting 'Countif' into 'If' formula

    Maybe this...

    =IF(COUNTIF($O$10:$O$41,"No"),"No",IF(COUNTIF($O$10:$O$41,"N/A")=5,"N/A","Yes"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    10-10-2013
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Nesting 'Countif' into 'If' formula

    Thank you for the quick replies! I am always amazed at the knowledge gained from these forums! I will try these suggestions and let you know how they work.

  5. #5
    Registered User
    Join Date
    10-10-2013
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Nesting 'Countif' into 'If' formula

    I tried the first one and it appears to work! I did notice that my example had a few 'syntax' errors that I should have caught before I submitted the thread. I was using the original example from the MS Help file and could not get it to work with multiple arguments. I would never have thought to add another "IF" classifier within the formula without the help of this forum. Kudo's to all of you for your help!!

+ 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: 02-26-2015, 06:10 AM
  2. nesting Countif And with dates
    By nsween10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2014, 06:37 AM
  3. Nesting IF(COUNTIF)
    By KRISHLAL in forum Excel General
    Replies: 5
    Last Post: 09-27-2011, 04:10 PM
  4. Nesting IF / COUNTIF STATEMENTS
    By MARKSTRO in forum Excel General
    Replies: 2
    Last Post: 09-01-2011, 05:49 PM
  5. Nesting if and countif
    By saurya_s in forum Excel General
    Replies: 1
    Last Post: 10-31-2008, 06:28 PM
  6. Nesting countif?
    By cheesysocks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2008, 06:55 AM
  7. nesting with countif
    By Ross in forum Excel General
    Replies: 1
    Last Post: 09-13-2005, 09:05 PM

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