+ Reply to Thread
Results 1 to 7 of 7

Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

  1. #1
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    Hello All,

    See attachment.

    Attendance Records will be my running data that I will continue to populate. This will contain the department, date and event.

    Overview is where I would like to see my totals.

    In the chart, Overview, I would like the formula to match the department and the event description above in row 5. Then count the number of times that department and event occur between the dates in row 3 and 4.

    Thank you in advance,
    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: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    Try this in C6 and filled down.

    =COUNTIFS('Attendance Records'!$B:$B,Overview!$B6,'Attendance Records'!$G:$G,Overview!C$5,'Attendance Records'!C:C,">="&C$3,'Attendance Records'!C:C,"<="&C$4)

    The problem you're going to have is when you fill it to the right.
    Your dates in row 3 and 4 are Merged Cells
    Take C3:D3, those are merged and show 22-June
    The problem is that only C3 actually contains the date, D3 is actually blank.
    You'll have to manually adjust the formula to refer to the date in the left cell of each date range.

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    hi,

    Check this file


    Punnam
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    Quote Originally Posted by Jonmo1 View Post
    Try this in C6 and filled down.

    =COUNTIFS('Attendance Records'!$B:$B,Overview!$B6,'Attendance Records'!$G:$G,Overview!C$5,'Attendance Records'!C:C,">="&C$3,'Attendance Records'!C:C,"<="&C$4)

    The problem you're going to have is when you fill it to the right.
    Your dates in row 3 and 4 are Merged Cells
    Take C3:D3, those are merged and show 22-June
    The problem is that only C3 actually contains the date, D3 is actually blank.
    You'll have to manually adjust the formula to refer to the date in the left cell of each date range.
    Perfect. That works as I don't mind the extra little manual entry.

    Much appreciate it!

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

    Re: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    You're welcome.

  6. #6
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    Quote Originally Posted by Punnam View Post
    hi,

    Check this file


    Punnam
    Oh nice. You did the manual entry for me... It's the same formula but it was dragged over. Not sure how you did that. But this works well too!

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Countif (or maybe it's Sumproduct?) meets two criteria and between two dates

    Welcome

    Punnam

+ 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] COUNTIF for variables that meets a dynamic criteria
    By atomz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-12-2013, 09:55 PM
  2. [SOLVED] Counting number of data that meets 2 criteria (sumproduct and countifs?)
    By tekobayashi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2012, 02:30 AM
  3. Replies: 7
    Last Post: 07-19-2012, 10:22 AM
  4. [SOLVED] Excel 2007 : COUNTIF another cell meets criteria
    By MuhammadSami in forum Excel General
    Replies: 4
    Last Post: 06-18-2012, 04:17 PM
  5. Countif values meets date criteria
    By kayacsp17 in forum Excel General
    Replies: 1
    Last Post: 04-28-2009, 05:51 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