+ Reply to Thread
Results 1 to 2 of 2

Countifs over multiple columns and rows

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Countifs over multiple columns and rows

    I'm trying to execute a COUNTIFS formula where the criteria range is across multiple columns and rows, but I keep getting #VALUE! returned in the cell. Here is the formula I'd like to have:

    =COUNTIFS(Sheet3!$S:$S,Sheet1!$A$5,Sheet3!AF:AJ,Sheet2!$A4)

    I run into trouble with my criteria_range2. Instead of being able to list AF:AJ, I'm having to create separate formulas for each row (AF:AF, AG:AG, etc). I have tried AF1:AJ10 as well - no luck. So my formula ends up as:

    =COUNTIFS(Sheet3!$S:$S,Sheet1!$A$5,Sheet3!AF:AF,Sheet2!$A4), then =COUNTIFS(Sheet3!$S:$S,Sheet1!$A$5,Sheet3!AG:AG,Sheet2!$A4) in the next column, etc, etc.

    I've attached a sample. This sample is a simplified version of what I'm really using (I can't send it out due to privacy issues) and the one I'm working with is actually much larger ranges (AD:AR and over 700 rows of data).

    Any suggestions?

    Thanks.
    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 over multiple columns and rows

    Try

    =SUMPRODUCT((Sheet3!$S$2:$S$100=Sheet1!$A$5)*(Sheet3!$AF$2:$AJ$100=Sheet2!$A3))

+ 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: 2
    Last Post: 03-19-2014, 11:47 AM
  2. Countifs, from multiple columns, within range of years
    By xenomorph8472 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2012, 01:15 PM
  3. Using COUNTIFS with multiple columns
    By djsquare in forum Excel General
    Replies: 1
    Last Post: 06-27-2011, 01:58 PM
  4. Using Countifs, on entries in multiple columns
    By Befuddled in forum Excel General
    Replies: 6
    Last Post: 12-15-2010, 09:25 PM
  5. Countifs and multiple columns...
    By ajayb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 10:35 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