+ Reply to Thread
Results 1 to 4 of 4

create Lookup Function

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    100

    create Lookup Function

    Hi, have data concerning documents people have to write, which is updated weekly. Is there a way of looking up a name and then returning all the documents that they have to write. I have tried a vlookup, but this only returns the first entry and not the lot. Also i would prefer the document data for each person to be returned in to one cell. Is this possible? Thanks
    Attached Files Attached Files
    Last edited by stevewilde; 09-02-2009 at 09:37 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: create Lookup Function

    If you fill the empty cells in column A of the Raw Data sheet with relevant names, then you can use this UDF and apply it to get your concatenated lookups...

    Add this code to a module in your workbook...

    Please Login or Register  to view this content.
    Then apply this formula in B2 of Results sheet

    Please Login or Register  to view this content.
    adjust ranges to suit your raw data and confirm it with CTRL+SHIFT+ENTER and not just ENTER and then copy it down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    100

    re: create Lookup Function

    What do you mean by add to a module - do you mean create a macro...forgive my lack of knowledge

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: create Lookup Function

    Yes...

    Hit Alt+F11 for the VBE editor, go to Insert|Module and paste the code.. then on the sheet apply the formula.

+ 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