+ Reply to Thread
Results 1 to 8 of 8

INDEX / Match formulas

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    London , England
    MS-Off Ver
    Excel 2007
    Posts
    40

    INDEX / Match formulas

    Hi,

    I have a list of data which I need to index and match into another tab. Unfortunately, I cannot manage the formula as I'm not used to the format of the data list which needs to remain intact.

    In the data list, I have a table for each year (highlighted in red) and in each table, I have 8 clients (column A in blue) and a value attributed (column G yellow).
    In the result tab, I need to match the data list value to the client in column A and year in row 1

    I have tried the below to no avail.

    =INDEX('DATA LIST'!A2:A35,MATCH(RESULT!A2,'DATA LIST'!A2:G36,0),MATCH(B1,'DATA LIST'!G3:G10:'DATA LIST'!G15:G22:'DATA LIST'!G27:G34,0))

    I have attached a spreadsheet as an example. Any help is highly appreciated.
    Attached Files Attached Files
    Last edited by Sophster; 03-11-2011 at 01:17 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: INDEX / Match formulas

    This is obviously a simplified example so I have some questions.
    1. Will the same clients always appear on each table in your data list? or will new ones be added and possibly old ones drop off?

    How big is the actual data? I'm thinking of naming each table by year and then using Indirect.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: INDEX / Match formulas

    Try:

    =INDEX('DATA LIST'!$A$2:$G$35,MATCH(RESULT!B$1,'DATA LIST'!$A$2:$A$35,0)+MATCH($A2,'DATA LIST'!$A$2:$A$35,0)-1,7)

    copied across the table.

    This assumes the clients are consistent amongst the tables.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    12-14-2010
    Location
    London , England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: INDEX / Match formulas

    Thanks you both for your quick replies!

    Chemist B, for now the client should remain consistent but this may change later, so any suggestion would be sure of a great help.

    NBVC. thank you for the formula, it works on year 1, but not on year 2 &3. I cannot point out why?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: INDEX / Match formulas

    Try this formula in B2

    =VLOOKUP($A2,OFFSET(INDIRECT(ADDRESS(MATCH(B$1,'DATA LIST'!$A:$A,0),1,,,"DATA LIST")),2,0,8,7),7,FALSE)

    You'll need to change that "8" to whatever # of clients you have.
    Does that work?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: INDEX / Match formulas

    See attached:
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-14-2010
    Location
    London , England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Thumbs up Re: INDEX / Match formulas

    Both formulas are working perfectly! Many thanks for all your help!!

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: INDEX / Match formulas

    NBVC's is more efficient as long as you always have the same clients in the same order on each table.

+ 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