+ Reply to Thread
Results 1 to 5 of 5

Need data cross-referenced in multiple tables: VLOOKUP vs. Match vs. Index

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    Texas
    Posts
    12

    Need data cross-referenced in multiple tables: VLOOKUP vs. Match vs. Index

    I've got a sheet whose structure isn't the best, but that I c can't change without causing ripples that break lots of other stuff. In one area, several items from various categories are listed, and I need to sort those out and use their locations in another page to get some descriptive data. Unfortunately, the categories the objects fall in aren't defined in a central spot.

    For example, if the data is

    Animals
    Please Login or Register  to view this content.
    It wouldn't be a problem except for those pesky mammals, which are defined in another sheet as being cats, dogs, or horses. For instance:

    Please Login or Register  to view this content.
    * I can't just use the full table, because there are a lot of rows I don't want to pick up, like this one.

    I need to somehow convert that data into a single sheet listing cats, dogs, and horses along with their other traits like color. I had the idea of adding another column to the first table which would tell the animal's actual type (pulled via lookup from the third table). Then I'd use that row to grab the animals one at a time. For instance:
    Please Login or Register  to view this content.
    I could then use that column to construct my subsets.
    Dogs
    Please Login or Register  to view this content.
    Until I've exhausted the possibilities (there will never be more than 15 dogs, so I can just search 15 times and leave blanks where needbe.

    Unfortunately, the distinction between vlookup, hlookup, match, and index has me unsure which to use where.

    Any help would be greatly appreciated.
    Last edited by James McMurray; 08-05-2008 at 10:08 AM. Reason: title change

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules. Then please update your title according to our Rule # 1.
    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.

  3. #3
    Registered User
    Join Date
    07-10-2008
    Location
    Texas
    Posts
    12
    Sorry about that. It's fixed.

    I figured out the first half, and now have a table similar to
    Please Login or Register  to view this content.
    Can anyone point me to a good iterative search technique that would let me split that table out into 3 subsets:

    Dogs
    Fido
    Spot
    Spike

    Cats
    Sprinkles
    Tom
    Top Cat

    Horses
    Mr. Ed
    Bossie
    Flicka

    I can get the first row with
    Please Login or Register  to view this content.
    And the match portion of that will tell me which row it was on. But I'm not sure how to convert that row number into a usable cell number so that subsequent searches know to start farther down. For example, the first horse is on row 6 of the search, cell Y9. So the next search shouldn't start until Y10. I've tried variations on the EVALUATE function, but with no luck.

    Any ideas?

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

    Please Login or Register  to view this content.
    this formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear around it.

    Then copy down as far as you want.

    You will need to change "Dog" to "Horse" and "Cat" for the other extracts.

    Note: I assume the strings "Dog", "Horse", "Cat" are in range Y3:Y6000 of Data! sheet.

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    Texas
    Posts
    12
    Thanks a million! That did the trick!

+ 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