+ Reply to Thread
Results 1 to 3 of 3

Comparing Dates Range in One Column:county the number of projects

  1. #1
    Registered User
    Join Date
    03-23-2007
    Posts
    91

    Comparing Dates Range in One Column:county the number of projects

    Hi,

    I need to county the number of projects that occured in a date range.
    How do I do this?

    One column has dates like (column A)
    7/7/2010

    And the other has one like (this is column FF)
    7/7/2010 10:23



    I'm using a statement like this.
    =SUMPRODUCT((ccs_export!$D:$D="blabla")*(ccs_export!$E:$E<>"abc"))*(ccs_export!$FF:$FF>A3,ccs_export!$FF:$FF<A4)

    Any ideas?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    re: Comparing Dates Range in One Column:county the number of projects

    Which XL version are you using?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: Comparing Dates Range in One Column:county the number of projects

    Maybe:

    =SUMPRODUCT((ccs_export!$D:$D="blabla")*(ccs_export!$E:$E<>"abc")*(ccs_export!$FF:$FF>A3)*(ccs_export !$FF:$FF<A4))

    but note 2 things... whole column references are not allowed with Sumproduct in preXL2007 and also whole column references with Sumproduct in post XL2003 is very inefficient.

    If you are not in XL2007 or later, condense the ranges as much as possible.

    If you are in XL2007 or later use Countifs instead:

    =COUNTIFS(ccs_export!$D:$D,"blabla",ccs_export!$E:$E,"<>abc",ccs_export!$FF:$FF,">"&A3,ccs_export !$FF:$FF,"<"&A4)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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