+ Reply to Thread
Results 1 to 5 of 5

Building a lookup table with 3 variables/3 answers

  1. #1
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Building a lookup table with 3 variables/3 answers

    Hi I'm a new user of excel 2007 with basic skills.
    I'm trying to figure out how best to build a table to do:

    IF A1="yes", "no", "na" and
    IF B1="yes", "no","na" and
    IF C1="yes","no","na" then
    "AT" or "IC" or "VE"

    So, I need a table that can look up responses to three questions, then lookup the corresponding answer (AT, IC or VE). Some of the combinations of anwers will yield the same anwer (i.e: yes, yes, yes=AT and yes,yes,no=also AT). I'm trying to come up with the most probable answer by evaluating these three questions; Thus; 10 combinations will yield an answer of "AT", 10 combo will yield "IC" and 7 combo will yield "VE"

    I've done this with 2 variables, but can't seem to get it to work with three...

    Thanks and looking forward to any assistance & advice.
    Last edited by Dannypak; 03-26-2009 at 12:13 PM. Reason: to comply forum rules..

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Vlookup

    The Mods will probably be after you for violating the forum rules re. your post title. So plan on changing it to something that more accurately identifies the problem.

    In the meantime, your logic appears to be beyond understanding here. You have three questions, each with three possible answers, this gives you 27 possible answer combinations. How do you resolve this into just three (AT,IC,VE) results? Please be more descriptive in what you're trying to do.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Re: Building a lookup table with 3 variables/3 answers

    Thank you for calling out the "title" mistake, I hope this revision is in compliance...

    I've edited my question to be more clear; that some combinations will yield the same answer. For example of the 27 combinations 10 will yield "AT, 10 will yield "IC" and 7 will yield "VE"

    Thanks again...

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Building a lookup table with 3 variables/3 answers

    Great!

    So if you're willing to structure your lookup table (on a sheet named "Answers") a bit like this:

    Col A ; Col B ; Col C ; Col D ; Col E
    Ans 1 ; Ans 2 ; Ans 3 ; Concat ; Result
    yes ; yes ; yes ; yesyesyes ; AT
    yes ; yes ; no ; yesyesno ; AT
    yes ; no ; na ; yesnona ; IC
    etc.

    In Cell D2 (and copied down) you can use the formula =CONCATENATE(A2,B2,C2)

    You may need to sort your lookup table by column D to allow efficient use of the VLOOKUP formula.


    Once the lookup table is built, just use columns D and E as the source for your VLOOKUP formula like this:

    Please Login or Register  to view this content.
    HTH
    Last edited by ConneXionLost; 03-25-2009 at 06:57 PM.

  5. #5
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Thumbs up Re: Building a lookup table with 3 variables/3 answers

    Wow!! "bow" "bow"
    I'm amazed!!!
    It works, it would have taken me days (if never) to find this solution.

    Thank you very much!

+ 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