+ Reply to Thread
Results 1 to 6 of 6

Sum on Indirect sheets with Variable Column and Row References

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Sum on Indirect sheets with Variable Column and Row References

    Hi --

    I am trying to sum a dynamic range on a dynamic sheet using the formula: =SUM(INDIRECT(""&A17&"!"&"D7:M7")) where A17 is my variable sheet name. I would like to substitute D7 with INDIRECT(C11&C10) and M7 with INDIRECT(C12&C10), where

    C11 is my starting Column Letter and C10 is my starting Row Number; and

    C12 is my finishing Column Letter and C10 is my finishing Row Number; however

    I get a #REF when I do this and suspect there is a SUMPRODUCT or Array formula answer. Any help much appreciated!

    Thanks,
    Wayne

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sum on Indirect sheets with Variable Column and Row References

    It would probably be easier if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-03-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sum on Indirect sheets with Variable Column and Row References

    Thanks -- attached is a clean example:

    Appreciate any assistance!
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sum on Indirect sheets with Variable Column and Row References

    Based on your sample...
    =SUM(INDIRECT(""&A17&"!"&C11&C10&":"&C12&C10))

    you may need to absolute some of those ranges if you intend copying that

  5. #5
    Registered User
    Join Date
    01-03-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sum on Indirect sheets with Variable Column and Row References

    That's perfect - thank you so much!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sum on Indirect sheets with Variable Column and Row References

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. Using INDIRECT with references from other sheets
    By rlaw42 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2015, 04:27 PM
  2. [SOLVED] Variable Column references
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  3. Variable Column references
    By Gidders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Variable Column references
    By Gidders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Variable Column references
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  6. Variable Column references
    By Gidders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Variable Column references
    By Gidders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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