+ Reply to Thread
Results 1 to 10 of 10

Inserting names from another workbook

  1. #1
    Registered User
    Join Date
    07-07-2016
    Location
    Ottawa, Ontario
    MS-Off Ver
    2010
    Posts
    9

    Inserting names from another workbook

    Good morning,

    I have a master workbook that contains all data related to an employee. We also have 12 sectors within our organization and what I would like is a formula that will insert all the names from one of the 12 sectors into another workbook which contains certain columns and formulas.

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Inserting names from another workbook

    Sounds like you need VLOOKUP or INDEX(MATCH())) but without any examples or specifics of what cells contains the data all we can provide is a general answer.

    Attach a sample spreadsheet with expected results, remove any sensitive data. Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Inserting names from another workbook

    Hi -

    It's hard to understand the problem from the information given. Can you simply have both workbooks open and then simply reference the cells with the names you are looking for in the master workbook from the other workbook?
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  4. #4
    Registered User
    Join Date
    07-07-2016
    Location
    Ottawa, Ontario
    MS-Off Ver
    2010
    Posts
    9

    Re: Inserting names from another workbook

    I have uploaded the result spreadsheet as per your instruction, hope you see it and thank you for your time
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Inserting names from another workbook

    OK - I'm looking at your file and I see a column for Name. Is there a specific search criteria? How do I know what name to put in each row of Column A?

  6. #6
    Registered User
    Join Date
    07-07-2016
    Location
    Ottawa, Ontario
    MS-Off Ver
    2010
    Posts
    9

    Re: Inserting names from another workbook

    Sorry, it needs to match what is in cell J1 called AEB, this is the sector name.

    Thanks

  7. #7
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Inserting names from another workbook

    OK - So each of the 12 names will have a cell next to it with "AEB" in it? And are all 12 names on one spreadsheet in this other workbook? Are the 12 names in subsequent rows going down? For Example:

    Bob
    Jane
    Joe
    Cindy

  8. #8
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Inserting names from another workbook

    Can we not have a copy of the other spreadsheet uploadeed, or even a mocked up version?
    Then we wouldnt need to be asking what the other spreadsheet looks like.

    The usual procedure would be to say:
    I have uploaded this spreadsheet here
    and uploaded this one here
    These are the results I want
    and this is how those results are obtained.

    Then the questions would be kept to a minimum.
    Last edited by Special-K; 03-01-2017 at 12:47 PM.

  9. #9
    Registered User
    Join Date
    07-07-2016
    Location
    Ottawa, Ontario
    MS-Off Ver
    2010
    Posts
    9

    Re: Inserting names from another workbook

    Thank you for the quick reply, unfortunately it contains too many sensitive information, it has 43 columns and 252 rows, but the Sector name is in column A and the employee name is in column B. I would like to insert the names from column B that matches the sector name in column A into the spreadsheet that I uploaded earlier.

    Thanks again for all your help

  10. #10
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Inserting names from another workbook

    OK -

    Attached are two spreadsheets. You original that I have modified with an array formula to extract a unique list of names that reside in the second attached spreadsheet, based on 1 criteria. It looks like this:

    =IFERROR(INDEX('I:\Jeff\XLF\[XLF Two Workbooks - Master Table.xlsx]Sheet1'!$B$2:B$10,MATCH(0,IF('I:\Jeff\XLF\[XLF Two Workbooks - Master Table.xlsx]Sheet1'!$A$2:$A$10=$J$1,COUNTIF($A$4:$A4,'I:\Jeff\XLF\[XLF Two Workbooks - Master Table.xlsx]Sheet1'!B$2:B$10),""),0)),"")

    As I said, this is an array formula, so to engage the Array functionality, from the formula edit window, you have to push Ctrl-Shift-Enter at the same time. YOu will know if you did it right if Excel places curly braces {} around the formula.

    Since I know nothing about your Master Workbook, you will have to do the work of making this formula idea work with your spreadsheets.

    One final note, both the master spreadsheet and the results spreadsheet must be open for this to work. If the master spreadsheet isn't open, you will just get blanks.

    Hope this helps!

+ 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. [SOLVED] List in dynamic combobox which shows open workbook names and workshee names
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2016, 06:09 AM
  2. Inserting a list of names then printing
    By james.mainwaring in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 02:03 PM
  3. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  4. [SOLVED] inserting worksheet names into a formula
    By Xpind in forum Excel General
    Replies: 2
    Last Post: 05-16-2012, 10:22 AM
  5. Inserting numbers in cells next to certain names
    By antonyjones101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2009, 03:24 PM
  6. Inserting variables within file names
    By kestrel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2006, 03:10 PM
  7. removing and inserting duplicate names
    By gerrior in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-11-2005, 10:05 PM

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