+ Reply to Thread
Results 1 to 6 of 6

Lookup Multiple Columns to Produce Result

  1. #1
    Registered User
    Join Date
    06-19-2008
    Posts
    10

    Lookup Multiple Columns to Produce Result

    I need a formula to lookup 3 columns cell data, map it to a table, then produce a result.

    Ill try explain this as easily as possible

    If column A = 0, E will produce a 0

    If column A = 1, it will then look at column B and C and produce the tables results in E
    Attached Files Attached Files
    Last edited by SpAnKy; 05-12-2010 at 11:25 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup Multiple Columns to Produce Result

    You might want to elaborate on the logic used to generate the values in E.

    It would seem that:

    A = 0 then E = 0

    else

    C = 0 then E = 6

    else

    B = 0 then E = 0
    B = 1 then E = 7
    B = 2 then E = 2
    B = 3 then E = 1

    =IF(A1=0,0,IF(SIGN(C1),CHOOSE(B1+1,0,7,2,1),6))

    If there is some other logic please detail it.

    (it's not clear what happens for 1 - 0 - 0 ... is this 0 or 6 ?)
    Last edited by DonkeyOte; 05-12-2010 at 03:18 AM.

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Lookup Multiple Columns to Produce Result

    Hi,

    Not enough detail - can you explain the logic of the results in column E?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    06-19-2008
    Posts
    10

    Re: Lookup Multiple Columns to Produce Result

    Ok i have changed the file to represetn exactly what im trying to achieve.

    Basically I have a number in Extension, it has 3 values assigned to it in 9001,9002,9003.. I then want the AKYD column in Yellow to return the matching result from the AKYD column in the table to the right.

    There is no logic in how these values are represented, It is how 2 different phone systems produce a ringing result on certain keys on a phone. Basically a table reference.

    So if extension 2010 has 9001=1, 9002=2, 9003=1, then I need 2010 AKYD = 2

    I hope this makes it more clear.

    Thanks
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-19-2008
    Posts
    10

    Re: Lookup Multiple Columns to Produce Result

    that works donkeyote. Thanks very much. Now I am having problems incorporatin that into another forumala, But I will make a new thread for that.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup Multiple Columns to Produce Result

    Given your use of XL2007 and the fact that the return values are numeric (AKYD values) you could also consider using SUMIFS, eg:

    E2: =SUMIFS($P$2:$P$9,$L$2:$L$9,$B2,$M$2:$M$9,$C2,$N$2:$N$9,$D2)
    copied down

    You might find this a more logical approach and it requires no logic other than a reference table.

+ 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