+ Reply to Thread
Results 1 to 4 of 4

SUMIF Formula Across Multiple Sheets

  1. #1
    Registered User
    Join Date
    12-03-2011
    Location
    Vancouver, WA
    MS-Off Ver
    Excel 2007
    Posts
    9

    SUMIF Formula Across Multiple Sheets

    I have a SUMIF formula listed below that works great to compare the list on the Rental_Property_1 worksheet to the master sheet I use to tally the number from all my properties and return the sum of each item in the range:

    Please Login or Register  to view this content.

    I would like something more like this that would check through multiple sheets but it doesn't work:

    Please Login or Register  to view this content.
    Is there any way I get something like the second formula to work checking through the first sheet to the last sheet and tallying their totals up? I would like to do this without having to modify the formula every time I add a new property worksheet to the workbook.

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Formula Across Multiple Sheets

    Quote Originally Posted by El Guapo
    I would like to do this without having to modify the formula every time I add a new property worksheet to the workbook.
    The above is key. IMO you would be best served using some Events to keep the list up to date.

    Similar thread/post from a while back: http://www.excelforum.com/excel-gene...le-sheets.html see attachment on post #17

    Note: Volatile SUMPRODUCTs are generally bad news performance wise.
    Sometimes better to replicate the SUMIF(s) on each individual sheet within a common range and subsequently conduct basic 3D sum of those SUMIF ranges (using "book end" sheet references)

  3. #3
    Registered User
    Join Date
    12-03-2011
    Location
    Vancouver, WA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: SUMIF Formula Across Multiple Sheets

    Sorry, I dont really understand how all that will really help out with what I need. Hopefully someone will have something closer to what I am looking for.

    I am able to do this very easily for a single sheet, there has to be a way to do it for multiple sheets without manually adding the formulas every time.

    Thanks for the help though

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Formula Across Multiple Sheets

    Not sure what you don't understand.

    Performing SUMIF in 3D requires an array of all sheets to be aggregated, e.g:

    Please Login or Register  to view this content.
    becomes::

    Please Login or Register  to view this content.
    However, given you explicitly state that you wish to:

    a) add / remove sheets at will
    and, in turn
    b) do not want to have to manually update the formula each time

    in my opinion it makes a great deal of sense to use a VBA Event to keep an up to date list of all relevant sheets.

    The sample file in post #17 of the referenced thread does the above c/o of the following workbook driven event:

    Please Login or Register  to view this content.
    The subsequent 3D SUMIFs utilise the Defined Range: _3DList as basis for sheet listing - in your case the formula would appear as:

    Please Login or Register  to view this content.
    Unfortunately performing 3D SUMIF is inefficient and volatile ... an overview of your options: http://www.mcgimpsey.com/excel/threedsumif.html
    Last edited by DonkeyOte; 01-02-2012 at 04:18 AM. Reason: missing apostrophe

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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