+ Reply to Thread
Results 1 to 7 of 7

Add totals of all rows matching specific month

  1. #1
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Add totals of all rows matching specific month

    I want to add the totals of all the rows of a specific month.

    Please attached document with example and requirement in cell D9 and E9 of the first tab?
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Add totals of all rows matching specific month

    In D9:
    Please Login or Register  to view this content.
    And pull down.
    You can change the reference in the first one from "Private" to "Public" for the code in E9.

    Note that your Date values in Table1 are a mix of actual dates and text strings -- you will have to clean up that range so they are all date values before the formula can deliver as expected.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    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,209

    Re: Add totals of all rows matching specific month

    Try

    =SUMIFS(Travel_Logbook_2017_A!$L:$L,Travel_Logbook_2017_A!$A:$A,">="&Travel_Logbook_2017_Aa!$C9,Travel_Logbook_2017_A!$A:$A,"<="&EOMONTH(Travel_Logbook_2017_Aa!$C9,0))


    =SUMIFS(Travel_Logbook_2017_A!$M:$M,Travel_Logbook_2017_A!$A:$A,">="&Travel_Logbook_2017_Aa!$C9,Travel_Logbook_2017_A!$A:$A,"<="&EOMONTH(Travel_Logbook_2017_Aa!$C9,0))


    PLEASE ensure all your dates are EXCEL dates: many are not formatted correctly.

  4. #4
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Add totals of all rows matching specific month

    Hi, to all!

    You have dates like text in A column. You have to fix them for good purposes. Also you have two dates (I put in red font) that are in 2017 (not added in resume).

    The formula purpose is:
    [D9] : =SUMIFS(Travel_Logbook_2017_A!L:L,Travel_Logbook_2017_A!$A:$A,">="&$C9,Travel_Logbook_2017_A!$A:$A,"<="&EOMONTH($C9,0))

    Drag it down and right.

    Also, you can do it with Pivot Table.

    Check file with results. Blessings!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Re: Add totals of all rows matching specific month

    What is the quickest way to sort out the formatting, instead of going through each row?

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Add totals of all rows matching specific month

    Fortunately the text appears to all be in the same format, so you can create a helper row with this formula:

    Please Login or Register  to view this content.
    Pull down to fill, then copypaste-values over the top of the original data, then delete the helper row, and you're done.

  7. #7
    Forum Contributor
    Join Date
    04-20-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2016
    Posts
    151

    Re: Add totals of all rows matching specific month

    THANKS Ben. All work and good...

+ 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] macro to copy specific columns and rows for a specific month and week
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 11:23 AM
  2. Display last 6 month's worth of data matching a specific criteria
    By pun2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2014, 03:10 PM
  3. Replies: 3
    Last Post: 01-03-2014, 08:03 PM
  4. Combined totals for specific columns and rows
    By benoj2005 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2013, 10:07 AM
  5. Replies: 3
    Last Post: 02-16-2013, 06:10 PM
  6. Comparing/matching totals in a column to totals in a row
    By Nicole L. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2005, 07: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