+ Reply to Thread
Results 1 to 6 of 6

Using SumIf from multiple tabs

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Waterloo, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    18

    Using SumIf from multiple tabs

    Hi there,

    I'm trying to create a summary tab for the attached spreadsheet that adds up all of the columns B, C, D, from the three green tabs, but based on the subtotalled shaded cells.

    Is this possible to pull from multiple tabs? If not, does anyone have any suggestions as to how to complete this?

    Thanks for the help. Always appreciated!
    Anna

  2. #2
    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,908

    Re: Using SumIf from multiple tabs

    Try .... in B3

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!A:A"),A3,INDIRECT("'"&Sheets&"'!B:B")))

    Entered with Ctrl+Shift+Enter

    "Sheets" is a named range which has the names of worksheets e.g VP Marketing, Insurance, Wealth

    Note there a match on the items in column A which Appear twice in the sheets to be summed so if there is value in B4 as well as the sub-total you will get a wrong result.

    See the attached.
    Attached Files Attached Files

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Using SumIf from multiple tabs

    Totally doable, with a few minor alterations.

    First, you need unique identifications to key off of. I added " Total" to each descriptor, both on your summary and the bottom line of each block.
    Second, you need to make a list of the tab names somewhere, select those cells, and then define that range of cells with a Name in the Formula->Name Manager.
    Lastly, you need to make sure you watch for inconsistencies. Your tab VP Marketing has a trailing space, which can throw off things. I removed it in my version.

    B3:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&MySheets&"'!A15:A158"),$A3,INDIRECT("'"&MySheets&"'!B15:b158")))

    C3:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&MySheets&"'!A15:A158"),$A3,INDIRECT("'"&MySheets&"'!c15:c158")))

    D3:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&MySheets&"'!A15:A158"),$A3,INDIRECT("'"&MySheets&"'!c15:c158")))

    and copy all three formulas down.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    07-30-2015
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    18

    Re: Using SumIf from multiple tabs

    Hi,
    Please find the attached info sheet for your ref

    Cheers!
    Last edited by JBeaucaire; 08-01-2015 at 04:03 PM. Reason: Inappropriate links removed.

  5. #5
    Registered User
    Join Date
    04-30-2013
    Location
    Waterloo, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Using SumIf from multiple tabs

    Hi - I think this will work but I'm wondering, will the results only pull from the 3 columns (B,C,D)? On my full report that I'm working with, there may be numbers on the "total lines" for each account, so I only want to pull from those last three columns.

    Thanks for your help!!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Using SumIf from multiple tabs

    The formulas I used only pulled from B C and D. You'd just need to make sure you used unique identifiers to only pull the data you need.

+ 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] VBA code to merge multiple sheet with multiple tabs into one workbook in different tabs
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2015, 07:42 AM
  2. sumif multiple tabs in one spreadsheet
    By edunne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2014, 02:05 PM
  3. Replies: 0
    Last Post: 03-20-2013, 11:05 AM
  4. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  5. Sumif across multiple tabs
    By Honeypum in forum Excel General
    Replies: 9
    Last Post: 03-12-2011, 06:08 PM
  6. Sumif help with multiple tabs
    By marykayejn in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-04-2011, 06:51 PM
  7. SUMIF across multiple tabs
    By taylorm in forum Excel General
    Replies: 2
    Last Post: 07-24-2008, 10:13 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