+ Reply to Thread
Results 1 to 3 of 3

COUNTIF from an Array or multiple Ranges

  1. #1
    Registered User
    Join Date
    09-25-2017
    Location
    SYDNEY, AUSTRALIA
    MS-Off Ver
    10
    Posts
    2

    COUNTIF from an Array or multiple Ranges

    Hi All,

    I have a formula which I am trying to calculate the level of conformance.

    This works well:

    =IFERROR(COUNTIF(C18:C21,"Conformance")/SUM(COUNTIF(C18:C21,{"Non-conformance","Conformance"})),"NA")

    However when i get to the situation where there is an array of ranges it doesn't work so well:

    =IFERROR(COUNTIF({C24:C26,C28:C29,C31:C34},"Conformance")/SUM(COUNTIF({C24:C26,C28:C29,C31:C34},{"Non-conformance","Conformance"})),"NA")

    Note that what is between the ranges is NOT a blank cell.

    Does anyone have any advice?

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: COUNTIF from an Array or multiple Ranges

    Perhaps
    =IFERROR(SUM(COUNTIF(INDIRECT({"C24:C26","C28:C29","C31:C34"}),"Conformance"))/SUM(COUNTIF(INDIRECT({"C24:C26","C28:C29","C31:C34"}),{"Non-conformance";"Conformance"})),"NA")
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    09-25-2017
    Location
    SYDNEY, AUSTRALIA
    MS-Off Ver
    10
    Posts
    2

    Re: COUNTIF from an Array or multiple Ranges

    Worked! thanks!

+ 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. VBA Countif Multicreteria Multiple ranges
    By flavieng in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-16-2013, 03:38 PM
  2. [SOLVED] Something like COUNTIF but can take multiple ranges?
    By ablits1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2013, 12:37 PM
  3. [SOLVED] trying to do a "countif" with multiple ranges and multiple criteria. Countif, Sumproduct?
    By completelyhis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 06:12 PM
  4. [SOLVED] Countif multiple ranges, same criteria
    By ebaldwin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2012, 10:18 AM
  5. COUNTIF greater than, less than across multiple ranges
    By shetektn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2010, 10:43 PM
  6. Countif with multiple ranges
    By dr mint in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2010, 02:14 AM
  7. Using multipel sum ranges in Sumproduct() & countif() in array
    By mubashir aziz in forum Excel General
    Replies: 16
    Last Post: 07-08-2009, 12:56 AM
  8. countif and multiple named ranges
    By roland willems in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2008, 10:59 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