+ Reply to Thread
Results 1 to 8 of 8

Sumproduct in given month problem

  1. #1
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Question Sumproduct in given month problem

    Hi!

    I am working on an ongoing sheet in which I am writing dates into a column. I am trying to use the sumproduct function to count the number of dates that I have written that lies within a specific month.

    Example:

    (dd-mm-year)
    A1: 01-01-2017
    A2: 03-01-2017
    A3: 21-01-2017
    A4: 02-02-2017
    A5: 26-02-2017
    A6: 05-03-2017

    Using the following function, I can count how many dates that is in January:

    =SUMPRODUCT(1*(MONTH(A1:A20)=1))

    Now, the formula should be returning the value of 3, but since it is an ongoing sheet, I need the matrix to include all rows in the column. But then I get the month count wrong, because a blank string apparently counts as "month=1".

    For the above example with the given formula, it returns a value of 17.

    How do I make the formula to only count the strings in which I wrote a date?

    (sorry for bad english) :-)

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sumproduct in given month problem

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Re: Sumproduct in given month problem

    Hmm that didn't work at all, sorry :-)

    As mentioned, I need the function to include several rows, in which some of them are blank, so I can fill them out as the time goes by - so that I don't have to change the formula every time I add a new date.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sumproduct in given month problem

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Re: Sumproduct in given month problem

    I attached an example-sheet.

    However, it is written in a danish Excel, so I hope you're able to read the formulas.
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sumproduct in given month problem

    Ok try

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

  7. #7
    Registered User
    Join Date
    08-15-2014
    Location
    Denmark
    MS-Off Ver
    365 Pro
    Posts
    94

    Re: Sumproduct in given month problem

    Thank you, worked perfectly!! :-)

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sumproduct in given month problem

    Thanks for Feedback and rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Sumproduct by month
    By mmasonspg in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-06-2021, 03:23 AM
  2. [SOLVED] Month Over Month Headcount with SUMPRODUCT
    By kdalyveris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2020, 04:55 PM
  3. [SOLVED] Using SUMPRODUCT & MONTH
    By kriscons in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2017, 10:39 AM
  4. [SOLVED] Sumproduct Month VBA
    By hanif in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2016, 11:52 AM
  5. SUMPRODUCT - Month AND Year
    By CarloF in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-19-2015, 12:58 PM
  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. [SOLVED] Problem with sumproduct and month=1
    By bobh727 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-15-2005, 04:06 AM

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