+ Reply to Thread
Results 1 to 7 of 7

Link formula to a different workbook

  1. #1
    Forum Contributor
    Join Date
    06-15-2014
    Location
    The great border City of Carlisle, England
    MS-Off Ver
    2010
    Posts
    123

    Link formula to a different workbook

    Hi all, I would like to extract data from one workbook into another to be able to summerise the data, the formula I have below works when in the same workbook but I need help to get the data from 1 workbook in to another.

    I know that the sheet 1 is where it will change:

    Here is the location of the file to extract the data from: C:\Users\Richard\Downloads\Excel\Examples

    and here is the name of the workbook to extract the data from:Number of alarms and finds by plant.xlsx

    Formula that works in the same workbook: =SUMIF(Sheet1!$C$3:$C$15,$F3,Sheet1!D$3:D$15)

    Thank you for your help

    Lewster

  2. #2
    Forum Contributor
    Join Date
    06-15-2014
    Location
    The great border City of Carlisle, England
    MS-Off Ver
    2010
    Posts
    123

    Re: Link formula to a different workbook

    Edited post
    Last edited by Lewster; 04-30-2016 at 04:22 AM.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Link formula to a different workbook

    This should work:
    SUMIF('C:\Users\Richard\Downloads\Excel\Examples\[Number of alarms and finds by plant.xlsx]Sheet1!$C$3:$C$15,$F3,'C:\Users\Richard\Downloads\Excel\Examples\[Number of alarms and finds by plant.xlsx]Sheet1!D$3:D$15)

    but it makes for a very long formula. It won't look so big if the file is open!

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Forum Contributor
    Join Date
    06-15-2014
    Location
    The great border City of Carlisle, England
    MS-Off Ver
    2010
    Posts
    123

    Re: Link formula to a different workbook

    Yes it is very long and the formula above did not work but... what you said about the sheet being open made me think, I then just used = to copy a cell from the workbook I want the data from and then looked at and used part of the formula it gave me.

    I then inserted part of the formula I already had for the calculation and it gave me an error on the F3 part of the formula as it was using F3 from the sheet I was using rather than F3 in the workbook I wanted to extract the data from, so adjusted again and below is the formula that works.

    Thank you for your help and for getting my brain thinking.
    Lewster

    SUMIF('[Number of alarms and finds by plant.xlsx]Sheet1'!$C$3:$C$15,'[Number of alarms and finds by plant.xlsx]Sheet1'!$F3,'[Number of alarms and finds by plant.xlsx]Sheet1'!D$3:D$15)

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Link formula to a different workbook

    SUMIF requires that the source file be open. Use SUMPRODUCT instead. The source file does not need to be open.

    =SUMPRODUCT(--('[Number of alarms and finds by plant.xlsx]Sheet1'!$C$3:$C$15='[Number of alarms and finds by plant.xlsx]Sheet1'!$F3),'[Number of alarms and finds by plant.xlsx]Sheet1'!D$3:D$15)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    06-15-2014
    Location
    The great border City of Carlisle, England
    MS-Off Ver
    2010
    Posts
    123

    Re: Link formula to a different workbook

    Quote Originally Posted by Tony Valko View Post
    SUMIF requires that the source file be open. Use SUMPRODUCT instead. The source file does not need to be open.

    =SUMPRODUCT(--('[Number of alarms and finds by plant.xlsx]Sheet1'!$C$3:$C$15='[Number of alarms and finds by plant.xlsx]Sheet1'!$F3),'[Number of alarms and finds by plant.xlsx]Sheet1'!D$3:D$15)
    Awesome, Thanks Tony.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Link formula to a different workbook

    You're welcome!

+ 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: 3
    Last Post: 09-25-2014, 12:28 PM
  2. Replies: 0
    Last Post: 01-28-2014, 02:45 PM
  3. [SOLVED] Formula contains a link to a closed workbook?
    By matt323 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2014, 05:02 AM
  4. [SOLVED] Link formula referring to other workbook keeps changing.
    By leaning in forum Excel General
    Replies: 14
    Last Post: 06-07-2013, 03:15 AM
  5. MACRO - Will Insert Link to Another Cell in the Workbook with a Particular Formula
    By charitycoffee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 02:34 PM
  6. Excel 2007 : change a link to another workbook by formula
    By gaspaccho in forum Excel General
    Replies: 1
    Last Post: 07-02-2010, 07:29 AM
  7. Link A Cell In O ne Workbook To A Formula In Another Workbook
    By Minitman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-04-2005, 02:15 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