+ Reply to Thread
Results 1 to 3 of 3

Count date cells for specific month

  1. #1
    Registered User
    Join Date
    12-02-2020
    Location
    London
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Count date cells for specific month

    Hi all,

    I am trying to count a data range of dates to see how many of the fields have dates for a specific month.

    I currently have the below, but it is displaying a #VALUE! error as there are some blank fields within the data range. I have tested without the blanks and it works fine.

    =SUMPRODUCT(1*(MONTH(A4:A81)=F1))

    A4:A81 is the data range of dates
    F1 cell is showing a month number, 3 for example.

    Please help!

    Kind regards,
    Brad
    Last edited by bauvache; 12-02-2020 at 09:48 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Count date cells for specific month

    bauvache,

    Can't see your table? But If Data is in Col A and a DATE is in F1 (any date in the month will do), put this in G1:

    =COUNTIFS($A$4:$A$81,">="&EOMONTH($F1,-1)+1,$A$4:$A$81,"<="&EOMONTH($F1,0))

    (To ensure you count every day in whatever month you enter in F1, count records dated on or after the last day of the previous month plus one day (so first day in this month) and on or before the end of the month in F1)

    Ochimus
    Last edited by Ochimus; 12-02-2020 at 08:19 AM.

  3. #3
    Registered User
    Join Date
    12-02-2020
    Location
    London
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Count date cells for specific month

    You genius - thanks a lot

+ 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. Count cells with a date between specific dates
    By joshie78 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2020, 05:48 PM
  2. [SOLVED] HELP count how many cells are in a specific week number per month
    By weistroit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2016, 02:31 PM
  3. Count cells with specific date
    By Cookiemonstuh in forum Excel General
    Replies: 5
    Last Post: 11-09-2015, 04:27 PM
  4. Count word if date in other column is a specific month (July)
    By nicimcd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2015, 11:19 AM
  5. [SOLVED] Count cells within a specific date range that contain a specific word
    By oneillp1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2014, 08:34 AM
  6. [SOLVED] Remove specific text from a cell and than sort cells by month and date
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2014, 05:05 PM
  7. Replies: 2
    Last Post: 12-17-2013, 06:30 AM

Tags for this Thread

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