+ Reply to Thread
Results 1 to 2 of 2

Need to use a range of cells for my criteria in a COUNTIFS formula

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to use a range of cells for my criteria in a COUNTIFS formula

    I am attempting to use a COUNTIFS formula but I need my 2nd set of criteria to include an entire list of cells. Here is the formula that I am currently attempting:
    =COUNTIFS($b$2:$b$40,a2,$d$2:$d$40,$c$2:$c$10)

    This only works the way I want it to if the 2nd criteria is in the same row as the 1st criteria. I need it to add to the count if my criteria shows up anywhere in the list I have made from c2 to c10.

    Thanks for any help you can offer.

  2. #2
    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,917

    Re: Need to use a range of cells for my criteria in a COUNTIFS formula

    Hi and welcome to the forum

    Without seeing what you are working with, all I can say is that normally, the criteria for something like that, needs to be a single cell or text. Maybe try entering it as an array formula?
    Use CTRL SHIFT enter, not just enter
    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

+ 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 with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. Countifs formulas - use a range of values as the criteria
    By Smashels in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2013, 02:48 PM
  3. Countifs in VBA. Loops on criteria range
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2011, 06:35 PM
  4. Macro to add range & criteria in COUNTIFS Formula
    By wspettus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2011, 03:34 AM
  5. COUNTIFS with a range of values for criteria
    By sslack88 in forum Excel General
    Replies: 3
    Last Post: 11-03-2008, 03:14 PM

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