+ Reply to Thread
Results 1 to 7 of 7

Return multiple values from another workbook, based on Column Headers in other workbook

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Return multiple values from another workbook, based on Column Headers in other workbook

    Hello,

    Hopefully I can explain this throroughly.

    I have 4 different regions as column headers in cells A1,B1,C1,D1. These are in Workbook 1

    I have another workbook, workbook 2, that has Regions in Column A, Countries in Column B and Customer Codes in column C.

    I want to have a formula that uses A1(South America) in workbook 1, looks it up in column A:A in workbook 2 and returns ALL the matching customer codes in C:C that are in South America in A2 to A(however many country codes there are)

    I then want to drag this formula to the right so that it will return all the customer codes for each Column Header.

    Thanks in Advance.

    Mike

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

    I believe the following should apply:
    HTML Code: 
    Please click the * icon below if I have helped.

  3. #3
    Registered User
    Join Date
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

    Thank you, but this is more of what I am referring to. The data will be updated as new customers are added, I am trying to have the chart on sheet 2 be dynamic and update with any updates of information. (I will be using those lists of customers by region to create drop down lists elsewhere)

    Example.xls

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

    I took the solution I provided on the other thread, and applied it here.
    Is this what you are looking for? If not, can you specify what you want sheet2 to display?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

    Thank you for the help. I'm taking what you've done and trying to work wtih it. I'm trying to avoid having to constantly drag formulas, and manually enter a number in column A when customers are added

    A little additional information. The sheet with the regions etc. is a reference sheet. Whenever a new customer is added, someone will go in and fill in the information for the new customer across all colulmns(much more than just the region, country, name, but just keeping it simple here). Adding a formula column to the left, may make people think they're supposed to enter that information when adding a new dealer. I'm trying to make this idiot proof, and sustainable with as little modification as necessary.

    Most my other formulas pulling from this reference are dynamic arrays for entire columns. They pull from the reference sheet and I never have to worry about expanding any formulas down to include any new dealers that are added. The information you provided, someone would need to go in, expand the formula down every time additional dealers are added. It's over 100 currently and growing.

    Any suggestions to avoid this? In the meantime I will be using your idea hopefully as inspiration.

  6. #6
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

    I'm guessing what i provided a few days ago WAS what you were looking for.
    I hid Column A. Hopefully that will avoid confusion.
    I also made the formulas in the reference sheet, and the references in the sheet2 reference 2000 lines. You can increase that if needed, but it sounds like that will be safe.If you reference entire columns, you are referencing 65000 lines, which can substantially slow down the file. you can change it to A:A, but $a$2:$a$2000 should work.
    If this solution works for your request, make sure to change the status to "solved" (top right corner under thread tools).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Return multiple values from another workbook, based on Column Headers in other workboo

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


    This was more what I was looking for. I understand I need to set large parameters for this, but it avoids having to create extra columns. Thank you so much for your assistance. I will keep you're method in mind for other projects.

+ 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