+ Reply to Thread
Results 1 to 4 of 4

[Question] Sumifs multiple sheets with flexible sheets reference

  1. #1
    Registered User
    Join Date
    09-29-2013
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    33

    Question [Question] Sumifs multiple sheets with flexible sheets reference

    Hi everyone,
    I have this issue need your advise:

    - I have data across multiple sheets & need to sumifs at summary table (you can see in example)
    - I have manage to write a sumifs across multiple sheets with this below formula.

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&$G$3:$G$7&"'!C:C"),INDIRECT("'"&$G$3:$G$7&"'!A:A"),$A$4,INDIRECT("'"&$G$3:$G$7&"'!B:B"),$B$4))

    However, i need to flexible in choosing which sheets will be put into the reference $G$3:$G$7.
    The desired result is: when i change the start & end, the sumif will look from start month until end month (Jan, Feb, Mar...)

    I stuck at this point & couldn't find a solution for this one. using indirect to replace $G$3:$G$7 always return with Ref error

    Could you help me

    Thanks,
    Thang Tran
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: [Question] Sumifs multiple sheets with flexible sheets reference

    Hello,

    using formulas to counter bad data architecture is sometimes possible, but hard work. Why make life so hard?

    Put all your data on ONE sheet. ONE. Not one for each month. You have three columns on each monthly sheets. Copy all the data into one sheet, add another column for the date.

    Golden rule of spreadsheet design: data on one sheet. Reports on other sheets.

    Now you can build reports and Sums and Sumifs and pivot tables and anything you like from your data in just ONE sheet.

    You don't need fancy formulas and complicated workarounds if all data is in one place. Life can be so easy.

    cheers, teylyn
    Last edited by teylyn; 12-29-2014 at 04:25 AM.

  3. #3
    Registered User
    Join Date
    09-29-2013
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: [Question] Sumifs multiple sheets with flexible sheets reference

    Hi Teylyn,
    This is the simplified version I make to illustrate my idea. My working version is 12 months, with proximated ~10,000 rows each months. In addition, there's sometimes bug from the monthly data (which is consolidated by another third party) so we needs to separate sheets in case we need to find where is the error in each months.
    With that, do you have any idea to make it works?
    Thanks
    Thang Tran

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: [Question] Sumifs multiple sheets with flexible sheets reference

    Consolidate all sheets into one contiguous table. 120,000 rows of data is well within what Excel can handle in one sheet.

    Then you can use a pivot table to report in monthly increments.

+ 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] Using SUMIFS across Multiple sheets - Problem in re-opening
    By pankaj.d.m in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-27-2014, 08:21 AM
  2. Replies: 3
    Last Post: 06-19-2014, 10:30 AM
  3. [SOLVED] SUMIFS with multiple criteria between sheets
    By PrncssJ in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 03-24-2014, 01:31 PM
  4. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  5. SUMIFS on Multiple Work Sheets
    By SeaTiger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2011, 04:56 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