+ Reply to Thread
Results 1 to 3 of 3

Sum if month - year and name is the same

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2011 for mac
    Posts
    1

    Sum if month - year and name is the same

    Hi guys,
    in attach a very simple file...
    I need to sum the total of "Food" during March and during April.
    The same for "Drinks"...

    Any ideas?
    thx in advance...
    K.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Sum if month - year and name is the same

    hi unzmannn, welcome to the forum. try this in B8 & copy to C8:
    =SUMPRODUCT(((TEXT($A$2:$A$5,"mmmm")=$A$7)+(TEXT($A$2:$A$5,"mmmm")=$A$8))*($B$2:$B$5=B$7)*($C$2:$C$5))

    note that this ignores the year since A7 & A8 do not have it. also, both A7 & A8 must be months spelled in full.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    11-07-2012
    Location
    .
    MS-Off Ver
    2003 - 2013 for Windows
    Posts
    121

    Re: Sum if month - year and name is the same

    Create a pivot table and group the dates by year and month. No formula required, just a few clicks. See attached.
    Attached Files Attached Files
    regards, LMP

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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