+ Reply to Thread
Results 1 to 3 of 3

Count Dates Between Two Dates across Rows

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Question Count Dates Between Two Dates across Rows

    Is it possible to count the number of dates that falls within two dates across rows? All examples are down columns. I thought this would work, but I just get a count of all dates - even dates outside of my date range. My start date is in C1, end date is D1. Document dates are in columns F1 through M1. Thoughts?

    =COUNTIFS(F1:M1,">="&C1,F1:M1,"<="&D1)
    =SUMPRODUCT((F1:M1>=C1)*(F1:M1<=D1))

    Thanks in advance for your help!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count Dates Between Two Dates across Rows

    =SUMPRODUCT((F1:M1>=C1)*(F1:M1<=D1)) should work are dates real or are they text? format the cells as general they should show a 5 digit date code
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count Dates Between Two Dates across Rows

    You're the best!! Thanks so much for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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