+ Reply to Thread
Results 1 to 4 of 4

Index Match with Multiple Top Level Entities

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    Portland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Index Match with Multiple Top Level Entities

    Hello,

    I have a raw data form that will change every month depending on expenses (some months, there will be spending on consultants, some months there will not be). Additionally, the expenses are partitioned so Subsidiary A will have a line item for consultants for say $100, as will Subsidiary B, but for $30. As such, I am trying to build a dynamic array that encompasses all of the raw data but can also distinguish between Subsidiary A and B.

    The two tabs in the attached should explain it all. In column B, I have an INDEX MATCH formula but it is constrained to a set of cells. If next month, there are additional expenses, I will have to manually change the range; something I'm obviously hoping to avoid.

    Any help is appreciated and please let me know if there any follow up questions. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match with Multiple Top Level Entities

    For this formula to work, you do need to add the word TOTAL below the data on the Raw Data sheet after you drop the data in, just type TOTAL in column A below the data.

    Put this formula in B3, then copy across all the white cells in your table:

    =IFERROR(INDEX(INDEX('Raw Data'!$B:$B,MATCH(B$1,'Raw Data'!$A:$A,0)):INDEX('Raw Data'!$B:$B,MATCH(C$1,'Raw Data'!$A:$A,0)-1),MATCH($A3,INDEX('Raw Data'!$A:$A,MATCH(B$1,'Raw Data'!$A:$A,0)):INDEX('Raw Data'!$A:$A,MATCH(C$1,'Raw Data'!$A:$A,0)-1),0)), "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    Portland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Index Match with Multiple Top Level Entities

    Could you explain why "Total" had to be included in column A just for my own understanding?

    Appreciate your help and solving this!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match with Multiple Top Level Entities

    A unique RANGE of cells is being evaluated using the HEADERS in row 1 of the table where you're putting the formula.

    SO B3 is creating a range that indexes all the values between the Allan Corp and Beta Corp, look in the formula and you'll spot references to cells B1 and C1, that's the formula spotting those cells in the Raw Data table and using ONLY those cells in between.

    When you copy that formula to the right those references change to use the headers at the top of the current row and the row to the right. So the last column it won't work because the header in the column to the right is "TOTAL" and that was missing from the data. Simply typing it in makes it work for all columns including the last one, poor man's fix.


    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. [SOLVED] INDEX/MATCH (multiple critera in multiple rows and columns)
    By swma in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 10:02 AM
  2. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 AM
  3. summing an index(match,match) over multiple spreadsheets
    By andyjoewalnutt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-31-2013, 03:15 PM
  4. Index, Match, and Vlookup across multiple worksheets using multiple entries
    By sajanpatel15 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2013, 08:33 PM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM

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