+ Reply to Thread
Results 1 to 8 of 8

Index(match not pulling only 2 of five records

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Index(match not pulling only 2 of five records

    I am using Excel 2007.

    I have a database sheet (Employees) and a Lookup sheet to prevent damage to the database sheet. The old script that only pulls two names out of a max of five names. The new script only returns "#N/As.

    OLD SCRIPT: =IF(F3,"","",VLOOKUP(F3,Employees!A1:G250,4,0) and thought this new formula would populate with the information I need displayed:

    NEW SCRIPT:
    =INDEX(Employees!$A$1:$E$250,MATCH($A1,Employees!$B$1:$B$250,0),1) =INDEX(Employees!$A$1:$E$250,MATCH($A1,Employees!$B$1:$B$250,0),2) =INDEX(Employees!$A$1:$E$250,MATCH($A1,Employees!$B$1:$B$250,0),3) =INDEX(Employees!$A$1:$E$250,MATCH($A1,Employees!$B$1:$B$250,0),4) =INDEX(Employees!$A$1:$E$250,MATCH($A1,Employees!$B$1:$B$250,0),5)

    Any suggestions on how to make this work? I have attached a sample of the format I am looking for. Thanks for any guidance.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Index(match not pulling only 2 of five records

    Lookup2.xlsx

    Hi mmayna

    Does the attached help?
    Regards,

    jeversf

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index(match not pulling only 2 of five records

    try with a helper like this
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Index(match not pulling only 2 of five records

    Jeversf,

    Thanks for your recommendations. I see it works on your sample back. I will go and test it on the copy of my live forms to see how it performs.

    I still have much to learn. I will get back to you as soon as I test it completely.

    Michael

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index(match not pulling only 2 of five records

    maybe jeversf will come back and explain how to enter array formulas ?

  6. #6
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Index(match not pulling only 2 of five records

    martinwilson,

    Thanks for your recommendation also. I will try them both to see the difference.

    Both seem to work on the sample I provided. The real test will be on the test forms.


    Michael

  7. #7
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Index(match not pulling only 2 of five records

    Thank you. Your rememded changes worked 100%.

  8. #8
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Index(match not pulling only 2 of five records

    I liked your recommended changes. My database sheet changes daily, and I thought the helper feature would be to cumbersome to manage. I still like it and retain it for possible future use.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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