+ Reply to Thread
Results 1 to 3 of 3

Auto fill info from one file to another

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    1

    Auto fill info from one file to another

    I have two excel files. The only thing in common between those files is the ExpertID, which is a unique identifier for researchers. Master.xlsx has the ExpertName and ExpertID, DukeResearchers.xlsx only has ExpertID. I need to transfer ExpertNames to DukeResearchers.xlsx The only problem is DukeResearchers.xlsx has more than 85,000 rows of information, and it lists each ExpertID multiple times (as opposed to only once in Master.xlsx).

    For example, Master.xlsx says that John Smith’s ExpertID is 0030, Jane Doe’s ExpertID is 0031, Robert Johnson’s ExpertID is 0032, and so on. DukeResearchers.xlsx will list 0030 thirty times, 0031 a hundred times, and 0032 twenty-five times. The number of times an ExpertID is listed depends on how many publications the expert has, so 0030 has thirty publications. I need to fill in the name John Smith for all 0030, Jane Doe for all 0031, Robert Johnson for all 0032…..except over 85,000 times. Is there a formula that will allow me to do this?

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Auto fill info from one file to another

    Welcome to this forum, I hope you'll find all the help you need here.
    Here is a formula that you would put in DukeResearchers.xlsx workbook.
    I assumed the expertID was in column A and the ExpertName in column B in the Master.xlsx workbook. If not, you can change the reference in the formula.
    I also assumed the ExpertID was in column A in the DukeResearchers.xlsx workbook. Place the formula in any column you want in the workbook.
    Please Login or Register  to view this content.
    I must warn you that 85000 formulas like this will slow you Excel application unless you have a really fast computer.
    The nice thing about Excel and this formula is that it is not necessary to have the Master file open to update the values in the DukeReseachers workbook. You'll be prompted to update them when you will open it.
    Hope this helps
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    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
    52,944

    Re: Auto fill info from one file to another

    Agree that this formula could tend to slow things down, but I suggest you avoid using entire column ranges, and restrictthe range to what you need.

    Try this instead...

    =VLOOKUP(A2,[Master.xlsx]Sheet1!$A$1:$B$100000,2,FALSE)
    this will reduce the range to about 1% compared to a column range
    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

+ 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. Weekly Employee Schedule auto fill day info
    By timmiller420 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-12-2016, 06:43 PM
  2. want to auto-fill info using an Excel invoice
    By llabnip in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-13-2011, 05:38 PM
  3. Auto fill Info into a cell
    By esupply in forum Excel General
    Replies: 2
    Last Post: 11-23-2009, 02:33 PM
  4. Replies: 4
    Last Post: 01-27-2009, 12:11 PM
  5. Replies: 2
    Last Post: 08-22-2008, 12:13 AM

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