+ Reply to Thread
Results 1 to 5 of 5

COUNTIFS error

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    18

    COUNTIFS error

    I would like to count the number of times a letter is present in an array based on multiple criteria. I seem to have been unable to do this so far because the arrays are different sizes perhaps.

    In the attached example workbook the blank cells in the array D13:DT972 contain the text "" .

    Any suggestions would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIFS error

    Yes, it's because the ranges are of different dimensions.
    COUNTIFS (and all the xxIFs functions) require all ranges to be of the same dimensions

    Try this in D5

    =SUMPRODUCT(($B$13:$B$972=$B5)*($C$13:$C$972=$C5)*($D$12:$DT$12>$C$2)*($D$13:$DT$972=D$4))

  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,936

    Re: COUNTIFS error

    Your ranges in COUNTIFS have to match, you cant have that range across the top, along with all the other ranges going downwards.

    I am out of time right now, but will take a look again soon
    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
    Registered User
    Join Date
    10-29-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: COUNTIFS error

    Jonmo1 - Thank you very much, your formula does exactly what I need it to.

    FDibbins - Thanks for offering to take a look, the SUMPRODUCT formula counts the text based on the criteria as hoped so no further action required.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIFS error

    You're welcome.

+ 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. COUNTIFS #name error
    By qwertyjjj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2014, 05:34 PM
  2. Help with this countifs error!
    By husni in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 04:04 AM
  3. COUNTIFS Error
    By mgsc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 10:01 AM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. Error using countifs
    By welchs101 in forum Excel General
    Replies: 6
    Last Post: 11-08-2011, 08:20 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