+ Reply to Thread
Results 1 to 5 of 5

Conditional sum over multiple sheets

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    Bristol England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional sum over multiple sheets

    I'm new to this so sorry if this is in the wrong place.

    I have a workbook to track expenses for a team.
    Each team member has their own worksheet. The worksheet names are the names of the team members, the name is also shown in cell G4 of each sheet.
    All sheets are formatted the same. More sheets may need to be added in the future if the team expands.
    Example of information is Hotel, Fares & Travel & Car Hire in columns S, T & U respectively.

    I have a summary sheet where all names are listed, I need a formula that will sum columns S, T & U for each name in the summary list but want to also be able to add more worksheets in the future without having to re jig formulas. Is this possible?
    Last edited by Loops999; 05-18-2010 at 03:31 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with conditional sum over multiple sheets

    Maybe something like:

    =SUM(INDIRECT('"'&X1&"'!S1:S100)) for defined range

    or

    =SUM(INDIRECT('"'&X1&"'!S:S)) for whole column.

    where X1 contains the name of the sheet you want to reference.

    formula can be copied down

    Do similarly for columns T and U.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-17-2010
    Location
    Bristol England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with conditional sum over multiple sheets

    Thanks for this but I get a message saying the formula typed contains an error when I try to enter it. Not sure if I'm doing something wrong?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with conditional sum over multiple sheets

    Try:

    =SUM(INDIRECT("'"&X1&"'!S1:S100"))

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Help with conditional sum over multiple sheets

    Loops999;

    I'm betting that you're having trouble interpreting all those apostrophes and quotes.
    The formula is:
    Please Login or Register  to view this content.
    Notice that there is an apostrophe(') surrounded by quotes, then an apostrophe(') !S:S inside 2 quotes. When you type it remove the spaces and it will look like Comic Relief's formula
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ 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