+ Reply to Thread
Results 1 to 5 of 5

Sum Across a Variable Range of Sheets Based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sum Across a Variable Range of Sheets Based on Multiple Criteria

    Hi, I am trying to create a summary tab that will find and sum values from a variable number of sheets based on two criteria. These criteria are a revenue identifier (rows) and time period (columns). On all the sheets that I am summing, the columns and rows are not uniform, hence the need to locate the intersection of the criteria on each before summing. The number of sheets to be summed also varies so I was planning on using two blank sheets with the sheets to be summed in the middle. I was attempting to use a combination of sumproduct, sumifs, and indirect but am having trouble getting there. I searched for a while but could not locate an instance where this was addressed.

    I am new to posting here but have lurked for a while and appreciate all the insight this site has to offer. Thanks in advance for the help.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum Across a Variable Range of Sheets Based on Multiple Criteria

    My advice is to make sure the format of the columns (and rows) are the same.

    After that you can use a VBA code to get all data on a summery sheet.

    After that a pivot table can do the rest of the job.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum Across a Variable Range of Sheets Based on Multiple Criteria

    The rows and columns have the same identifiers I am using on the summary sheet and in the same format, it's just the location that is not the same. Additionally, the summary sheet I am creating will be part of an overall larger model that I am bringing in using Index/Match. Is there a formula that can be used on the summary sheet to accomplish this?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Sum Across a Variable Range of Sheets Based on Multiple Criteria

    Is it necessary for the computation to take place in a single formula on the summary sheet? I prefer to use a helper cell (or cells) on each sheet with the conditional sum for that sheet (sumif() or sumifs() function). Then, a simple 3d sum (sum(sheet1:sheet5!A1) will sum up each of these cells on the summary sheet. I find this is a lot easier than trying to work through a volatile indirect function or VBA.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum Across a Variable Range of Sheets Based on Multiple Criteria

    I see what you're saying but I wanted to do it all in one cell on the summary sheet for one reason. I receive the sheets to be summed from various sources and want to leave it as is. I basically pull those sheets into a master file where the summary sheet resides.

+ 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. Pulling Data From Multiple Sheets Into A Summary With Variable Criteria
    By stinkyd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-04-2015, 04:15 PM
  2. Is this possible? Create new workbook from multiple sheets based on variable range?
    By Ashaffer2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2014, 08:52 AM
  3. Replies: 8
    Last Post: 07-09-2014, 10:42 PM
  4. [SOLVED] Select Sheets based on variable array -ERROR 9 Subscript out of range
    By airmiles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 07:28 PM
  5. [SOLVED] Copy range from multiple sheets, into a master sheet and moving over by variable col range
    By g1eagle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2012, 01:36 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