+ Reply to Thread
Results 1 to 5 of 5

Thread: Lookup for values

  1. #1
    Registered User
    Join Date
    11-26-2011
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lookup for values

    Hi all,

    I have a question about lookup value here.

    If I have a table like below, and I wish to know example like what Jamal can do, I want to search Jamal's row which tick with a "X" then display the job he can do. The answer should display Procurement and Finance.

    For Arif, the answer should show Sales, Finance and Warranty.
    For Jane, it should display Sales, Procurement, Finance and Order.

    Please find the attachment at below.

    Can anyone help in this issue?

    Thanks.
    Attached Files Attached Files
    Last edited by xiongling; 11-26-2011 at 06:36 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-14-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    986

    Re: Lookup for values

    The formula might be a little bit long, but it does the trick. Forgot to add trim function to the formula in the file.

    =Trim(IFERROR(INDEX($A$1:$F$1,IF(ISBLANK(B2),"",COLUMN(B2))),"")&" "&IFERROR(INDEX($A$1:$F$1,IF(ISBLANK(C2),"",COLUMN(C2))),"")&" "&IFERROR(INDEX($A$1:$F$1,IF(ISBLANK(D2),"",COLUMN(D2))),"")&" "&IFERROR(INDEX($A$1:$F$1,IF(ISBLANK(E2),"",COLUMN(E2))),"")&" "&IFERROR(INDEX($A$1:$F$1,IF(ISBLANK(F2),"",COLUMN(F2))),""))
    Attached Files Attached Files
    Last edited by JieJenn; 11-26-2011 at 06:57 PM.

  3. #3
    Registered User
    Join Date
    11-03-2011
    Location
    Shelton, CT
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Lookup for values

    Here is an example with vlookup.. this will allow you to build as you go and select a specific employee.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Lookup for values

    Hello xiongling,

    See the attached. If you are using XL2010, you can use AGGREGATE function to avoid Ctrl+Shift+Enter.
    Attached Files Attached Files
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  5. #5
    Registered User
    Join Date
    11-26-2011
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Lookup for values

    Hi all,

    Thanks for reply...

    JieJenn, I got your formula works but is a bit too long if I'm having 100 differents job to assign to the user...

    Haseeb A, I wish your formula can work but I've tried few times also can't get it...Could you please give me a clearer explanation on it? Thanks.

+ 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.2.0