+ Reply to Thread
Results 1 to 13 of 13

Sumif help with multiple tabs

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Sumif help with multiple tabs

    I'm trying to add wages for employees from different tabs in my workbook. I want to be able to delete employees who don't have wages in certain programs, so I need to say, "if Jessica has wages in this cell add it". I just can't get this formula to work. Should I not be using the SUMIF formula?
    Attached Files Attached Files
    Last edited by marykayejn; 02-14-2011 at 05:15 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sumif help with multiple tabs

    Try:

    =SUM('BSS-CSP:PSYCH'!C4)

  3. #3
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif help with multiple tabs

    Cutter - That would work if I didn't want to delete names from one worksheet, but not the others. I want this formula in all cells to total all wages and hours from all worksheets. But I don't want unnecessary employees in each worksheet so the formula has to look at the employee name.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sumif help with multiple tabs

    OK, misunderstood what you were asking.
    Are there going to be other sheets to total or will there only be the 3 that are currently present?

  5. #5
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif help with multiple tabs

    There will be others. And, occasionally a sheet will be removed.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sumif help with multiple tabs

    That's what I was afraid of - I have put out the call for the experts to give you a hand with this one.

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

    Re: Sumif help with multiple tabs

    3D conditional Calculations are inefficient and volatile.

    You would be best served replicating whatever conditional calcs you need on each sheet individually in identical tables and using standard 3d functions (like SUM etc) to aggregate on Summary.
    That or creating a singular consolidated data sheet.

    To elaborate regards inefficient approach - assume you want to:

    Sum C1:C1000 on Sheets: Apple, Banana, Carrot, Dog & Egg where name in A1:A1000 is "Bob"

    First - create a list that holds all sheet names - let's say this is in Z1:Z5 on your Summary Sheet, the function would be:

    Please Login or Register  to view this content.
    It's not the right way to go - IMO at any rate.

    Have you considered attempting a Multi Consolidation Pivot Table and/or using VBA to consolidate the various sheets into one single data set for sake of analysis ?

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sumif help with multiple tabs

    An easy alternative for you would be to keep the formulas you are already using and, instead of deleting the employees from the sheets, just hide the rows that contain those employees.

    But you will run into trouble if you delete either the first or last of those named sheets with your current formulas. You should insert 2 extra sheets, one named FIRST, the other named LAST. You then hide those sheets and insert your sheets to be totaled between those 2 hidden sheets. That way your summing formulas won't be affected. Adjust your formulas to read FIRST:LAST!

  9. #9
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif help with multiple tabs

    DonkeyOte,

    I've seen this code before and tried it but couldn't get it to work. I just come back with #REF. I'm attaching my latest attempt.

    I've never used (or really understand) Pivot Tables or VBA so it would be a whole new learning curve . . . why do you say IFSUM is inefficient?
    Attached Files Attached Files

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

    Re: Sumif help with multiple tabs

    Quote Originally Posted by marykayejn
    I've seen this code before and tried it but couldn't get it to work. I just come back with #REF.
    Your sheet listing can only contain valid sheets - your list is set as M1:M5 with first & last rows being empty - should be M2:M4 (returns 10)

    Quote Originally Posted by marykayejn
    why do you say IFSUM is inefficient?
    I presume you mean the SUMPRODUCT etc...

    SUMPRODUCT is an iterative formula and is slower to process than "normal" formula (it's no quicker than an Array)

    INDIRECT is Volatile

    The two combined are generally bad news.

    For more info. on Volatility see the link in my signature.

  11. #11
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif help with multiple tabs

    Cutter, I hadn't thought of just hiding the rows . . .

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

    Re: Sumif help with multiple tabs

    Quote Originally Posted by marykayejn View Post
    Cutter, I hadn't thought of just hiding the rows . . .
    and FWIW I agree - do whatever you can to avoid the need for complex & inefficient approaches

  13. #13
    Registered User
    Join Date
    01-11-2011
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif help with multiple tabs

    Thanks so much guys! The INDIRECT works and so does just hiding the rows. Now I have a choice!

+ 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