+ Reply to Thread
Results 1 to 3 of 3

Compare Two list and sum values based on all matching values and by month

  1. #1
    Registered User
    Join Date
    11-18-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Compare Two list and sum values based on all matching values and by month

    Hi All,

    I am trying to write a formula, which will compare two lists and based on all matches, it sums up their values by month.

    I have searched lots of websites but unable to find any solution.

    I have attached a sample file for your reference. In the sample file I have highlighted the boxes with the correct amount that should be there for Month 1 and onwards.

    The first list is in Summary Tab : Column A (If I add more elements in Column A, the sum of values should be for all those elements. The 2nd list is in Data tab: Column D.

    Your help will be really appreciated.
    Attached Files Attached Files

  2. #2
    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,313

    Re: Compare Two list and sum values based on all matching values and by month

    Try

    in C10

    =SUMIFS(Data!$E$2:$E$34,Data!$A$2:$A$34,Summary!C$8,Data!$D$2:$D$34,Summary!$A10)

    Copy across and down
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Compare Two list and sum values based on all matching values and by month

    I interpreted a little differently. I understood you want to include all the items in Summary!$A:$A and include even if they are only part of the strings in Data!$D:$D

    And since you want to also include any additions (automatically?) they are referenced by a dynamic range $A$10:INDEX($A:$A,MATCH("zzzz",$A:$A)) embedded in the formula. It's a bit awkward so I would recommend saving that bit as a dynamic named range (DNR) in Name Manager and reference it by name in your final formula(s).

    Try this in the meantime.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    With that DNR as Element_Names this formula is shorter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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. Index array list based on multiple matching Values
    By Jpidge20 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2018, 09:13 PM
  2. List unique values matching a criteria that has duplicate values
    By Andrewjs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2017, 10:11 PM
  3. Pull Values from List Exluding Matching Values in Second List
    By sskgintl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2014, 09:29 PM
  4. Replies: 5
    Last Post: 10-26-2013, 01:03 PM
  5. Replies: 5
    Last Post: 09-25-2013, 12:31 AM
  6. Highlighting cells based on them matching another list of values
    By david1987 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2012, 08:26 AM
  7. Replies: 8
    Last Post: 05-20-2011, 11:36 AM

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