+ Reply to Thread
Results 1 to 7 of 7

Formulas with Names in another Excel Spreadsheet

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Formulas with Names in another Excel Spreadsheet

    I am using formulas with names in another Excel 2007 spreadsheet, like this:

    =AVERAGEIFS('Data.xlsx'!MIPS,'Data.xlsx'!YEAR,$A78,'Data.xlsx'!MONTH,$B78,'Data.xlsx'!PERIOD,$A$48,'Data.xlsx'!SERIAL,$G$48,'Data.xlsx'!SYSTEM,G$49)

    However it is only working when the input DATA.xls spreadsheet is opened. When I close it, it is not recognizing the Names defined in the Data Spreadsheet.

    I receive the following error when calculating the formula with the input file closed:
    Microsoft Office Excel cannot find 'MIPS' on 'Data.xlsx'. There are two possible reasons:
    The name you specified may not be defined.
    The name you specified is defined as something other than a rectangular cell reference.
    Check the name and try again.

    The above error occurs for all defined names.
    The names are all correct, as I said the formula is working only when the input DATA is opened.

    Can anyone help me please?

    Thanks!
    Last edited by trizzo; 04-11-2012 at 12:51 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas with Names in another Excel Spreadsheet

    Hi Trizzo,

    Try inputting complete file path in the formula... thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: Formulas with Names in another Excel Spreadsheet

    The complete path is also not working. When I put the full path name it does not recognize the Names inside it. Here is the same formula above with full path which is not working:

    =AVERAGEIFS('C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!MIPS,'C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!YEAR,$A78,'C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!MONTH,$B78,'C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!PERIOD,$A$48,'C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!SERIAL,$G$48,'C:\Documents and Settings\Administrator\Desktop\MAIN\Data.xlsx'!SYSTEM,G$49)
    Last edited by trizzo; 04-11-2012 at 01:21 PM.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas with Names in another Excel Spreadsheet

    Ok.. can you upload both the files.. would suggest you to put both the files in a folder and then zip that folder and upload. thanks


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: Formulas with Names in another Excel Spreadsheet

    The files are attached.

    One is called Data with the Names and Input in it.
    The other one is the Main with the Formula which is not working when the input file is closed and it is highlighted in yellow.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: Formulas with Names in another Excel Spreadsheet

    Looks like it is impossible right? To have names in another spreadsheet and reference it in a formula.
    Last edited by trizzo; 04-11-2012 at 04:18 PM.

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas with Names in another Excel Spreadsheet

    Yes.....!! You got it..

    Scope of defined names are limited to that particular workbook only.. so suggest you to use the range reference instead of defined name in other workbook.. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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