+ Reply to Thread
Results 1 to 4 of 4

Subtotal with index and match function

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    Sweden
    MS-Off Ver
    MS Office 365 Mac and Windows
    Posts
    94

    Subtotal with index and match function

    Hello forum,
    Im trying to get the matching values of a filtered set using subtotal. I can't get the index - match to work with subtotal it does not use the filtered set.

    I have put an example where I want to get the name from the value of subtotal, if there are more than one that has the filtered value I am happy if it picks the first name in the list.
    Is there a way to apply conditional formatting for the resulting name as well so it will be easier to find in the list?

    The wanted result is written manually in E column with red text.


    Thanks
    Attached Files Attached Files
    Last edited by soreno; 11-16-2019 at 06:10 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Subtotal with index and match function

    Administrative note
    Hi
    your profile indicates XL2003 . Is this still the case? If not, please upgrade your profile accordingly. Thanks

  3. #3
    Registered User
    Join Date
    03-08-2010
    Location
    Sweden
    MS-Off Ver
    MS Office 365 Mac and Windows
    Posts
    94

    Re: Subtotal with index and match function

    Ahh yes, updated now. Thanks for the reminder

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Subtotal with index and match function

    Try the following:
    1. (2011 Mac version) For E1 and dragged down to E2: =INDEX(B$8:B$41,AGGREGATE(15,6,(ROW(A$8:A$41)-ROW(A$7))/(E$8:H$41=C1),1))
    (2007 PC version) For E1 and dragged down to E2*: =INDEX(B$8:B$41,SMALL(IF(E$8:H$41=C1,ROW(B$8:B$41)-ROW(B$7)),1))
    *Denotes an array entered formula which is confirmed by simultaneously pressing the Ctrl, Shift and Enter keys before copying.
    2. For E3 and dragged down to E4: =INDEX(B$8:B$41,MATCH(C3,M$8:M$41,0))
    Let us know if you have any questions.
    Last edited by JeteMc; 11-19-2019 at 02:35 PM. Reason: Added formula
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 7
    Last Post: 10-03-2019, 11:23 AM
  2. [SOLVED] Index/Match/Min/ABS Function needs to ignore one value in the index.
    By pronghorn in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-16-2019, 02:04 AM
  3. How to apply an Index.Match.Match function to all entries in a Listbox on a User Form
    By jason.drozd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-25-2018, 01:54 AM
  4. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  5. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  6. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  7. Replies: 3
    Last Post: 06-17-2013, 12:37 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