+ Reply to Thread
Results 1 to 6 of 6

Linking a formula to named ranges in another workbook

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    6

    Angry Linking a formula to named ranges in another workbook

    Hi All,

    Any help would be appreciated.

    I have a Target and Source workbooks. I am using a formula to access a named range in the target workbook but I get a SPILL error as well as an excel message advising the formula is incorrect and to check my named ranges etc.

    Here is the formula I have in the target workbook:
    =SUMPRODUCT('c:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]'!SDatePaid>=$F$1)*('C:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]'!SDatePaid<=$G$1)*(MONTH(SDatePaid)=7)*(SAmtPaid).

    Hoping someone can see the error!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Linking a formula to named ranges in another workbook

    Hi Tetnus and welcome to the forum,

    So you have a named range in your other workbook named "sDatePaid" and you have the same named range in your open workbook? What is the error message? We really need two workbooks to help much. Read the yellow top section on this page.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Linking a formula to named ranges in another workbook

    Hi MarvinP,
    I've attached the samples.
    Last edited by Tetnus; 04-15-2020 at 08:04 PM.

  4. #4
    Registered User
    Join Date
    09-04-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Linking a formula to named ranges in another workbook

    Hi, MarvinP,

    Here is the formula I have tried (different from above). I'm getting the Spill error.

    =SUMPRODUCT('C:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]'!SDatePaid>=$F$1)*('C:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]'!SDatePaid<=$G$1)*(MONTH('C:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]'!SDatePaid=7)*('C:\Users\kent\OneDrive\Documents\Surefact\Invoices\[1 Invoice+Expenses.xlsm]P&L'!SAmtPaid))

    In the spreadhseet samples Source.xlsm has been renamed for upload from[1 Invoice+Expenses.xlsm] and Target.xlsm is where the formula is executed from.

  5. #5
    Registered User
    Join Date
    09-04-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Linking a formula to named ranges in another workbook

    Hi MarvinP,

    Please delete reference. I got around the issue another way with the end result I was looking for.
    Thanks anyway.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Linking a formula to named ranges in another workbook

    Great news!! I saw that long formula you were using and was just starting to try to understand it. Now - no need.

    Glad you got an answer you needed. I find there are many ways to do problems in Excel.

+ 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: 2
    Last Post: 08-27-2018, 03:15 AM
  2. Using dynamic named ranges from another workbook inside a formula
    By SHUTTEHFACE in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2017, 06:31 AM
  3. Moving worksheet with named ranges to new workbook without referencing old workbook
    By madcaplaughs79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 07:54 PM
  4. [SOLVED] Index Match Formula in VBA, that utilises Workbook dynamic named ranges
    By JamieW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:39 AM
  5. Linking to a named Range in another workbook
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2008, 10:45 AM
  6. Dynamic Named Ranges - LINKING
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2006, 03:50 PM
  7. Linking to named ranges in another workbook
    By KG in forum Excel General
    Replies: 4
    Last Post: 03-29-2006, 10:10 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