+ Reply to Thread
Results 1 to 22 of 22

Pulling information from another workbook

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Pulling information from another workbook

    Hello,

    I am here looking for advice as to what the best thing to do with my problem.
    The problem itself is that I have a drop down box with a large list of companies.
    The requirement is that when one of these companies is selected the company information will appear in a couple of other cells below that drop down box. The data is in another workbook. I looked at an IF function that said if this company is in the box then display its information in this cell, but I can't put more than seven nested if statements in one cell.
    So my question is this a VBA solvable problem or is there another function I can use?

    Thanks you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Pulling information from another workbook

    You could use a lookup table.

    If you want specific advice, then provide sample workbooks.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another sheet

    I must apologise I meant a different sheet

    but here is an example of my problem as the data is private

    I can't find go advanced

  4. #4
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    I found it but doesn't seem to be working

    Basically in one sheet (sheet1) I have a drop down list with 6 lines of data in:

    Gigantic Company
    Huge Company
    Big Company
    Medium Company
    Small Company
    Tiny Company

    Below that I have a cell which will have the data in.

    Then in another sheet (sheet2) I have the data for each company

    So how do I pull that data in to that single cell in sheet 1?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Pulling information from another workbook

    Please read what I said before:

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Go Advanced is bottom right in the edit post window.

  6. #6
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    I tried doing what you said and it still doesn't allow me to attach a file.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Pulling information from another workbook

    What error message are you getting?

  8. #8
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    I go through the 'Go Advanced' link, then to the 'Manage Attachments' link and there are no instructions, just the standard manage attachments page, which doesn't work

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Pulling information from another workbook

    At the top there is an upload dialog - you need to browse to the file on your computer and add it there, then click on upload, then save.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pulling information from another workbook



    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  11. #11
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    I choose a file to upload, I then click upload and I get an error message saying 'Please select a file to upload'
    I will try from a personal device

  12. #12
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28
    My personal device seems to have worked
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Pulling information from another workbook

    Is that what you want?
    but with this example and to see how it works you'll need PowerQuery and macro enabled workbook

  14. #14
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Pulling information from another workbook

    Sandy powerquery will work great if eventually you still want to pull out even more information.

    If it is just pulling out Sheet2 column C data, maybe you can look at vlookup or index match to retrieve the data.

    Under Sheet1 D5, try insert this =IFERROR(INDEX(Sheet2!C:C,MATCH(Sheet1!D3,Sheet2!B:B,0)),"")

  15. #15
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    The actual data set is around 60 entries, so what would be the best approach?

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pulling information from another workbook

    60 columns or 60 rows?
    doesn't matter - you can use PowerQuery as well

  17. #17
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    So say what I had in sheet2 Gigantic Company - 10000
    Huge Company - 5000
    etc
    I have 60 rows of data like that

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pulling information from another workbook

    and where is the problem?

    attach representative example excel file

  19. #19
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28
    So here is another example of my data. In all on sheet two i have around 60 entries.

    On sheet one i have a dropdown box with those companies on sheet 2 listed.

    When a user selects a company from that list, the the cell highlighted on sheet one, the data for that company would appear from sheet two

    And is there a way of doing it without powerquery?
    Thank you
    Attached Files Attached Files

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Pulling information from another workbook

    ok, here is an example with 100 companies and values
    with duplicates or not
    selected company in PivotTable will be highlighted on the list - sheet1

  21. #21
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    28

    Re: Pulling information from another workbook

    Just wanted to say I solved the issue with an index match function, I suppose VLookup would have worked too.

    With theses functions I was able to keep my design.

    Much appreciated for all your help!

  22. #22
    Registered User
    Join Date
    02-17-2018
    Location
    Bowling Green, KY
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Pulling information from another workbook

    I'm not sure if you have found your answer or not but I am currently doing something very similar to this. I used the vlookup function to have it pull the name of the company, the contact, address and phone number to certain cells when I selected a certain city. My equation looked like this:
    =VLOOKUP(H7,LOCATIONS2!A1:F7,1,False)
    Basically H7 had the city I wanted to equation to reference, LOCATIONS2! is the worksheet & A1:F7 is the table array, 1 is the column it will find the answer in, False prevents anything that doesn't match 100% from being pulled over.
    Like I said, this may not work for you but it works for me when I'm needing to pull their mailing info over for each city I select.

+ 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: 2
    Last Post: 06-05-2017, 11:27 AM
  2. Replies: 0
    Last Post: 10-19-2015, 11:27 AM
  3. Pulling information from one tab to another
    By narffran in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2015, 10:10 AM
  4. [SOLVED] Need some help pulling information
    By andyaf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 03:57 PM
  5. Replies: 2
    Last Post: 09-18-2014, 10:11 AM
  6. Pulling relative information from a seperate workbook
    By Effteekay in forum Excel General
    Replies: 2
    Last Post: 07-09-2009, 11:45 AM
  7. Pulling Information off another workbook
    By natepen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2007, 12:41 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