+ Reply to Thread
Results 1 to 7 of 7

Sum range between two index-matched values from column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    13

    Post Sum range between two index-matched values from column

    Hi I am trying in vain, to put together Index and Match formula which will sum values from range noted in Column H to Column H, depending on Values in I1 to L1 to table in Column A to E.

    for example in I2 value should be 21 i.e sum of D2 to D4.

    Any help much appreciated, thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Sum range between two index-matched values from column

    For I2 how about
    Formula: copy to clipboard
    =SUMIFS(D:D,A:A,">="&G2,A:A,"<="&H2)

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Sum range between two index-matched values from column

    In I2. Copy to other cells.
    =SUMPRODUCT(INDEX($B$2:$E$7,,MATCH(I$1,$B$1:$E$1,0))*(($A$2:$A$7>=$G2)*($A$2:$A$7<=$H2)))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    08-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    13

    Re: Sum range between two index-matched values from column

    Thank you, works very well

  5. #5
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    273

    Re: Sum range between two index-matched values from column

    One more variant:
    PHP Code: 
    Cell I2 IFNA(SUM(INDEX($B$2:$E$7,MATCH($G2,$A$2:$A$7,0),MATCH(I$1,$B$1:$E$1,0)):INDEX($B$2:$E$7,MATCH($H2,$A$2:$A$7,0),MATCH(I$1,$B$1:$E$1,0))),""

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,418

    Re: Sum range between two index-matched values from column

    Formula
    =IFERROR(SUM(INDEX($B$2:$E$7;MATCH($G2;$A$2:$A$7;0);MATCH(I$1;$B$1:$E$1;0)):INDEX($B$2:$E$7;MATCH($H2;$A$2:$A$7;0);MATCH(I$1;$B$1:$E$1;0)));"")
    Attached Files Attached Files

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Sum range between two index-matched values from column

    Here is an other option (only using SUM)

    Please try this formula and copy down and right:
    Formula: copy to clipboard
    =SUM($B$2:$E$7*(I$1=$B$1:$E$1)*($G7<=$A$2:$A$7)*($H7>=$A$2:$A$7))
    Attached Files Attached Files
    Last edited by HansDouwe; 09-07-2022 at 03:04 AM.

+ 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. Copy range to another Workbook if values are found (matched)
    By JovanAndelkovic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2022, 05:52 AM
  2. Replies: 3
    Last Post: 10-11-2020, 10:00 PM
  3. [SOLVED] shift range of values if criteria is matched
    By XtremeMaC in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-04-2020, 03:26 AM
  4. Index Match with multiple matched values
    By lalahaedong_excel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-18-2014, 11:57 AM
  5. Replies: 12
    Last Post: 12-28-2012, 07:49 PM
  6. Replies: 4
    Last Post: 12-04-2012, 04:45 PM
  7. Replacing Range of Values with a Matched Range of Values
    By Avi8or in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 10:04 PM

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