+ Reply to Thread
Results 1 to 6 of 6

Help with SUMIFS formula across multiple sheets

  1. #1
    Registered User
    Join Date
    07-27-2020
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    3

    Help with SUMIFS formula across multiple sheets

    Hi all,

    I am a relatively inexperienced with most Excel formulas beyond the basics, so appreciate your help.

    I am trying to work with an existing dataset that has billing info for over a hundred clients, with each client listed on their own sheet. I am trying to create a summary page that lists the payments received per provider, per month. Currently, each sheet has the provider listed in only one place.

    Some basics on the dataset:

    Tabs: are each named with client initials
    Provider: Is listed by name, only once per tab, in the B5 cell of each tab
    Date of Payment: is listed in in Column C of each tab
    Payment Amount: is listed in Column E of each tab

    After reviewing things online it appeared that the best way of doing this was using the SUMIFs function. The formula I copied and modified from online was this (NOTE: Only listing four sheets/clients for illustrative purposes):

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$E$10:$E$33"),INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$B$5:$B$5"),"SEAN*",INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),">="&C10,INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),"<="&EOMONTH(C10,0)))

    The first criteria is for the provider name (in this case, "Sean"). The next two criteria are related to the date range. This formula produces a #VALUE! error, which I know has something to do with Criteria 1 (i.e., cell B5).

    I can get the formula to work correctly if I list the provider name in each row next to the payment received in column F:

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$E$10:$E$33"),INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$F$10:$F$33"),"SEAN*",INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),">="&C10,INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),"<="&EOMONTH(C10,0)))


    However, I am really hoping to not have to add the provider name to each row if avoidable. Is there another way to write the first formula to essentially say, "If Provider X's name appears in cell B5, then sum the totals in Column E"?

    Secondly, is there a better way of writing a formula to search and sum across each of the sheets without having to list them all? As noted, there are already over 100 clients/sheets in this dataset with more being added every week. I would like to avoid having to update the formula every time a new sheet is added, but haven't had any luck finding a solution to that. I know that we would probably be better off not using so many different sheets, but our billing person prefers for each client to have their own sheet for her tracking purposes.

    I appreciate any help you can provide!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help with SUMIFS formula across multiple sheets

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-27-2020
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    3

    Re: Help with SUMIFS formula across multiple sheets

    Hi! Thank you for the response. I actually do not have a sample workbook, just used a sample formula. The Workbook I have is filled with HIPAA data.

    I pulled over the data referenced in the formulas as an example and attached here. Thanks.
    Attached Files Attached Files
    Last edited by sdfirenze; 07-27-2020 at 05:57 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help with SUMIFS formula across multiple sheets

    Maybe try this:

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$E$10:$E$33"),INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$F$10:$F$33"),B$4&"*",INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),">="&A11,INDIRECT("'"&{"AB","GB","RB","VC"}&"'!$C$10:$C$33"),"<="&EOMONTH(A11,0)))

    SUMIFS needs ranges of the same length.

    Column F in each sheet can be a formula:

    =$B$5

  5. #5
    Registered User
    Join Date
    07-27-2020
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    3

    Re: Help with SUMIFS formula across multiple sheets

    Okay, thanks! That makes sense.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help with SUMIFS formula across multiple sheets

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

+ 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] Sumifs multiple sheets
    By aneliya in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-26-2017, 06:46 AM
  2. [SOLVED] SUMIFS across multiple sheets using multiple criteria function not working
    By ghostly1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-03-2017, 04:41 PM
  3. [SOLVED] SUMIFS across multiple sheets
    By keith740 in forum Excel General
    Replies: 12
    Last Post: 06-08-2015, 04:51 PM
  4. Replies: 5
    Last Post: 02-06-2015, 08:44 PM
  5. [Question] Sumifs multiple sheets with flexible sheets reference
    By tranhaithang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2014, 04:53 AM
  6. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  7. Can I make 'sumifs' formula in a macro and then use it in multiple sheets in same WB
    By Ahsanabbas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2011, 09:23 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