+ Reply to Thread
Results 1 to 5 of 5

SumIf dates...month & year!

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    18

    Post SumIf dates...month & year!

    I am looking to sum if a range of dates.

    Ideally i would like this to be as generic as possible, i.e if the list of dates changes the formula adapts.

    On my file you will see Branch totals. I would like to then break down values for each month and in what year.

    I have looked around but cent see that fits this exactly...

    Would be great if you could help out.

    Thanks

    Ross

    example.xlsx

  2. #2
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: SumIf dates...month & year!

    Hi Ross Ink,

    Hope this attached excel file will help you.

    I have Added in column J1 to Q19, calculation of the branch by month using SUMIFS function.
    For example in N2, formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It is just stated that Sum range G21 to G1032 when it satisfy 3 criteria
    1 being the Date J2, has to be greater than equal to J2 in range F21 to F1032 and
    2 has to be less than equal to the last day of month J2 (using EOMONTH function) and
    3 sum when A21 to A1032 satisfy the condition of branch 72.

    However I would suggest you to use pivot table to summarise as this will reduce human error. I have created a pivot table for you in another sheet. look at it whether that would suit you?

    Cheers
    Albert


    Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).
    Attached Files Attached Files

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SumIf dates...month & year!

    see the attached file
    created dropdown list for month and year in D2 & E2
    and your formula edited A3:A14
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    01-21-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: SumIf dates...month & year!

    Guys thank you!

    Both example are much appreciated.

    Is there in anyway that you don't need to "hard wire" the date?? In where you look at the list of dates, split into months then show sum of total.

    Thanks

    Ross

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SumIf dates...month & year!

    Better to use pivot table

+ 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] Is there a way to insert all dates for a month weekly when user inputs Month and a Year?
    By uniqbboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2014, 10:40 AM
  2. Graphing dates by month/year with 2 bars per month/year
    By Ellpoyohlokoh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2014, 05:25 AM
  3. find time left in month.days unit between two dates(in YEAR.MONTH.DAY)
    By xcfeng95 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-21-2014, 12:55 PM
  4. [SOLVED] display cell to show only Month/year to do sumif calc if today()= any day of month
    By fireguy7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 06:55 PM
  5. Replies: 2
    Last Post: 12-01-2012, 03:06 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