+ Reply to Thread
Results 1 to 7 of 7

Sumif Across multiple Worksheets using Partial Tab Name

Hybrid View

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Sumif Across multiple Worksheets using Partial Tab Name

    Good afternoon,

    I'm trying to create a formula that will look at the name in a cell (from a dropdown list) and sum all worksheets that use that same name. For example all the tabs are named Division 1a, Division 1b and Division 1c, etc up through 23 divisions all with an a-b-c tab. The formula will need to look at the cell with the dropdown name and sum one cell in all three tabs of that same division.

    Thank you so much for any help you can provide.
    Attached Files Attached Files

  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
    53,048

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    So are you trying to add all A's or all Div 1?
    what would a sample answer 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
    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
    30,711

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    Create named range "Sheets" in 3 cells containing (say A11:A13)

    =$I$4&"a"
    =$I$4&"b"
    =$I$4&"c"

    in H10

    =SUMPRODUCT(SUM(INDIRECT("'"&Sheets&"'!F13")))

    see attached.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    Thanks John,

    I looked at what you had done, however this is only summing up the Division 1 tabs. How do I then link this to Cell I4 so that when the division changes in I4, the total will change for only that new division?

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    Hi,

    John's solution is linked to cell I4; have a look again at what he wrote.

    Alternative:

    =SUMPRODUCT(N(INDIRECT("'"&I4&{"a","b","c"}&"'!F13")))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    This is now perfect. Thank you so much.

  7. #7
    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
    30,711

    Re: Sumif Across multiple Worksheets using Partial Tab Name

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Sumif multiple worksheets
    By weeblegobble in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2016, 09:25 PM
  2. Multiple calculations in one SUMIF formula across multiple worksheets
    By necht_angel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2011, 05:30 AM
  3. Sumif or vlookup on multiple partial strings
    By timjames in forum Excel General
    Replies: 4
    Last Post: 09-01-2011, 07:13 AM
  4. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM
  5. Sumif with multiple worksheets
    By Matt Lunn in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 02:05 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