+ Reply to Thread
Results 1 to 7 of 7

Referencing a worksheet on the server using VLOOKUP?

  1. #1
    Registered User
    Join Date
    03-20-2008
    Location
    California, USA
    MS-Off Ver
    Excel for the Web, Build 16.0.1
    Posts
    19

    Referencing a worksheet on the server using VLOOKUP?

    Using VLOOKUP, I am trying to reference a value in a worksheet on the server. I've never tried referencing anything on a server and I'm not even sure this will work. Is this even possible? Does the worksheet need to be open or can it remain closed?

    Here, in more detail, is what I'm trying to do (apologies if this is confusing):

    I have two worksheets, one on the server (#1) and one I'm trying to create (#2).

    In worksheet #2, using VLOOKUP and this convention (without quotes) "VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup])"
    , I type in this formula: =vlookup(A1,'[Results.xlsx]Sheet1'!$A$1:$A$10,3,FALSE). A1 is the lookup value from worksheet #2. The Results.xlsx sheet, as well as the range, are for worksheet #1 on the server. I'm also referencing column 3 and looking for an exact match.

    If worksheet #1 is on the server at \\10.XX.XX.XX\Production\Test\Results.xlsx, then how do I reference that in the formula?

    Additionally, the values on worksheet #1 in cells A1:A10 are the results returned by a formula in that worksheet. For example, the formula in A1 might be =SUM(B1:G1). I want to use VLOOKUP to return the result in A1. Also, the result in Column 3 of worksheet #1 is the result of a formula as well.

    Excel is accepting my formula, but it's returning #N/A.

    I'm sure my description is confusing, to say the least, but any help would be greatly appreciated. If you have any questions about anything I've typed, please let me know so I can clarify.

    This community has helped me in the past, and I'm hoping it will be able to help me once again.

    Thank you!

    Chris

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    You just need to use the server location in stead of your hardisk location you nomally use,
    or you can try a easier way, open your excel file on #2, then make the formula you want in #3, then save. Next time you don't need to open the source file again.

  3. #3
    Registered User
    Join Date
    03-20-2008
    Location
    California, USA
    MS-Off Ver
    Excel for the Web, Build 16.0.1
    Posts
    19
    Hope everyone had a great Labor Day weekend! Now that we're all back at work, I'm still having trouble with my file...

    Per your suggestion, I opened up both worksheets and entered the formula into the second worksheet, then saved. Unfortunately, it's still not working -- I believe I'm doing something wrong.

    I've attached a condensed version of the file I'm working on with two sheets to represent the two individual files. The sheets are labeled "On Server" and "On Hard Drive" to represent their physical locations, and I've included file names and locations on lines 1 and 2 of both sheets for reference (NOTE: not actual file names/locations )

    Sheet "On Server" is the one I'm trying to reference in "On Hard Drive". Basically, I'm trying to pull the Yield Percentage for a serial number from the "On Server" sheet.

    I hope I've provided enough information.

    Thanks, again!

    Chris
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    VLOOKUP On Network

    I have used formulas that reference workbooks on the network.
    It does work, but as I understand, when you open your workbook it will ask you in the beginning if you want to update. If you say yes, it will go out and get the required values from the workbook on the network. If the workbook on the network requires a password, it will ask for that, otherwise that workbook doesn't have to be open.

    I fixed the formula on your workbook. In the VLOOKUP formula, you need to define the Array. Your formula had A6:A10 instead of A6:I10.

    I have also pasted a typical reference to a network workbook. The example pated is referencing Cell F4.

    Hope this helps.
    modytrane
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-20-2008
    Location
    California, USA
    MS-Off Ver
    Excel for the Web, Build 16.0.1
    Posts
    19
    Sweeeet! It works! I realized, after seeing your correction to my formula, that I had incorrectly defined the table_array (A6:A10 instead A6:I10).

    I also noticed that the formula automatically inserted the network path to the file after I closed the file residing on the server. Then, when I reopened the server-side file, the network path disappeared and only the file name remained. Very interesting.

    I then copied the formula to the remaining cells in the column of the worksheet on my hard drive and everything displayed correctly!

    Thank you, modytrane and sglife, for your help with my "issue".

    Best Regards,

    Chris

  6. #6
    Registered User
    Join Date
    06-25-2010
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Referencing a worksheet on the server using VLOOKUP?

    Hi

    We are using vlookup in excell 2003, we have all the excell files stored in network server (server1).

    All the excell are accessed from network and updated in network folder only.

    Server1 suddenly crashed, of course we had a backup of all the data.
    We move all the data to new server (server2).

    we maintained the same folder structure of server1 in new server.

    Now the problem we face is in the vlookup formula all the cell values that is refering to server1 is showing Ref error, How do we change the server1 to server2 globally.

    The following is the example of the formula

    =VLOOKUP(B68,'\\Server1\payroll\FORMAT1\2009-10\PAYROLL\Salary Calulcation - 09-10\[July 09.xls]Attendance'!$B$4:$AD$63,12,0)

    Thanks

  7. #7
    Registered User
    Join Date
    06-25-2010
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Referencing a worksheet on network server using VLOOKUP

    Hi

    We are using vlookup in excell 2003, we have all the excell files stored in network server (server1).

    All the excell are accessed from network and updated in network folder only.

    Server1 suddenly crashed, of course we had a backup of all the data.
    We move all the data to new server (server2).

    we maintained the same folder structure of server1 in new server.

    Now the problem we face is in the vlookup formula all the cell values that is refering to server1 is showing Ref error, How do we change the server1 to server2 globally.

    The following is the example of the formula

    =VLOOKUP(B68,'\\Server1\payroll\FORMAT1\2009-10\PAYROLL\Salary Calulcation - 09-10\[July 09.xls]Attendance'!$B$4:$AD$63,12,0)

    Thanks

+ 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: 8
    Last Post: 08-05-2008, 01:19 PM
  2. concatenate a worksheet reference in vlookup
    By delaughd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2008, 01:24 PM
  3. Referencing a calculated value in VLOOKUP and INDEX-MATCH
    By JillianRuth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2007, 08:01 PM
  4. referencing a field in another worksheet
    By ricardi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2007, 10:18 PM
  5. Replies: 2
    Last Post: 05-15-2007, 10:18 AM

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