+ Reply to Thread
Results 1 to 7 of 7

Extracting Data from a closed workbook

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Arrow Extracting Data from a closed workbook

    I am having trouble extracting data to a template from a closed master workbook without having to open then close the master workbook. The template is located in another
    folder and will potentially be on another drive partition. I have tried indexing in the data with both excel files opened in the same window and in separate windows and it don't seem to make a difference.

    The Master File in my example has 11 columns and 10 rows and is formatted as a table called "Data" on a tab also called "Data" in a workbook called "Reference 2017.xlsx."
    The template is called "Worksheet 2017.xlsx." I index on the Part # and pull the other data in from there.

    In the Reference 2017 Master, the parts numbers are in Column "A". This is the data table:

    A B C D E F G H I J K
    Part Number Description Group Attribute-1 Attribute-2 Attribute-3 Attribute-4 Attribute-5 Attribute-6 Special Notes Engine Model
    289770 Widget 1 Bearing Flaws Fit Size Marks OD ID Shielding Measure Extension Model 1
    289771 Widget 2 Bearing Flaws Fit Size Marks OD ID Shielding Measure Extension Model 1
    312224 Widget 3 Gasket Visual Fit Bolt Alignment Thickness - - Stamped Correctly Model 1
    541829-0002 Widget 4 Wheel Verification Notables - - - - Verify Clearances Model 2
    3617026 Widget 5 Pulley Verification Notables - - - - - Model1
    4071583 Widget 6 Line Visual Length Hole Size End Size Blockage Notables New Part Model 1
    4072869 Widget 7 Bearing Flaws Fit Size Marks OD ID Shielding Inspect for Flat Spots Model 1
    4527573 Widget 8 Wheel Verification Notables - - - - Check Against Specs Model 1
    5067535 Widget 9 Line Visual Length Hole Size End Size Blockage Notables Do Pressure Test Model 1

    This is the Worksheet:

    Engine Type __________ =IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),11),"")
    Part Number __________ (ENTER PART NUMBER HERE TO PULL THE REST OF THE DATA IN FROM MASTER LOG)
    Part Description ______________________ =IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),2),"")
    Special Notes _____________________________________ =IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),10),"")

    Attribute ________________________________________ =IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),4),"")

    Attribute ________________________________________=IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),5),"")
    Attribute ________________________________________=IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),6),"")
    Attribute ________________________________________=IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),7),"")
    Attribute ________________________________________=IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),8),"")
    Attribute ________________________________________=IFERROR(INDEX('REFERENCE 2017.xlsx'!DATA[#All],MATCH($E$5,'REFERENCE 2017.xlsx'!DATA[[#All],[Part Number ]],0),9),"")

    When I open the template and enter a Part #, I get no data until I open the Reference 2017.xlsx file, then all of the data autofills. What am I doing wrong? Thanks.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Extracting Data from a closed workbook

    I believe complex formulas will not work with closed workbooks.

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Re: Extracting Data from a closed workbook

    I have tried it without the =iferror formula and it still makes no difference. It's a simple indexing formula.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Extracting Data from a closed workbook

    Here is an old thread on the topic as well
    https://www.excelforum.com/excel-gen...-workbook.html

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting Data from a closed workbook

    Kill the named range. use column references instead. This works fine, using my system:

    =INDEX('C:\Users\DGlenn\Downloads\[REFERENCE 2017.xlsx]DATA'!$K$2:$K$10,MATCH($E$5,'C:\Users\DGlenn\Downloads\[REFERENCE 2017.xlsx]DATA'!$A$2:$A$10,0))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Re: Extracting Data from a closed workbook

    Removing the table and using the reference ranges did the trick. Thank you davesexcel and Glenn Kennedy for the perfect answer. I appreciate the assistance.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting Data from a closed workbook

    You're welcome and thanks for the rep...

+ 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. Export data with two Criteria values from closed workbook to closed workbooks VBA
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2016, 01:56 PM
  2. Extracting Data from Closed workbook
    By ueranda in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-23-2016, 10:27 AM
  3. [SOLVED] Extracting values from latest closed workbook into current workbook?
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2015, 09:34 PM
  4. extracting data from closed workbook
    By sark in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-20-2014, 01:18 AM
  5. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  6. Extracting Data - Open vs Closed
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2006, 04:09 PM
  7. [SOLVED] Extracting data from a closed workbook
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 10:50 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