+ Reply to Thread
Results 1 to 4 of 4

Counting the number of times a month appears

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2003
    Posts
    6

    Counting the number of times a month appears

    Hi. I'm doing an excel challenge for a prospective job and I need help with the last 2 problems. The answers have to come in the form of a formula.

    The first is a formula that counts the appearances of a specific month (June). The dates are listed in column E (range E2:E252) and are in the m/dd/yyyy format.

    The second problem is more challenging and I will post it after I solve the first one with your help.

    Thank you in advance.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Counting the number of times a month appears

    try using this

    =SUMPRODUCT((MONTH(E2:E252)=6)*1)
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    02-24-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Counting the number of times a month appears

    THANKS! I knew it was a combination of SUMPRODUCT and MONTH. What does the "*1" represent if you don't mind me asking?

    I'm going to work on the last problem and if I get stumped (high probability) I'll post it here.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Counting the number of times a month appears

    the first portion MONTH(E2:E252)=6 returns a TRUE or FALSE value into the array, you then multiply by 1 to get a numeric value.

+ 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