+ Reply to Thread
Results 1 to 6 of 6

Embed Index Match into Sumif

  1. #1
    Registered User
    Join Date
    03-03-2015
    Location
    New York
    MS-Off Ver
    2010
    Posts
    17

    Embed Index Match into Sumif

    Hello,

    I have tried searching the board, but have been unable to find an exact match to my question. I am trying to create a sumif formula based on an index match. In the attached file, I need to sum all of the values in "4Q16 Curr P18-49 Imp" (column U) if the Plan Status (column B) is "H". I want to use an index match, because the "4Q16 Curr P18-49 Imp" heading will change based on the filter criteria I am using to generate my reports (eg. next time it might be 3Q16). The answer should be 12,952.

    Thank you in advance for your assistance.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,903

    Re: Embed Index Match into Sumif

    Try this. Put the Column Letter in A1

    =SUMIF($B$4:$B$12,"H",INDIRECT(A1 & 4))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Embed Index Match into Sumif

    Try this...

    T14 = 4Q16 Curr P18-49 Imp

    =SUMIF(B5:B12,"H",INDEX(C5:V12,0,MATCH(T14,C4:V4,0)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-03-2015
    Location
    New York
    MS-Off Ver
    2010
    Posts
    17

    Re: Embed Index Match into Sumif

    Thank you Tony. This worked. Much appreciated!!!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Embed Index Match into Sumif

    You're welcome. Thanks for the feedback!

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,903

    Re: Embed Index Match into Sumif

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

+ 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. Sumif with Index Match
    By Anurodh123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2016, 02:01 AM
  2. [SOLVED] Embed left function in match/index function
    By Kyle18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2016, 05:17 AM
  3. [SOLVED] SumIF(Index(Match))
    By jo15765 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-06-2015, 12:21 PM
  4. [SOLVED] SUMIF with INDEX and MATCH
    By andikeep2580 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-03-2015, 11:29 PM
  5. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  6. Match index and Sumif
    By Katherine Venn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2012, 02:31 PM
  7. Index Match and SUMIF
    By xirokx in forum Excel General
    Replies: 3
    Last Post: 09-05-2008, 09:18 AM

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