+ Reply to Thread
Results 1 to 2 of 2

How to adjust Formula for 2nd Spreadsheet and to Include File Name

  1. #1
    Registered User
    Join Date
    01-19-2011
    Location
    Metairie, LA
    MS-Off Ver
    Excel 2007
    Posts
    12

    How to adjust Formula for 2nd Spreadsheet and to Include File Name

    I finally have my formula but I need to adjust it to include the File name for my link. I am using Index and Match. It works but for every cell I copy the formula in I have to choose the source file. The formula I am using is this:

    =INDEX([x]Sheet1!$F$2:$F$500,MATCH(1,INDEX(([x]Sheet1!$A$2:$A$500=B$10)*([x]Sheet1!$C$2:$C$500=$H$6),),0))

    I am putting the formula in my spreadsheet called mcc-sample part c.xlsx and I am extracting the data from a spreadsheet called sample e.xlsx, which I am attaching here and you can see how I have the formula enter and working.

    I also need to adjust the formula for the 2nd week to put the values on the 2nd worksheet, 3rd Worksheet, etc.
    Last edited by computerlady143; 05-29-2011 at 07:36 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to adjust Formula for 2nd Spreadsheet and to Include File Name

    Maybe its easier to use a user defined function.

    Create a new module in the VBA editor (Alt F11, Insert - module). Paste in

    Please Login or Register  to view this content.
    In B12 on any of the sheets paste

    =GetValue('[sample%20e(1).xlsx]Sheet1'!$A$2:$A$655,B10,2,$H$6,4)
    Martin

+ 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