+ Reply to Thread
Results 1 to 8 of 8

Sumifs combined with index/match

  1. #1
    Registered User
    Join Date
    01-09-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    53

    Sumifs combined with index/match

    Hello,

    Can someone please help me setup the formula which would automatically sum the values in columns (A,B,C,A,B) per date in Table 1, and output the result in Table 2 (in A,B,C columns) as seen in yellow highlighted solution in attached file.

    For example Table 1 has two A columns, Table 2 has only one A column. The sum of two A columns should be in Table 2.

    I was trying to set up with sumifs and index/match functions but perhaps there is a better/ easier method.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Sumifs combined with index/match

    Use this formula in J3:

    =SUMIFS($C3:$G3,$C$2:$G$2,J$2)

    then you can copy it across and down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-09-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    53

    Re: Sumifs combined with index/match

    Apologies, perhaps i wasnt very clear, the columns in Table 1 can change hence i'd need sth which would always find a column A,b or C in Table 1 and sum it. Only columns in Table 2 are static. Hence i was using sumifs with index and match.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Sumifs combined with index/match

    The formula looks at the headings in row 2 of columns C to G and compares them with the heading in column J (and K and L when copied across), so I don't see what the problem is.

    Pete

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs combined with index/match

    is this acceptable?

    With Power Query

    Date
    A
    B
    C
    A2
    B3
    01/01/2022
    1
    2
    3
    4
    5
    01/02/2022
    1
    2
    3
    4
    5
    01/03/2022
    1
    2
    3
    4
    5
    01/04/2022
    1
    2
    3
    4
    5
    01/05/2022
    1
    2
    3
    4
    5
    01/06/2022
    1
    2
    3
    4
    5
    01/07/2022
    1
    2
    3
    4
    5
    01/08/2022
    1
    2
    3
    4
    5
    01/09/2022
    1
    2
    3
    4
    5
    Date A B C
    01/01/2022
    5
    7
    3
    01/02/2022
    5
    7
    3
    01/03/2022
    5
    7
    3
    01/04/2022
    5
    7
    3
    01/05/2022
    5
    7
    3
    01/06/2022
    5
    7
    3
    01/07/2022
    5
    7
    3
    01/08/2022
    5
    7
    3
    01/09/2022
    5
    7
    3
    Date
    C
    B
    A2
    A
    B3
    01/01/2022
    3
    2
    4
    1
    5
    01/02/2022
    3
    2
    4
    1
    5
    01/03/2022
    3
    2
    4
    1
    5
    01/04/2022
    3
    2
    4
    1
    5
    01/05/2022
    3
    2
    4
    1
    5
    01/06/2022
    3
    2
    4
    1
    5
    01/07/2022
    3
    2
    4
    1
    5
    01/08/2022
    3
    2
    4
    1
    5
    01/09/2022
    3
    2
    4
    1
    5
    Date A B C
    01/01/2022
    5
    7
    3
    01/02/2022
    5
    7
    3
    01/03/2022
    5
    7
    3
    01/04/2022
    5
    7
    3
    01/05/2022
    5
    7
    3
    01/06/2022
    5
    7
    3
    01/07/2022
    5
    7
    3
    01/08/2022
    5
    7
    3
    01/09/2022
    5
    7
    3
    Excel table not tolerate the same headers so there is A,A2 etc.

  6. #6
    Registered User
    Join Date
    01-09-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    53

    Re: Sumifs combined with index/match

    Thank you Pete & Sandy. Pete's solution will do for now!

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Sumifs combined with index/match

    sure,
    have a nice day

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Sumifs combined with index/match

    Thanks for the rep, and if that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Isnumber & index match - can they be combined?
    By BSando in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2022, 08:42 AM
  2. [SOLVED] Excel 2013: Need solution using VLOOKUP combined with SUMIFS or INDIRECT/MATCH
    By rarascon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2018, 08:28 PM
  3. [SOLVED] INDEX MATCH with MAX and MIN Combined
    By Paul.Thompson in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2018, 07:34 AM
  4. Index/Match combined with Count
    By andvan in forum Excel General
    Replies: 2
    Last Post: 02-12-2017, 09:49 AM
  5. Combined count if and index match
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2016, 12:00 PM
  6. INDEX , MATCH ,INDIRECT Combined usage example - Pls
    By TKD in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2012, 09:32 AM
  7. INDEX, MATCH, and IF functions combined
    By veeeSix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2012, 01:28 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