+ Reply to Thread
Results 1 to 7 of 7

H Lookup in different folders - display whole column

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2016
    Posts
    11

    H Lookup in different folders - display whole column

    Hi there,

    I am trying to do the following thing with Excel: I have a couple of folders in an Excel file and in these folders, I put company names. These companies are evaluated in their respective column, one after the other, in their respective folder.

    Instead of browsing through these folders in search of the right company to see the results, I would just like to enter any company name in a separate folder (a sort of interface) and afterwards, Excels searches with an H Lookup in the different folders until he finds the company name in the horizontal and gives me all the information from the respective column.

    Two problems: Excel only wants to give me one specific value, e.g. from the cell 1 or 2 or 3. And Excel does not want to look in several folders for the company name.


    I tried my luck among other formulas with the following one:

    =IF(ISERROR(HLOOKUP(K13;'2'!B1:K2;2;WRONG));HLOOKUP(K13;'3'!B1:K2;2;WRONG));HLOOKUP(..


    If the company's name were in this case in the second folder to look in for, Excel would only give the second value (but the aim stays the whole column..). But the research in the first folder does not work at all.


    Or is there perhaps a totally different approach? E.g. by using macros?


    For any kind of help, I would be quite grateful!


    Thanks a lot,
    Simon

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: H Lookup in different folders - display whole column

    Hi and welcome to the forum

    I would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,664

    Re: H Lookup in different folders - display whole column

    Change WRONG into FALSE
    Maybe that wil help.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: H Lookup in different folders - display whole column

    Good catch popip, I took that to be a range name, but a range name wont really fit there anyway

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: H Lookup in different folders - display whole column

    Hey,

    thank you for your answers! I attached a sample file so that you can see what I am talking about.

    So the worksheet one shall be the interface, where the result one a chosen company will be shown. The wanted company can be chosen in the dropdown list.

    Then, a hlookup formula should scan the different work sheets for the company's name and should, when it found the company, not only display one value (like cell2 or 3), but the whole column of the respective company.

    (in case if this is possible in Excel, I also want the evaluation scheme displayed, see dropdown list sector, because the criteria vary depending on the sector(=work sheets like finance, transport))



    So thanks again for looking at it!!
    Simon
    Attached Files Attached Files

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: H Lookup in different folders - display whole column

    can you look at the attachment.
    index/match with indirect

    file1 (2).xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Registered User
    Join Date
    10-08-2013
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: H Lookup in different folders - display whole column

    Thank you very much for your answers! It put me on the right track to resolve the problem!

+ 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 unique value in column A then display todays date eight columns across ??
    By michaelproctor001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 11:14 AM
  2. [SOLVED] Lookup column and display last text entry
    By Spankyf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2012, 02:36 PM
  3. Replies: 4
    Last Post: 03-30-2010, 04:17 PM
  4. Replies: 2
    Last Post: 01-01-2010, 06:20 PM
  5. Lookup values in a column and display them in order with no gaps
    By Snaggle22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 07:07 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