+ Reply to Thread
Results 1 to 5 of 5

INDEX & MATCH Function

  1. #1
    Registered User
    Join Date
    12-13-2007
    Posts
    30

    INDEX & MATCH Function

    It's me again and seeking your expertise. Please review attachment.

    My first tab consists of data for various products from various Districts and it also has a grand total for all districts, which is the "System" total. Cells that have the System data are not always "absolute".

    For my second tab, I have a summary table that I would like these "System" total to transfer too by using the Index & Match function but I'm not sure why it doesn't work.

    =INDEX(DATA!A2:D119,MATCH(A3,DATA!A2:A119,1),MATCH(DATA!B113,DATA!B2:B119,3))

    Gracias. Excellicious
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Washington, DC
    Posts
    103
    There are a couple of problems with your formula... First the index function is (Array, Row, Column). The way you have the formula set up you are putting your results in row then column, but in actuality you want Row + Row, and a 1 for column. The second problem is that you are just trying to match the subcategory to all of the B column and the match will likely return the wrong entry.

    The formula below matches the a3 cell then adds to it the match for the sub category. But it uses the indirect function to define an array of data starting with that row and ending below the button of the table. With match and third argument of 0, you will get the first result found.



    =INDEX(DATA!C:C,MATCH($A$3,DATA!$A$2:$A$119,1)+MATCH($B3,INDIRECT(CONCATENATE("Data!B",MATCH($A$3,DATA!$A$2:$A$119,0)+1,":B700")),0),1)

  3. #3
    Registered User
    Join Date
    12-13-2007
    Posts
    30
    Thank you for your time and efforts.

    I tested your formula and it gave me a "#NAME?"?? Back to the drawing board.


    Excellicious.

  4. #4
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Washington, DC
    Posts
    103
    for some reason the copy and paste added an extra space in MATCH and in DATA. If you remove them, it works.

  5. #5
    Registered User
    Join Date
    12-13-2007
    Posts
    30
    Yeah..It works so cheers to you!!! Thank you for kind assistance. Now I can go to bed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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