+ Reply to Thread
Results 1 to 6 of 6

Totaling Quantities Across Multiple Sheets

  1. #1
    Registered User
    Join Date
    02-05-2021
    Location
    Minnesota
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Totaling Quantities Across Multiple Sheets

    Hello! I'm trying to create a formula that adds up all the quantities of a specific type across multiple sheets (but not all sheets). Below is a summary of the excel file and what I am trying to achieve. I have the formula created, there is just one aspect that I want it to do that I can't figure out. I have attached a simplified sample file to this thread.

    Sheet 1: Total Quant by Type
    - The formula I am trying to write is in cells B2 through B7. (highlighted in yellow)
    - This formula totals the quantities of each Type (column A) in the sheets that are listed out in the "Sheets Included" sheet.

    Sheet 2: Sheets Included
    - This lists out the sheets that I would like the quantity formula in Sheet 1 to include.
    - Here is what I can't figure out. In the future, more sheets will be added which need to be included in the Sheet 1 quantity formula. I want the quantity formula in Sheet 1 to automatically update when new sheets are added to this list. Is there an update I can make to the formula that tells it to include all cells, starting at A2 going down until the next cell is blank?

    Here is my current formula:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&'Sheets Included'!A$2:A$4&"'!A$3:A$1000"),'Total Quant by Type'!A2,INDIRECT("'"&'Sheets Included'!A$2:A$4&"'!B$3:B$1000")))

    Essentially, I want to update the bolded portion of the formula so that it updates automatically when new sheets are added under the "Sheets Included" list. Anyone have any ideas on how to do this?

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Totaling Quantities Across Multiple Sheets

    Hi,
    My suggestion is to change the range 'Sheets Included'!A$2:A$4 into table and use the table name in your formula. The table will automatically include the new rows in its definition.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    02-05-2021
    Location
    Minnesota
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Totaling Quantities Across Multiple Sheets

    Thank you! I am not familiar with tables. Can you show me how to do that?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Totaling Quantities Across Multiple Sheets

    Try

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheet_LIST&"'!A$3:A$1000"),'Total Quant by Type'!A2,INDIRECT("'"&Sheet_LIST&"'!B$3:B$1000")))

    "Sheet_List" is dynamic range

    Refers to: =OFFSET('Sheets Included'!$A$2,,,COUNTA('Sheets Included'!$A$2:$A$100),1)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-05-2021
    Location
    Minnesota
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Totaling Quantities Across Multiple Sheets

    Thank you! This worked perfectly.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Totaling Quantities Across Multiple Sheets

    You're welcome.

    Please mark as SOLVED : "Thread Tools" at top of thread.

    Thank 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. [SOLVED] Google Sheets: Totaling multiple cells TO a single cell on a different sheet
    By jgwalter in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 02-21-2021, 11:21 AM
  2. [SOLVED] Totaling quantities
    By JBR9999 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-25-2015, 11:00 AM
  3. sum items quantities from different sheets
    By Vidas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-08-2014, 03:34 AM
  4. [SOLVED] Totaling Data across multiple sheets
    By jzarkauskas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2013, 02:49 PM
  5. Replies: 4
    Last Post: 12-19-2012, 02:50 PM
  6. Totaling multiple running totals on separate sheets
    By ashncg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2011, 06:56 PM
  7. totaling figures from multiple sheets
    By BW29 in forum Excel General
    Replies: 1
    Last Post: 03-13-2007, 09:19 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