+ Reply to Thread
Results 1 to 13 of 13

Updating lookups from a closed spreadsheet

  1. #1
    Registered User
    Join Date
    12-10-2020
    Location
    US
    MS-Off Ver
    2016
    Posts
    5

    Updating lookups from a closed spreadsheet

    Hello All,

    I feel like I could figure this out but would rather save myself time.

    I created templates for our sales people to use to enter their forecasts into. They supply 3 fields and then there are about 10 fields that based on the part number lookup in a separately maintained master reference file by part. I'd like for them to be able to see as they plug in there parts that the lookups pull the correct info or if N/A they know they need to go to the master to fill in that new part.

    Curious if there is a way to do this without have everyone have to open the spreadsheet for the lookups to work for them.

    Thanks,

    CMO

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Updating lookups from a closed spreadsheet

    What formula are you using for the lookups? INDEX, MATCH, VLOOKUP will work on a closed file.

  3. #3
    Registered User
    Join Date
    12-10-2020
    Location
    US
    MS-Off Ver
    2016
    Posts
    5
    Using vlookup but can use anything. The lookup is referencing a separate, closed workbook though. I want the file to update without needing the closed file open.
    Last edited by AliGW; 12-11-2020 at 01:58 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    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,929

    Re: Updating lookups from a closed spreadsheet

    Quote Originally Posted by cmoexcel View Post
    Using vlookup but can use anything. The lookup is referencing a separate, closed workbook though. I want the file to update without needing the closed file open.
    As 6string just told you, INDEX, MATCH, VLOOKUP will work on a closed file.
    have you tried them at all?
    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

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Updating lookups from a closed spreadsheet

    Quote Originally Posted by cmoexcel View Post
    Using vlookup but can use anything. The lookup is referencing a separate, closed workbook though. I want the file to update without needing the closed file open.
    Let me try again. What formula are you using for the lookups? VLOOKUP works on a closed file.

  6. #6
    Registered User
    Join Date
    12-10-2020
    Location
    US
    MS-Off Ver
    2016
    Posts
    5

    Re: Updating lookups from a closed spreadsheet

    I must not be explaining something correctly.

    My fields in column A,B,C are handoff time, part number and quantity. Based on part number, columns E-L vlookup into a mapping table which is in it's own workbook and closed.

    If I enter a new row of a data into the table and don't have the mapping table file open, all columns E-L say are "#REF!". If I go open the closed mapping file, they then map and I'm all good.

    But I'm trying to avoid having 10 people open that file.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Updating lookups from a closed spreadsheet

    I have requested to see the formula twice. I can't help any further without seeing something concrete.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Updating lookups from a closed spreadsheet

    Perhaps you have an INDIRECT function within your VLOOKUP formula (which you haven't quoted to us, by the way), and if so this will NOT work with closed workbooks.

    Without seeing a sample workbook, or just the formula that you are having problems with, then it is all just a guessing game.

    Hope this helps.

    Pete

  9. #9
    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,929

    Re: Updating lookups from a closed spreadsheet

    cmoexcel...SHOW us - here, what formula/s you are using please

  10. #10
    Registered User
    Join Date
    12-10-2020
    Location
    US
    MS-Off Ver
    2016
    Posts
    5

    Re: Updating lookups from a closed spreadsheet

    Sorry everyone - newbie here. Attached a sample of the workbook.
    Attached Files Attached Files

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Updating lookups from a closed spreadsheet

    Here's the formula:

    =IFNA(VLOOKUP([@[Part Number]],'\\VALUEADDCO.COM\dfs\DPW\Departmental\Sales\AUTOMOTIVE\Part Mapping\Part Mapping Master.xlsx'!CurrentParts_Table[#Data],7,FALSE),VLOOKUP([@[Part Number]],'\\VALUEADDCO.COM\dfs\DPW\Departmental\Sales\AUTOMOTIVE\Part Mapping\Part Mapping Master.xlsx'!CurrentParts_Table[[SECONDARY PART NUMBER]:[Angies Report]],6,FALSE))

    Now at first glance it seems to me that should work, but I can't do much with it since I don't have the Part Mapping Master.xlsx file. Two possibilities occur to me:

    The referenced file appears to be on another server, and external references might not work over a network. I have not tried it so I can't say for sure.
    The references are to tables. A VLOOKUP to a table in a closed file failed in my test, although using a range reference to the same data worked.

    So apparently there are some limitations to the ability of VLOOKUP to work on a closed file.

    The first thing I would try is to change the table references to range references. I would have provided that formula but cannot do that without your master file. If that does not work, the the only other option I can think of is VBA that opens the file for the user automatically or uses ADO to retrieve data from a closed file.

  12. #12
    Registered User
    Join Date
    12-10-2020
    Location
    US
    MS-Off Ver
    2016
    Posts
    5

    Re: Updating lookups from a closed spreadsheet

    Hi 6 String,

    Attached is dummy copy of the mapping for that part with all sensitive data removed.

    The files are both on the same network, so I don't think that is the issue.

    What is ADO?
    Attached Files Attached Files

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Updating lookups from a closed spreadsheet

    ADO is a protocol that treats a closed Excel file as if it were a database. ADO calls can read data from a closed Excel workbook, although IIRC not Excel formatting or other details.

    First I would suggest rewriting your formula to use range references instead of table references. That is the easiest thing to try first and might work.

+ 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. Spreadsheet Using SQL Tables and Lookups
    By penny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2017, 10:37 AM
  2. I need another way of updating and reading a closed workbook
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 05:10 PM
  3. Replies: 0
    Last Post: 02-23-2012, 10:57 AM
  4. Updating Indirect with Closed Workbook
    By robgardner15 in forum Excel General
    Replies: 4
    Last Post: 07-08-2011, 07:26 AM
  5. Using a userform for updating from closed workbook
    By ge0rge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2009, 07:20 AM
  6. [SOLVED] Updating links to closed workbooks
    By goofy11 in forum Excel General
    Replies: 0
    Last Post: 03-23-2006, 12:35 PM
  7. [SOLVED] Updating closed excel files
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2005, 04:06 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