+ Reply to Thread
Results 1 to 6 of 6

Count dates in column based on another cell

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    67

    Count dates in column based on another cell

    Hello,

    I was trying to do something like this:
    =COUNTIF(--(MONTH($B$13:$B$9908)=MONTH(M13)), --(YEAR($B$13:$B$9908)=YEAR(M13)))

    But getting errors, Basically trying to strip the month and year from M13 and count all occurrences of those in B13:

    Thanks for any help,

    Nick

  2. #2
    Forum Moderator
    Join Date
    05-14-2009
    Location
    RDC
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    7,210

    Re: Count dates in column based on another cell

    Try the same but with SUMPRODUCT instead of countif (your syntax is not correct)
    If it does not work post a sample sheet ( no pics please) . Clcik Go advanced - Manage attachments

  3. #3
    Registered User
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Count dates in column based on another cell

    Thanks, attached.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    4,492

    Re: Count dates in column based on another cell

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Count dates in column based on another cell

    Thank you Fluff13!

  6. #6
    Forum Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    4,492

    Re: Count dates in column based on another cell

    You're welcome & thanks for the feedback

+ 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