+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS Formula Criteria Problem

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    COUNTIFS Formula Criteria Problem

    G'day all

    I have this formula which works just peachy:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I am trying to add a new criterium as shown:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Which returns #VALUE.

    Bound to be a simple answer...bit like myself.

    Cheers
    hammer
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: COUNTIFS Formula Criteria Problem

    read here: COUNTIFS()

    Important: Each additional range must have the same number of rows and columns as the criteria_range1 argument. The ranges do not have to be adjacent to each other.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: COUNTIFS Formula Criteria Problem

    COUNTIFS with a single criteria seems to allow a multiple columns in the criteria range, probably because excel may be converting it to a simple countif() function.
    =COUNTIFS(AEW:AIV,A6380)

    But as soon as you add a 2nd criteria (and range), excel will no longer accept multi-column ranges. 1 criteria - 1 (column or row) range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: COUNTIFS Formula Criteria Problem

    Actually, COUNTIFS does accept same-size multi-column ranges but it counts hits only in the columns that have the same relative position in the ranges.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: COUNTIFS Formula Criteria Problem

    @ Root, thanks for the update. I have never bothered to try that because I knew it would not return what I wanted.

    In the test I did for this...
    =COUNTIFS(D23:F34,0,G23:G34,0)
    returned #VALUE

    =COUNTIFS(D23:F34,0,G23:I34,0)
    returned 1, when there were far more qualifying entries

    It only takes criteria from the 1st column in each range

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: COUNTIFS Formula Criteria Problem

    hm .

+ 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] Problem with countifs formula using two text criteria
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2017, 12:44 PM
  2. Countifs formula problem
    By mkoski in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2016, 04:08 PM
  3. [SOLVED] COUNTIFS Problem when selecting multiple criteria
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-17-2014, 09:01 AM
  4. COUNTIFS Formula Problem
    By Archangel30IL in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2014, 01:21 PM
  5. [SOLVED] Problem with COUNTIFS formula
    By BeerKing in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2014, 10:19 AM
  6. Problem with Countifs with 3 criteria (one being date)
    By Akbhat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2013, 08:42 AM
  7. [SOLVED] problem in countifs formula
    By hello911helpme in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 08:14 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