+ Reply to Thread
Results 1 to 6 of 6

Count dates that are in month

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    Count dates that are in month

    I have a list of dates in the following format DD/MM/YYYY

    I have another cell with a month that has been typed into it (e.g. "November")

    I wish to count the dates that feature in the month name in the other cell.

    I have tried the following, but cant get it to work...

    =SUMPRODUCT((MONTH('Live Data'!B5:B7)=Summary!D6))

    B5:B7 is the list of dates
    D6 is the month that has been typed

    Thank you guys

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Count dates that are in month

    MONTH('Live Data'!B5:B7) will produce the month number.
    From the description of your problem D6 is the name of the month.
    They obviously won't match, you'll need to convert the month number to a name (or vice versa)

    Try

    =SUMPRODUCT(--(TEXT(MONTH('Live Data'!B5:B7),"dddd")=Summary!D6))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    Re: Count dates that are in month

    Unfortunately it didn't work. However ive done a work around now.

    Thanks

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Count dates that are in month

    Try this ...

    =SUMPRODUCT(--(TEXT('Live Data'!B5:B7,"mmmm")=Summary!D6))
    Last edited by Phuocam; 11-29-2016 at 07:40 AM.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Count dates that are in month

    Or try this ...

    =SUMPRODUCT(--(MONTH('Live Data'!B5:B7)=MONTH(1&Summary!D6)))

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Count dates that are in month

    Dear Nath, if your dates in column "B2" to "B13" & your month which you type manually in column "D2" to "D13" (i.e. "Oct" or "Nov" or "Dec") This is example.
    And if you required result in column "E".
    Enter manually "E1" as "Nov"
    Formula in "E2" is :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. [SOLVED] Need help: Dates count in month
    By cdllt in forum Excel General
    Replies: 17
    Last Post: 11-19-2015, 08:52 PM
  2. [SOLVED] Count how many dates are within each month
    By Smally in forum Excel General
    Replies: 6
    Last Post: 06-18-2015, 07:21 AM
  3. [SOLVED] Count Dates In A Month
    By ajocius in forum Excel General
    Replies: 6
    Last Post: 02-02-2015, 05:14 PM
  4. Count one month in a dates range.
    By metkiki in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2014, 01:51 AM
  5. Count days per month between two dates
    By ryets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 03:16 PM
  6. Count the dates in a month
    By s2m via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 08-04-2006, 12:40 PM
  7. [SOLVED] Count dates for previous month
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2006, 03:45 PM

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