+ Reply to Thread
Results 1 to 5 of 5

Nested IF, ANDIF, between date ranges Question

  1. #1
    Registered User
    Join Date
    07-21-2007
    Posts
    13

    Nested IF, ANDIF, between date ranges Question

    I am trying to figure out a formula to count the number of occurrences the word "Check" appears between a date range.

    For example

    Column A Column B
    Jan 30 Check
    Feb 1 Check
    Feb 2
    Feb 28 Check
    Mar 3
    Mar 25 Check

    I want to look up the dates by month and count how many times the word "check" appears in the month of February only (2 times)

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming that column A contains true dates

    Put 1st of the month to count in D2, e.g. 1-Feb-2008 [you can format as mmm-yy to show just feb-08] then you can use this formula in E2

    =SUMPRODUCT(--(A$2:A$100-DAY(A$2:A$100)+1=D2),--(B$2:B$100="check"))

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Count occurrences of a value in a specific month

    With your posted data in A1:B7...

    here's one approach:
    D1: FEB
    Please Login or Register  to view this content.
    Another alternative would be to use a pivot table.
    You could GROUP the date field into months
    and count the occurrences of "Check" in Feb.

    Does that help?
    Post back with more questions.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    07-21-2007
    Posts
    13
    I tried that and it is returning #Value...

    here is what i typed.

    =SUMPRODUCT(-($A$6:$A$2501-DAY($A$6:$A$2501)+1=B2),-(S386:S393="check"))

  5. #5
    Registered User
    Join Date
    01-31-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Nested IF, ANDIF, between date ranges Question

    Did you figured out the answer?

+ 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. Date / Linking question
    By maw4156 in forum Excel General
    Replies: 1
    Last Post: 08-15-2008, 09:13 PM
  2. Date Difference MM/DD
    By nfurlough in forum Excel General
    Replies: 3
    Last Post: 10-23-2007, 08:48 AM
  3. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  4. Date & time question
    By staples23 in forum Excel General
    Replies: 10
    Last Post: 09-22-2007, 01:42 AM
  5. Replies: 2
    Last Post: 10-07-2006, 09:23 AM

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