+ Reply to Thread
Results 1 to 7 of 7

multiple lookup

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    42

    multiple lookup

    I have two sheets, 1st sheet contains data and second sheet result.

    in second sheet I want the data for cell C2 to C18 appear based on C1 where C1 is a list.

    In short if sheet RESULT C1=M then sheet RESULT C2=DATA!P2

    Excel sheet is attached

    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,688

    Re: multiple lookup

    Try ....

    =INDEX(DATA!$D$2:$P$18,MATCH($B2,DATA!$C$2:$C$18,0),MATCH(RESULT!C$1,DATA!$D$1:$P$1,0))

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,227

    Re: multiple lookup

    Hi siddiqsh and welcome to the forum,

    John's answer is perfect but you can also use a match function in a VLookup formula like

    =VLOOKUP(B2,DATA!$C$2:$P$18,MATCH(RESULT!$C$1,DATA!$D$1:$P$1,0))

    See both formulas in the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    42

    Re: multiple lookup

    thanks for quick response,
    Johns reply works perfectly
    When I try marvins method it returns Result!B2 as answer. i am looking into it as where i am doing mistake.
    how do I mark it as solved
    Last edited by siddiqsh; 08-27-2015 at 05:47 PM.

  5. #5
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    42

    Re: multiple lookup

    Hi Marvin,
    if I select A in sheet Result!C1, it returns AAA in front of AAA whereas it should return 0.27
    Quote Originally Posted by MarvinP View Post
    Hi siddiqsh and welcome to the forum,

    John's answer is perfect but you can also use a match function in a VLookup formula like

    =VLOOKUP(B2,DATA!$C$2:$P$18,MATCH(RESULT!$C$1,DATA!$D$1:$P$1,0))

    See both formulas in the attached.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,227

    Re: multiple lookup

    Sorry I was one off in my columns... Try this instead

    =VLOOKUP(B2,DATA!$C$2:$P$18,1+MATCH(RESULT!$C$1,DATA!$D$1:$P$1,0))

  7. #7
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    42

    Re: multiple lookup

    thanks, now it is perfect
    Quote Originally Posted by MarvinP View Post
    Sorry I was one off in my columns... Try this instead

    =VLOOKUP(B2,DATA!$C$2:$P$18,1+MATCH(RESULT!$C$1,DATA!$D$1:$P$1,0))

+ 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. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  2. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  3. [SOLVED] Multiple lookup adding columns, then multiplying, then lookup, add, and subtract
    By mamig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2013, 12:55 AM
  4. Lookup Data in One Column, Find Multiple Entries in Next, Copy to Multiple Columns
    By nzxt1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:17 AM
  5. Lookup adjacent column to multiple lookup columns.
    By JAMES4228 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2009, 03:19 PM
  6. Replies: 3
    Last Post: 10-10-2005, 01:05 PM

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