+ Reply to Thread
Results 1 to 8 of 8

Sumifs with only months

  1. #1
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Sumifs with only months

    Hi all ,

    Could some one kindly advice how do I write a excel formula to calculate amounts that falls under particular months.

    Please find attached excel file with example of what I am looking for .

    Regards,
    Hudson
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sumifs with only months

    Not 100% sure that I've grasped what you need here, but the below formula will give you the expected result shown in your example.

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


    BSB

  3. #3
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Sumifs with only months

    Hudson,

    you could create a new data column with the formula: "=month(A2)".

    And then you could run a SumIf based on this column.

    I've made these changes to your excel in green. Please see attached.

    Let me know if it works.

    Cheers
    Attached Files Attached Files
    <-- If you're happy & you know it...click the star.:-)

  4. #4
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: Sumifs with only months

    Hi amith - thankyou so much for your reply but I unable to get the information what I am supposed to .. because I have date from last years may too..

    However I have attached another sheet too for your reference.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: Sumifs with only months

    Use the SUMPRODUCT function.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: Sumifs with only months

    thank you so much for your email . formula you gave could not help me in getting what I am looking for .

    maybe I was not clear in stating my problem , hear is the requirement I wanted to sum between two dates , firstly from date could be anything , to date would be my complete current month ( i.e june and if I am in july my current month would be July)..

    I have tried a formula using SUMIFS ..=SUMIFS(B:B,A:A,">="&A2,C:C,"<="&MONTH(TODAY()))

    but for this I need to creat helper column ..

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,279

    Re: Sumifs with only months

    Try

    =SUMPRODUCT(($B$2:$B$227>=$F$3)*($B$2:$B$227<=EOMONTH(TODAY(),0))*($C$2:$C$227))

    OR

    =SUMIFS($C:$C,$B:$B,">=" & $F$3,B:$B,"<=" &EOMONTH(TODAY(),0))

    The latter is the formula supplied in post #2 by BSB though EOMONTH was following month i.e. July: did you try it? ???

    [=SUMIFS(B:B,A:A,">="&F3,A:A,"<="&EOMONTH(TODAY(),1))]

    No helper column required.
    Last edited by JohnTopley; 06-01-2016 at 01:03 PM.

  8. #8
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: Sumifs with only months

    John- this is fantastic !!!! .. I got what I am looking for . thank you all once again .

+ 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. Need Macro to get data for last 3 months, 6 months, 12 months etc
    By idv786 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2016, 09:13 AM
  2. Replies: 10
    Last Post: 02-25-2015, 05:08 PM
  3. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  4. [SOLVED] Sumifs adding together all the months of a fiscal year
    By laliparker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2014, 10:38 AM
  5. SUMIFS with lint for only the last 6 months to show
    By Jp4Real in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-29-2013, 06:22 PM
  6. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  7. [SOLVED] IF AND or SUMIFS comparing Months from 2 date columns and text from 2 other columns
    By jrochet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-22-2012, 11: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