+ Reply to Thread
Results 1 to 3 of 3

countif(and function

  1. #1
    Registered User
    Join Date
    01-09-2006
    Posts
    13

    countif(and function

    Have a column of dates, and would like to count number that fall within specific range.

    ex:
    Dates
    1/1
    1/7
    1/12
    1/13
    1/19
    1/21
    Total between 1/4 & 1/15 = 3

    =COUNTIF(AND(C1:C6,">=1/4/09","<=1/15/09")
    =COUNTIF(AND(C1:C6,">=1/4/09"),(C1:C6,"<=1/15/09")
    both give message that formula contains error

  2. #2
    Forum Contributor
    Join Date
    10-14-2004
    Location
    San Diego, CA
    Posts
    213

    Re: countif(and function

    Hello jlhart76:

    Try this.

    =SUMPRODUCT(--(C1:C6>=A1),--(C1:C6<=A2))

    Cells A1 and A2 contain the dates in question.

  3. #3
    Registered User
    Join Date
    01-09-2006
    Posts
    13

    Re: countif(and function

    Thanks, it seems to work.

+ 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