Closed Thread
Results 1 to 9 of 9

Sumproduct by month

  1. #1
    Registered User
    Join Date
    01-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    5

    Sumproduct by month

    Hello Excel Forum!

    I have column A1:A300 containing various dates from 2015. I have a summary page where I am trying to 'count' how many times a specific month shows up. For example:

    Column A
    26-Jan-2015
    13-Sep-2015
    22-Apr-2015
    21-Jan-2015

    I then have a summary chart as follows:

    Column B_______Column C
    Date___________No. of Occurences
    January 2015
    February 2015
    etc.

    In column C, I tried the following formula but I am receiving a #VALUE! error, =SUMPRODUCT(--(MONTH($A$1:$A$300)=1)).

    Any suggestions as to where I'm going wrong!?

    Thanks a lot.

    MM

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sumproduct by month

    Hello welcome to the forum.

    The most likely cause is that some of the dates in column A are not valid dates but text, that would produce the #VALUE error you describe. You need to check they are all valid numbers.

    DBY

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Sumproduct by month

    Check to see if column A dates are actually numbers or are text. Otherwise your formula looks good
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    5

    Re: Sumproduct by month

    Thanks everyone. The problem was a combination of poor formatting and blank cells.

    MM

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sumproduct by month

    We're glad to have helped. Formatting is often a problem in Excel.

  6. #6
    Registered User
    Join Date
    01-05-2021
    Location
    perth
    MS-Off Ver
    office 2016
    Posts
    3

    Re: Sumproduct by month

    Hello
    I am trying to list and sum totals by month by description (list by month totals for "new house morgage") (i know the spelling is incorrect)

    Any help with formula would be greatly appreciated.

    Thanks

    Screenshot 2021-01-06 094824.jpg

  7. #7
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,241

    Re: Sumproduct by month

    =sumproduct(--(text(datevalue(a1:a30),"m")="1"))
    Last edited by daboho; 01-06-2021 at 01:34 AM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Sumproduct by month

    Quote Originally Posted by ferrarik View Post
    Hello
    I am trying to list and sum totals by month by description (list by month totals for "new house morgage") (i know the spelling is incorrect)

    Any help with formula would be greatly appreciated.

    Thanks

    Attachment 711775
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    01-05-2021
    Location
    perth
    MS-Off Ver
    office 2016
    Posts
    3

    Re: Sumproduct by month

    Hello

    Sorry have now posted in correct area.

    Thank you

    Karl

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Month Over Month Headcount with SUMPRODUCT
    By kdalyveris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2020, 04:55 PM
  2. SUMPRODUCT - Month AND Year
    By CarloF in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-19-2015, 12:58 PM
  3. [SOLVED] SUMPRODUCT, OR, Less than Month & Less than Year
    By JUGGAKNOTZZ in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-01-2013, 10:51 AM
  4. [SOLVED] Sumproduct/text/month
    By sick stigma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2012, 03:39 PM
  5. Sumproduct, specific month
    By Luth6322 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2010, 02:53 AM
  6. SumProduct By Month with #N/A Problem
    By trsmith in forum Excel General
    Replies: 4
    Last Post: 06-16-2009, 11:28 AM
  7. Sumproduct using Month as one of the criteria
    By Statsman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2008, 02:21 PM

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