+ Reply to Thread
Results 1 to 4 of 4

Named Ranges between two separate workbooks

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Named Ranges between two separate workbooks

    I want to link two separate workbooks using Named Ranges (instead of big cumbersome cell ranges)...no I am not looking for a VBA solution.

    I have two workbooks "Book1.xlsx" and "Book2.xslx".

    Book 1, I created Named Ranges (i.e. Account, Amount, Year) which I defined in Name Manager, and set them to refer to cells in Book 2 as follows:
    • ACCOUNT ='[Book 2.xlsx]Sheet1'!$A$1:$A$5
      AMOUNT ='[Book 2.xlsx]Sheet1'!$B$1:$B$5
      YEAR ='[Book 2.xlsx]Sheet1'!$C$1:$C$5

    In Book 1, I use a simple SUMIFS like =IFERROR(SUMIFS(AMOUNT,ACCOUNT,154500,YEAR,2020),"")

    It only works when both workbooks are open, if I close Book 2 (the one I am referencing) and use the Edit Links to update Values everything zeros out. I do not have any Named Ranges in Book 2 so there shouldn't be any look up confusion.

    Any help/suggestions etc. would be greatly appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Named Ranges between two separate workbooks

    SUMIF won't work. SUMPRODUCT will.

    =SUMPRODUCT((Criterion=A2)*Value)

    Download both sheets to the same place. Keep Book 1 closed. Open Book 2. Check that the two named ranges relate to the file structure on your PC. Should be fine...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Named Ranges between two separate workbooks

    Awesomesauce! That works great Glenn thank you VERY much!!!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Named Ranges between two separate workbooks

    You're welcome and thanks for the rep.

+ 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. Referencing Named Ranges and Sheet Codenames in Multiple Workbooks
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2019, 07:32 AM
  2. Mapping Named Cells to Named Cells in Separate Workbooks
    By sb212410 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2018, 02:43 PM
  3. [SOLVED] VBA creates named ranges, but named ranges disappear
    By BrotherNeptune in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2015, 03:22 PM
  4. Define only 2 named ranges from a list of named ranges...
    By abhi900 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2014, 04:20 AM
  5. Looping Mutliple Named Resized Ranges in next empty row below another named range
    By gingumdog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2014, 08:15 PM
  6. [SOLVED] Set values of identical named ranges in two workbooks equal
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2014, 08:16 AM
  7. [SOLVED] how to copy named sheets to separate workbooks with same name
    By Dawn Bjork Buzbee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2006, 05:50 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