+ Reply to Thread
Results 1 to 4 of 4

Sum with Dynamic Range on a Closed Workbook

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Sum with Dynamic Range on a Closed Workbook

    Hi - i'm looking to create a sum with a dynamic range on a closed workbook.

    If the workbook is open, i typically just use a formula like:
    =SUM(first value : INDEX(sum array, month number))
    which will sum from January (first value, or month one) to whatever input i have typed into as the "month number"

    However, this formula only works if the workbook is open. If it's closed, i get a #REF error.

    I didn't expect this as INDEX (not combined with a SUM function) works on closed books and INDEX with MATCH does as well.

    Using the CHOOSE function also returns #REF.

    Any creative workarounds?

    Thanks!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Sum with Dynamic Range on a Closed Workbook

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Cheers!
    Deep Dave

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sum with Dynamic Range on a Closed Workbook

    You wish to create a dynamic sum on closed workbook? If you suppose to achieve you target through index and match on closed workbook, you can't. Basically Index and match are not capable to do so but sumproduct having ability to perform the result.

    =SUMPRODUCT((CriteriaRANGE1=Criteria1)*(CriteriaRANGE2=Criteria2)*(SUMRANGE)..

    If you can attach you sample data you will get easy and exact solution very fast.



    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Sum with Dynamic Range on a Closed Workbook

    Here is a sample workbook. It is of course very simple to do if it's all in one workbook, but the trick is that it's in two, and one will always be closed. Is there a way to do a sum like this on a closed workbook? Thank you.
    Attached Files Attached Files

+ 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. Dynamic closed workbook reference
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2017, 10:22 AM
  2. How to get dynamic named range from closed workbook?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2016, 11:46 AM
  3. Dynamic Name Range to a closed workbook
    By pinkpeace7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-05-2015, 02:18 AM
  4. [SOLVED] Cannot refer to a dynamic range in a closed workbook
    By BNCOXUK in forum Excel General
    Replies: 7
    Last Post: 01-07-2014, 09:56 AM
  5. [SOLVED] Sum dynamic range in closed workbook using address/match
    By jeffr27 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-14-2013, 10:15 AM
  6. Copy dynamic range from closed workbook
    By RedWing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2011, 07:11 PM
  7. refer to dynamic range in closed workbook with ADO
    By MattShoreson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2005, 06:26 AM

Tags for this Thread

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