+ Reply to Thread
Results 1 to 4 of 4

Match or Lookup multiple approximate values from a table

  1. #1
    Registered User
    Join Date
    02-19-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    2

    Match or Lookup multiple approximate values from a table

    I apologize if this is not right place to ask this question. Also i went through couple of existing thread on MATCH/INDEX, but doesn't seem to solve my problem.

    Here is my sample data

    Test A Test B Test C Result
    1 1 1 A
    1 2 2 B
    2 1 1 c
    2 2 2 D


    Based on input values like Test A=1, Test B=2, Test C=1, I would like to see either A or B which is almost nearer since the actual match doesnt exists. I tried this formula, but guess something is wrong with it.

    =INDEX(D1:D5,MATCH(1,(A1:A5="1")*(B1:B5="2")*(C1:C5="1"),1))
    or
    =INDEX(D1:D5,MATCH(1,(A1:A5="1")*(B1:B5="2")*(C1:C5="1"),-1))

    It would be great, if someone can help me out in getting the result.

    Thanks for your time

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

    Re: Match or Lookup multiple approximate values from a table

    I think it would be easiest if you set up a side table that shows all possible combinations in one column...and then the associated letter in the next column, then you can use Vlookup()

    e.g..

    If you set up a table, where the 3-digit combos are in one cell and the letter in the next...

    111 A
    112 B
    113 C
    121 D
    122 A
    etcc.

    then

    =Vlookup(A1&B1&C1,$X$1:$Y$100,2,0)

    would lookup the combo made up of A1&B1&C1 in the column range X1:X100 and extra the letter from the coinciding cell in Y1:Y100.
    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
    02-19-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Match or Lookup multiple approximate values from a table

    Thanks for your suggestion. But since the data is bit huge.. I m not sure, if i can put all the combination in another temp table.

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

    Re: Match or Lookup multiple approximate values from a table

    So how else would one know which letter to assign based on your number combination? Is there a pattern of sorts?

+ 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