+ Reply to Thread
Results 1 to 7 of 7

Index match to return a range

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    45

    Index match to return a range

    Hello,

    I am hoping to tweak the Index-Match function to return a range by looking for a column then excluding certain rows so that I can sum it.

    Put it simply I need a formula for the cells highlighted in red below and can be extended to the right.

    Capture.JPG

    Sorry for not uploading a whole excel workbook, there isn't any formula/macro that I need to show/include so I thought I'd keep it simple.

    Any help would be much appreciated and thank you very much in advance!

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Index match to return a range

    Why not group some of the items in the pivot table to "Others", then you'd get just that output?

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Index match to return a range

    Try

    For G7
    =SUM(B3:B11)-SUM(G3:G6)

    For H7
    =SUM(D3:D11)-SUM(H3:H6)

  4. #4
    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,005

    Re: Index match to return a range

    withdrawn by JT
    Last edited by JohnTopley; 10-20-2015 at 08:34 AM.

  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Index match to return a range

    @Jommo1 I need the column to be dynamically looked up with column heading in output table

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Index match to return a range

    Ok, try this in G6 and filled right to H6

    =SUM(INDEX($B3:$D11,0,MATCH(G2,$B2:$D2,0)))-SUM(G3:G6)

  7. #7
    Registered User
    Join Date
    01-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Index match to return a range

    @berlan thanks for the suggestion, but the categorization doesn't always stay the same. ie. next week I might need to exclude another 5 supplier countries. That's why I am hoping to do it by "sum the column if the row label does not equal to ____".

    In other words I started with a SUMIFS and then hoping to make the sum range dynamic, but Index-match function forces me to name a specific row number.

+ 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. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  2. [SOLVED] Index match value return 1 st cells corresponding to the range
    By silambarasan.J in forum Excel General
    Replies: 6
    Last Post: 04-22-2015, 04:55 AM
  3. [SOLVED] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  4. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  5. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  6. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  7. Replies: 17
    Last Post: 12-05-2012, 09:01 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