+ Reply to Thread
Results 1 to 6 of 6

Count Occurrences Date Range Falls Within Month

  1. #1
    Registered User
    Join Date
    05-27-2013
    Location
    Nashville, Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    5

    Count Occurrences Date Range Falls Within Month

    MLS Pending Sales.xlsx

    Hello,

    I have spent hours trying to figure this out on my own and have poured through online threads to find the answer, but have not succeeded. I am working on a Real Estate Market Report and am trying to track the homes that were "Pending" during previous months. Unfortunately, my local MLS does not track this data directly. There is no way to look back at January 2006 to see how many homes were "Pending" in that month. However, they do provide the date the home went into pending status as well as a closing date: providing the entire period the home was Pending. I have attached a workbook with three sheets; two for each year, and one for the report. In the Year sheets Column A holds the Pending Date and in B Closing Date. On the report sheet I have listed each month from A3:A14, and "2006" in B2 and "2007" in C2. I want to count how many homes were in a pending status for each month. I have tried using countifs as well as sumproduct, but can't seem to find the answer. Any help would be greatly appreciated.
    Last edited by Rbooth; 02-25-2014 at 07:33 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Count Occurrences Date Range Falls Within Month

    Hi,

    I think this gives you what you want. I have used the combination of 2 SUMPRODUCT formulae, so you were probably very close when you attempted this using your own SUMPRODUCT formula.

    Hope this helps

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,873

    Re: Count Occurrences Date Range Falls Within Month

    Insert a new column A in your report sheet, and fill the month numbers 1 to 12 in cells A3:A14. Then you can use this formula in C3:

    =SUMPRODUCT(('2006'!$A$2:$A$100<=DATE(C$2,$A3+1,0))*('2006'!$B$2:$B$100>=DATE(C$2,$A3,1)))

    and copy down. You can use a very similar formula in D3, i.e.:

    =SUMPRODUCT(('2007'!$A$2:$A$100<=DATE(C$2,$A3+1,0))*('2007'!$B$2:$B$100>=DATE(C$2,$A3,1)))

    where only the sheet name has changed (shown in red), although it will just show zeros with your sample data as the dates are the same as in sheet 2006.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,689

    Re: Count Occurrences Date Range Falls Within Month

    Pl seeattached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-27-2013
    Location
    Nashville, Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Count Occurrences Date Range Falls Within Month

    Thank you everyone so much for all of the help. It works now!

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Count Occurrences Date Range Falls Within Month

    No problems.

    Please don't forget to mark this thread as solved, and please click on the * next to any helpful posts to say thanks to the poster(s)

    Have a great day

+ 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. Count if value matches AND falls within a date range
    By Tnim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2013, 07:40 PM
  2. Return True or False if date range falls within current month
    By kieran614 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 12:02 PM
  3. [SOLVED] count if date in another cell falls in certain month and year
    By ea223 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-18-2012, 07:17 PM
  4. Replies: 2
    Last Post: 01-10-2012, 04:06 PM
  5. [SOLVED] how to count if the value falls between a date range
    By joe in forum Excel General
    Replies: 3
    Last Post: 09-28-2005, 12:05 AM

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