+ Reply to Thread
Results 1 to 5 of 5

Count Problem between dates

  1. #1
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    145

    Count Problem between dates

    D7=Start Date F7=End Date

    B13:B31 Data Dates
    C13:C31 Data

    I need a formula that will count the number of entries in range C13:C31 that are between the dates in D7 and F7.

    Thanks for your help.

  2. #2
    Bernard Liengme
    Guest

    Re: Count Problem between dates

    Try =SUMPRODUCT(--(D13:D19>D7),--(D13:D19<F7))
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email


    "Frick" <[email protected]> wrote in message
    news:[email protected]...
    >
    > D7=Start Date F7=End Date
    >
    > B13:B31 Data Dates
    > C13:C31 Data
    >
    > I need a formula that will count the number of entries in range
    > C13:C31 that are between the dates in D7 and F7.
    >
    > Thanks for your help.
    >
    >
    > --
    > Frick
    > ------------------------------------------------------------------------
    > Frick's Profile:
    > http://www.excelforum.com/member.php...o&userid=29629
    > View this thread: http://www.excelforum.com/showthread...hreadid=493772
    >




  3. #3
    Peo Sjoblom
    Guest

    Re: Count Problem between dates

    =SUMPRODUCT(--(B13:B31>=D7),--(B13:B31<=F7))

    will count dates in B13:B31 that are bewteen D7 and F7
    however what is the criteria for C13:C31? If not empty is the criteria

    =SUMPRODUCT(--(B13:B31>=D7),--(B13:B31<=F7),(C13:C31<>""))

    otherwise post back with criteria


    --

    Regards,

    Peo Sjoblom


    "Frick" <[email protected]> wrote in message
    news:[email protected]...
    >
    > D7=Start Date F7=End Date
    >
    > B13:B31 Data Dates
    > C13:C31 Data
    >
    > I need a formula that will count the number of entries in range
    > C13:C31 that are between the dates in D7 and F7.
    >
    > Thanks for your help.
    >
    >
    > --
    > Frick
    > ------------------------------------------------------------------------
    > Frick's Profile:

    http://www.excelforum.com/member.php...o&userid=29629
    > View this thread: http://www.excelforum.com/showthread...hreadid=493772
    >




  4. #4
    Forum Contributor
    Join Date
    12-14-2005
    Location
    US
    MS-Off Ver
    Excel 2019, Excel 365, Excel Mobile (Android)
    Posts
    145

    Additional Informatio

    Column B has Dates in no specific order. Column C has either a number greater then 1 or 0. I tried Count but because every cell has a formula that either retuns a number or 0, the result was it counted every cell. I can't use the count for Col B because some dates entered in B are for data in Col's D through I.

    I tried the formula =SUMPRODUCT(--(B13:B31>=D7),--(B13:B31<=F7),(C13:C31>0)) but that only returned 0 when with data entered shoud have returned a count value of 4.

    Any other ideas?

  5. #5
    Bob Phillips
    Guest

    Re: Count Problem between dates

    =SUMPRODUCT(--(B13:B31>=D7),--(B13:B31<=F7),--(C13:C31>0))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Frick" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Column B has Dates in no specific order. Column C has either a number
    > greater then 1 or 0. I tried Count but because every cell has a
    > formula that either retuns a number or 0, the result was it counted
    > every cell. I can't use the count for Col B because some dates entered
    > in B are for data in Col's D through I.
    >
    > I tried the formula
    > =SUMPRODUCT(--(B13:B31>=D7),--(B13:B31<=F7),(C13:C31>0)) but that only
    > returned 0 when with data entered shoud have returned a count value of
    > 4.
    >
    > Any other ideas?
    >
    >
    > --
    > Frick
    > ------------------------------------------------------------------------
    > Frick's Profile:

    http://www.excelforum.com/member.php...o&userid=29629
    > View this thread: http://www.excelforum.com/showthread...hreadid=493772
    >




+ 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