+ Reply to Thread
Results 1 to 3 of 3

referencing another excel document

  1. #1
    Registered User
    Join Date
    02-09-2008
    Posts
    32

    referencing another excel document

    Hi again,

    Ok, a little bit more complicated this time....

    So i have a master excel document which is updated automatically with data from various sources (not by me, by someone much cleverer!!). This would be saved in a static location and not moved.
    I want to create a new and separate excel document which references the other document. Is this a Macro?

    Now its get a bit more tasty....

    On the new document I want to reference specific cells on the master document.
    The cells exact location may change so would need to lookup specific x & y axis headings.
    Eg
    Sales Calls
    Barry 5 1
    Steve 10 3
    Phil 7 4
    I would need to reference "Barry" & "Calls" to retrieve the figure "1".

    I'm pushing myself here but life isn't supposed to be easy!!!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: referencing another excel document

    You'll need to use the INDEX and MATCH functions.
    Let's say your workbook with your data is called ReTable.xls and names are in A2:A4, sales and calls are in B1:C1 with your data in B2:C4.
    In your new workbook, you have Barry in A1, and Calls in B1. In C1
    Please Login or Register  to view this content.
    Does this work for you?

    The first MATCH finds out what row Barry is in your data and the second looks at Sales or Calls.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-09-2008
    Posts
    32

    Re: referencing another excel document

    works a treat. Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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