+ Reply to Thread
Results 1 to 7 of 7

Vlookup with more than single Column Index

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    136

    Vlookup with more than single Column Index

    Can Vlookup use multiple column index. How can I solve my problem depicted in attached file? Is there any solution?
    Attached Files Attached Files
    Last edited by sumonrezadu; 01-25-2010 at 09:35 AM.

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

    Re: Vlookup with more than single Column Index

    There's probably a more elegant way but I extended your lookup table out to column I with H and I having alternate potential names for your vehicles and then your formula becomes (dragged down)
    Please Login or Register  to view this content.
    Hopefully you don't have more than 3 synonyms for each car/truck. Note, this formula can be shortened if you are using Excel 2007.
    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 martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup with more than single Column Index

    i dont think you need the v look up just use a countif with wildcard for each
    =COUNTIF($B$28:$B$60,"*207 di*")
    =COUNTIF($B$28:$B$60,"*lp 407*")
    "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
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Vlookup with more than single Column Index

    Using your sample file, one approach might be:

    Please Login or Register  to view this content.
    adjust ranges to suit.

  5. #5
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    136

    Re: Vlookup with more than single Column Index

    Thanks a lot for the quick solve.

  6. #6
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    136

    Re: Vlookup with more than single Column Index

    Thanks a lot for your reply

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup with more than single Column Index

    sumonrezadu, could you please take a moment and update your profile with your Office version. Some solutions will be different depending on what version you are using and we want to make sure to provide the best solution for you the first time when you ask your next question.

    cheers.

+ 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