+ Reply to Thread
Results 1 to 5 of 5

Sumif months?

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    São Paulo
    MS-Off Ver
    2007
    Posts
    30

    Question Sumif months?

    Hello,

    My problem must be simple to you. I just want to sum a certain range of numbers of given months and years.
    I've tried:

    =SUMIFS(B:B;A:A;MONTH(E2);A:A;YEAR(E2))

    =SUMIFS(B:B;A:A;"="&MONTH(E2);A:A;"="&YEAR(E2))

    Both give me the 0 result.

    Could anyone help me please?

    Thanks :D

    Please find the sheet attached
    Book1.xlsx
    Last edited by PedroSchulz; 10-08-2014 at 02:43 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumif months?

    Hi

    F2 copied across and down

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Sumif months?

    Try

    =SUMIFS(B:B,A:A,">=" & E2,A:A,"<" & E1)

    in Cell F2 and copy down.

    You need to enter Oct-14 in E1.
    Martin

  4. #4
    Registered User
    Join Date
    08-28-2014
    Location
    São Paulo
    MS-Off Ver
    2007
    Posts
    30

    Re: Sumif months?

    thanks :D
    would you mind to explain why? "&E2" means month?

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sumif months?

    Or this

    =SUMPRODUCT((MONTH($A$2:$A$13)=MONTH($E2))*($B$1:$C$1=F$1)*($B$2:$C$13))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. SUMIF for Dates / Months ?
    By ZMAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. [SOLVED] SUMIF for Dates / Months ?
    By Rowan in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2005, 05:05 PM
  3. [SOLVED] SUMIF for Dates / Months ?
    By ZMAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  4. [SOLVED] SUMIF for Dates / Months ?
    By ZMAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] SUMIF for Dates / Months ?
    By ZMAN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-25-2005, 10:05 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