+ Reply to Thread
Results 1 to 10 of 10

SUMPRODUCT - Month AND Year

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    SUMPRODUCT - Month AND Year

    I wonder if anyone can help with this formula.

    I can calculate the number of items when I specify the range, i.e. =SUMPRODUCT(--(MONTH(External!I$54:I$69)=3))
    ...in this instance for March. The range is all historic rows for 2014.

    How do I expand this for the whole of Column I which will contain multiple Years?

    I want to iliminate the potential of adding additional rows and forgetting to change the formula.

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

    Re: SUMPRODUCT - Month AND Year

    =SUMPRODUCT(--(MONTH(External!I$54:I$69)=3)*(YEAR(External!I$54:I$69)=2014))
    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
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT - Month AND Year

    Or

    =SUMPRODUCT(--(TEXT(External!I$54:I$69,"mmmyy")="Mar14"))

  4. #4
    Registered User
    Join Date
    02-16-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Re: SUMPRODUCT - Month AND Year

    Thanks......that is fine for the range 54 to 69 but how do i apply this to the whole column?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT - Month AND Year

    I would recommend NOT referencing the whole column.
    There's over 1 million rows on a sheet, and it will evaluate every single one of them.
    That's Alot of unnecessary calculations.

    Just stick to the actual used range of rows.

  6. #6
    Registered User
    Join Date
    02-16-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Re: SUMPRODUCT - Month AND Year

    In the range 54 to 69 the date is all for 2014.

    I want to expand the range so 2015, 2016 etc data is included automatically.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT - Month AND Year

    Change

    External!I$54:I$69

    To whatever range covers ALL of the date data...
    Say
    External!I$2:I$1000

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT - Month AND Year

    COUNTIFS is more flexible with using entire column references.
    It will calculate only the used range..

    Maybe Try

    =COUNTIFS(External!I:I,">="&DATE(2014,3,1),External!I:I,"<="&DATE(2014,3,31))

  9. #9
    Registered User
    Join Date
    02-16-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    10

    Re: SUMPRODUCT - Month AND Year

    That works. Many thanks.

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT - Month AND Year

    You're welcome.

+ 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] Sumproduct from date - 4 criteria (inc month & year)
    By Knawl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2014, 04:48 AM
  2. Using SUMPRODUCT For Two Criteria AND Month of Year.
    By stuu3270 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2013, 06:22 AM
  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 by Job Type, Year and Month
    By JO505 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2013, 04:32 PM
  5. Sumproduct with month and year ???
    By jpeirano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2011, 09:07 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