+ Reply to Thread
Results 1 to 3 of 3

Count Data Meeting Criteria Across Columns Meeting Criteria

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    7

    Count Data Meeting Criteria Across Columns Meeting Criteria

    Hi,

    I have a problem I am trying to resolve with a tasking spreadsheet in that I am trying to count the number of due dates in a table that meet specific criteria, but only count in columns meeting specific criteria. I've tried with sumproduct, but it returns an error, and I don't believe countifs will work with finding the specific column.

    I've attached an example spreadsheet with data, and a result area highlighted in yellow.

    In the spreadsheet, I would like to count the number of dates meeting criteria for K1(TaskID1) and J2(05/04/15) within the data table A1:F13, but only in the columns labeled "Due Date". In the original spreadsheet, I have multiple due date columns (relating to different phases of the project).

    I wrote a formula in cell K2 with what I believe I thought I knew it should be:
    =SUMPRODUCT(($C$2:$F$13=$J2)*($A$2:$A$13=K$1)*($A$1:$F$1="Due Date"),$C$2:$F$13)

    But it's returning an error.

    You all have been of great help in the past, and I again would appreciate any advice you could give.

    Thanks in advance!

    Example.xlsx

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Count Data Meeting Criteria Across Columns Meeting Criteria

    Hi idelta,

    If you restructure your data it might work better. See if the attached is what you are looking for.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Count Data Meeting Criteria Across Columns Meeting Criteria

    Thanks for the response Marvin. I agree with restructing the data, and it would make a few other data functions I have to do easier. Unfortunately, management wants to see the different phases similar to the example I gave.

    However, I did end up solving this I believe after mucking around for a bit, and it turned out to be pretty simple (slapping forehead). The ranges all needed to be the same. So the formula worked with this:

    =SUMPRODUCT(($A$1:$F$13=$J2)*($A$1:$A$13=K$1)*($A$1:$F$1="Due Date"))

    I do appreciate the suggestion and your time.

+ 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] Count of pupils meeting 'less than' criteria...
    By sezza79 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2014, 09:27 AM
  2. Count data meeting certain criteria from multiple files and compile into Summary
    By Kettie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2013, 12:30 PM
  3. [SOLVED] How can I count line entries based on meeting criteria for 2 separate columns?
    By neilrk7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:57 PM
  4. Replies: 21
    Last Post: 07-12-2012, 07:44 PM
  5. lookup and count if meeting criteria
    By reghu in forum Excel General
    Replies: 6
    Last Post: 09-09-2010, 07:41 AM
  6. Record count meeting 4 criteria
    By harleypop in forum Excel General
    Replies: 6
    Last Post: 03-17-2009, 08:33 PM
  7. [SOLVED] count records meeting three criteria
    By Laura in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-21-2005, 01:50 PM

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