+ Reply to Thread
Results 1 to 8 of 8

Summing based on a specifc value accross multiple sheets within a single workbook

  1. #1
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Summing based on a specifc value accross multiple sheets within a single workbook

    Good afternoon Gurus!

    I’ve got a list of reports that each source from various data sources via Access ODBC connections; I’ve been tasked with documenting each of these reports and which fields from which tables they use, and the attached template is the direction I’m headed. As you’ll be able to see, each tab is a different table with the field names across the top, then I list the reports to the left and simply put an “x” under the fields each report uses and count the “x”s for a total number of uses each table has. What I’d like is a master tab at the front of the workbook where I can list each report again, but with the total number of uses they have from the given resource that houses the individual tables. Hope that makes sense? I essentially want to VLOOKUP each report across all tabs within the workbook and sum their totals from the “Field Count” field (column B on each tab) so anyone can open the template and see that the “Q2 POMs and Beyond” report uses 23 fields from the DALA resource; is that feasible and (importantly) in such a way that I can also add more tabs as I find more tables?
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    You need to return all sheets names so, go to Formulas - Define Name - name them Sheets and add this formula: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")
    Then you can use this formula: =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!"&"A4:A100"),A3,INDIRECT("'"&Sheets&"'!"&"B4:B100")))

    Increase your range as necessary. I've set them to 100 for now.
    Last edited by PaulM100; 05-30-2018 at 09:46 AM. Reason: First formula edited

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    Thank you for the response!

    I'm sorry; I'm a little confused. What exactly do you mean by "Define Name - name them Sheets"?

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Summing based on a specifc value accross multiple sheets within a single workbook


  5. #5
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    Thanks again!

    So, using the instructions on your link, I managed to get an index of my sheet names (a nifty trick to be sure!), but I'm failing to understand how this gets me to my desired end result? I want the first sheet to be an index of my unique report names (column A on each sheet,) then sum the total number of fields each report uses. I.e., in my sample workbook attached on the first post, DALA (workbook name) is the data resource. In DALA, I've got 11 tables (unique tabs within the workbook.) The report name is "Q2 POMs and Beyond," and it uses 23 total fields collectively from all the DALA tables. This is the view I'm trying to achieve for each report (Sheet1 is a mock up of the end result.)

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    I've corrected my second post #2. Follow the instructions in the link then use the defined name Sheets in my second formula. Basically, it counts the field per criteria from each sheet and returns the value. Give it a try and if is not what you are looking for, then let us know.

  7. #7
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    Ok, I think I made some headway; thank you so much for your help so far! (I'd give you more rep, but the site insists I spread it around before giving it to you again!)

    If you can, please take a look at the attachment. I won't claim to understand what exactly the formula is doing, but I followed your steps methodically, and got the expected results for the first report listed (in cell A3.) However, when I drag the formula down to B4, I receive a "circular reference" error message and the value from cell B3 is simply repeated. Stranger still, when I drag the formula down further to B5, I still get the circular reference error, but when I change the SUMIF criteria to cell "A6" I get the expected result for the report below in A6. I'm hoping this is an easy fix! Thanks in advance!
    Attached Files Attached Files

  8. #8
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Summing based on a specifc value accross multiple sheets within a single workbook

    Ok, I think I might have a guess at what might be going on; when I ‘defined’ the name, I believe it’s including the sheet on which I’m trying to show the counts, so putting this formula in A:B created a circular reference. When I move the formula to C:D, it works!

    Thanks again for your help; marking this thread SOLVED (for now…)

+ 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. [SOLVED] Summing accross sheets
    By pauldaddyadams in forum Excel General
    Replies: 19
    Last Post: 01-28-2015, 02:19 PM
  2. Lookup accross multiple sheets in external workbook
    By Eustace07 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-03-2014, 08:47 AM
  3. [SOLVED] Sum Formula based on single or multiple critera that sums accross and array
    By Dial1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2013, 07:14 PM
  4. Replies: 1
    Last Post: 06-21-2012, 03:55 PM
  5. Summing Accross multiple worksheets
    By rbiamonte in forum Excel General
    Replies: 8
    Last Post: 06-02-2010, 04:37 PM
  6. Summing Values accross multiple sheets
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2009, 05:17 AM
  7. Summing accross sheets
    By babycody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2005, 08:35 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