+ Reply to Thread
Results 1 to 3 of 3

Using MONTH to SUMPRODUCT keeps using all blanks as January

  1. #1
    Registered User
    Join Date
    06-19-2018
    Location
    Midlands
    MS-Off Ver
    2016
    Posts
    9

    Using MONTH to SUMPRODUCT keeps using all blanks as January

    Hi Guys, new here, please be gentle with me

    I am trying to sum the total from a column based on MONTH range. But counting the occurrences within a column the result keeps adding all blank cells as January.
    The formula I am using is this:
    =SUMPRODUCT(--(MONTH($B$6:$B$500)=1))

    The spreadsheet is column B - a list of dates 01/06/18, 02/08/18, 15/01/19
    If there's only 3 entries and I want to calculate those appearing in January (MONTH 1), it keeps coming up as 498 (the length of all the blanks)
    I have already tried using an IF function in a separate column to show as 0 but this has not helped.

    How do I stop this from happening please? I know this is a common thread but I couldn't find the answer to help me out.

    Your time is much appreciated

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

    Re: Using MONTH to SUMPRODUCT keeps using all blanks as January

    Its probably defaulting a blank cell as 01/01/1900 hence January month

    Try

    =SUMPRODUCT((MONTH($B$6:$B$500)=1)*($B$6:$B$500<>""))

    Where Month = 1 and B6:B500 is not blank
    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
    06-19-2018
    Location
    Midlands
    MS-Off Ver
    2016
    Posts
    9
    thank you for your help and time, it is much appreciated

+ 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] Averaging from January to current month
    By paul_arc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-17-2016, 06:45 PM
  2. Unabbreviate Month ('Jan' to 'January')
    By xtinct2 in forum Excel General
    Replies: 3
    Last Post: 04-28-2016, 12:50 PM
  3. Replies: 2
    Last Post: 02-20-2015, 07:44 AM
  4. Replies: 18
    Last Post: 01-02-2014, 02:49 PM
  5. Problems with the month on January..
    By Hodged in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2007, 12:55 PM
  6. returning value if month is January
    By jermsalerms in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-18-2006, 02:47 PM
  7. [SOLVED] using date function, month shows as January when i type (12)
    By hsas in forum Excel General
    Replies: 3
    Last Post: 06-17-2005, 03:05 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