+ Reply to Thread
Results 1 to 8 of 8

Trying to use a cell to refference a workbook.

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Unhappy Trying to use a cell to refference a workbook.

    Hi I have workbooks which are numbered numerically 1-600 am trying to use a cell in a different workbook which will reference on of those 600 workbooks and bring data from each one individualy.
    I have been tring to use this formula but I think its not allowing me to add the .xls please help.
    =INDIRECT("\\gammanas\gamma\Job Cost\Gamma\GAMMA 2015\JOB COST\"&E18".xls"&"!C38")

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Trying to use a cell to refference a workbook.

    Try (untested):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And you might need to add some single quotes in there to cater for spaces in the workbook and/or worksheet name.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Re: Trying to use a cell to refference a workbook.

    Thanks for the fast reply however I get #ref error in the formula the E18 refers to a cell with 108 in it which I need to refer to 108.xls with the path I have provided.

  4. #4
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Re: Trying to use a cell to refference a workbook.

    Wat I think I found the problem I havn't refered to a sheet name, how would I include that in the Formula.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Trying to use a cell to refference a workbook.

    I think you need to be aiming for the formula to evaluate to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    so, on that basis, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note the square brackets around the workbook name (as opposed to the full path).

    If it doesn't work with the target workbook closed, try opening it and refreshing the formula.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Re: Trying to use a cell to refference a workbook.

    Thanks again for the fast reply. The first formula without indirect is working and is bringing across the value.But the formula with indirect is still giving #ref error.
    Which is still a problem because I need it to automatically take and use the job number to find the excel workbook.

  7. #7
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Re: Trying to use a cell to refference a workbook.

    Unless im using the wrong function to do this.

  8. #8
    Registered User
    Join Date
    06-20-2014
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    19

    Re: Trying to use a cell to refference a workbook.

    Ok I got it working is there any way it can update without me opening up the other workbook otherwise it gives me #ref error.

+ 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] Returning a 0.0 value from =PRODUCT when refference to a cell containing =IMDIV
    By imafridguitar in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-10-2014, 02:34 AM
  2. [SOLVED] Retrieve Cell refference of text
    By Dave Breda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2013, 08:06 AM
  3. Save worksheet with a cell refference upon opening workbook
    By murthykr72 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2010, 09:13 PM
  4. sum rows with refference to cell mentioned
    By dpm_tripathi in forum Excel General
    Replies: 1
    Last Post: 09-09-2009, 09:05 AM
  5. dynamic cell refference
    By chriskar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2006, 10:08 AM
  6. Improper refference.
    By harbir in forum Excel General
    Replies: 2
    Last Post: 03-30-2006, 09:20 AM
  7. Refference Unbound Text Box
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2005, 04: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