+ Reply to Thread
Results 1 to 18 of 18

Lookup value from different lists and return different results

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Lookup value from different lists and return different results

    Hello,

    Thanks for looking at my thread. I have attached a file here. I have the result on column R to T. I have 3 lookup lists on column A, C, E.

    If column Rx = column A, then lookup value from column H to I, value 2, then

    If column Rx = column C, then lookup value from column K to L, value 2, then

    If column Sx = column E, then lookup value from column N to O, value 2

    I hope I explain it well enough.

    Thanks for the help.

    Jackson
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Lookup value from different lists and return different results

    Hi Jackson- Questions:
    1) What is meant by "value 2"? The second data row within the relevant column?
    2) Where do you want the formula? Column T, row by row?
    3) Rx,Sx - is x a variable row? How does that work?
    Last edited by leelnich; 06-05-2017 at 12:10 AM.

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Lookup value from different lists and return different results

    leelnich,

    Q1) The value 2 = value from second column . Example: from column H to I , data from column I
    Q2) The formula should be in column T. These are the result I want
    Q3) Rx = R column and x = row. For example= R1, R2, R3....

    Thanks for the help.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Lookup value from different lists and return different results

    In T2 and copy down:
    =IFERROR(VLOOKUP(R2, H:I, 2, 0),0)+IFERROR(VLOOKUP(R2, K:L, 2, 0),0)+IFERROR(VLOOKUP(S2, N:O, 2, 0),0)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-05-2017 at 12:42 AM.

  5. #5
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    427

    Re: Lookup value from different lists and return different results

    Not the most elegant solution..

    Im sure this can be done much easier using MMULT..not familiar with that function ..

    Value in T2 = =INDIRECT(ADDRESS(SUM(N(($H$1:$O$12=$R2)*ROW($H$1:$O$12))),SUM(N($H$1:$O$12=$R2)*COLUMN($H$1:$O$12))+1))

    To be array entered ( Ctrl+Shift+Enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Lookup value from different lists and return different results

    Still not sure I understand. This returns the values the upload indicates. It must be array entered in T2 and filled down. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  7. #7
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Lookup value from different lists and return different results

    leelnich,

    Sorry. It should be only one

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Lookup value from different lists and return different results

    @ LLN
    Yes there is one AS 10 but two AS10 ... My formula only returns the first number in column I ... 40 and does it twice. Same as upload.

  9. #9
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Lookup value from different lists and return different results

    chullan88,

    Thanks for the reply. The formula works on the list for column H and K, but doesn't work for N. The column T works from row 2 to 15, but not work on row 16, 17 and 18.

    Thanks for the help.

    Jackson

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Lookup value from different lists and return different results

    Actually, they differ. One has a trailing space, but none of the Rx match it. Didn't really matter, this works:
    In T2 and copy down:
    =IFERROR(VLOOKUP(R2, H:I, 2, 0),0)+IFERROR(VLOOKUP(R2, K:L, 2, 0),0)+IFERROR(VLOOKUP(S2, N:O, 2, 0),0)

    (Also shown in post #4, post-script)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-05-2017 at 12:52 AM.

  11. #11
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Lookup value from different lists and return different results

    Dave,

    Your formula works perfectly.

    Thanks for the help.

    Jackson

  12. #12
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    427

    Re: Lookup value from different lists and return different results

    Sorry, missed that part

    In that case, the formula would stretch to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Array Entered

    FlameRetired's solution is much better...

  13. #13
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    427

    Re: Lookup value from different lists and return different results

    Quote Originally Posted by leelnich View Post
    Actually, they differ. One has a trailing space, but none of the Rx match it. Didn't really matter, this works:
    In T2 and copy down:
    =IFERROR(VLOOKUP(R2, H:I, 2, 0),0)+IFERROR(VLOOKUP(R2, K:L, 2, 0),0)+IFERROR(VLOOKUP(S2, N:O, 2, 0),0)

    (Also shown in post #4, post-script)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Excellent solution mate! It was so simple

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Lookup value from different lists and return different results

    Quote Originally Posted by leelnich View Post
    Actually, they differ. One has a trailing space, but none of the Rx match it.
    Another good catch!

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Lookup value from different lists and return different results

    @ Jackson
    You are welcome. Thanks for the feedback.

  16. #16
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Lookup value from different lists and return different results

    Thank you all, happy to help!

  17. #17
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Lookup value from different lists and return different results

    chullan88,

    Thanks for the help.

    Jackson

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,435

    Re: Lookup value from different lists and return different results

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lookup a Value and Return Multiple Results
    By tigeravatar in forum Tips and Tutorials
    Replies: 13
    Last Post: 04-08-2016, 04:44 PM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. Lookup a Value and Return Multiple Results
    By sgtkikass in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-06-2014, 10:06 PM
  4. Lookup & return Multiple Results
    By benishiryo in forum Excel Tips
    Replies: 2
    Last Post: 07-11-2012, 10:11 AM
  5. Replies: 3
    Last Post: 01-24-2007, 05:38 AM
  6. [SOLVED] lookup and return values using lists
    By bundes73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2006, 04:00 PM
  7. Return Multiple Results with Lookup
    By Josh O. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2005, 05:06 PM

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