+ Reply to Thread
Results 1 to 6 of 6

Sum similar concepts found in different tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    02-03-2004
    Posts
    6

    Sum similar concepts found in different tabs

    Hello,

    I need a little help, I really can't come up with a solution to that little problem:

    I have 4 excel sheets (same file) containing a bunch of lines. The columns in these sheets are:

    SUP-CODE / DPT / SUP NAME / CONCEPT/ INVOICE / SUM...

    I have a 5th sheet that I wish would contain a summary of the other 4 sheets.
    Basically, I need a formula that return a sum by concept (from the data from sheet 1-4)

    CONCEPT1 = $$$$
    CONCEPT2 = $$$$
    etc.

    I could simply put all of them in the same sheet and use a filter tool to get that result, but I really need a more permanent function (that would also allow me to add lines in the different sheets and take them into account).

    I hope it's clear. Any help (even a quick tip to follow) will be greatly appreciated

    Benoit

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I have to assume that the columns are all the same on each of your four sheets, that is, for example, DPT is in Column B on each sheet.

    on your fifth sheet, enter this formula:

    =SUM(Sheet1:Sheet4!B2:B10000)

    Adjust the sheet names if your sheets are named and the range of the data as needed.

    Repeat for your other columns.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    02-03-2004
    Posts
    6
    Sorry I guess i wasn't clear enough.

    Yes the columns are the same exactly in my 4 sheets.

    But what i want to do is a sum by concept:

    (A) SUP-CODE / (B) DPT / (C) SUP NAME / (D) CONCEPT/ (E) INVOICE / (F) SUM...
    ----------------------------------------------------------------------------------------------------
    11111 / 33 / MSOFT / REBATES / 111222333 / $2200
    22222 / 40 / ADBOR / LEAFLET / 222172299 / $2400
    33333 / 32 / ABC / REBATES / 333333333 / $2300

    This is a sample of the tables i have in sheets 1-4

    I would like to sum them by concept.

    (A) CONCEPT / (B) SUM
    REBATES / $$$$$ <--- need a formula here
    LEAFLET / $$$$$
    ...

    Any idea?


    Ben

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    B2, copied down:

    =SUMPRODUCT(SUMIF(INDIRECT("'"&$D$2:$D$5&"'!D:D"),A2,INDIRECT("'"&$D$2:$D$5&"'!F:F")))

    ...where A2 contains the 'concept' of interest, and D2:D5 contains your sheet names.

    Hope this helps!

  5. #5
    Registered User
    Join Date
    02-03-2004
    Posts
    6

    Talking

    Thanx a lot Domenic!
    Works perfectly. Just had to adapt it in French...

    Why can't we use a single language for Excel formulas?

    Ben
    Last edited by hochedez; 03-29-2005 at 12:37 AM.

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by hochedez
    Thanx a lot Domenic!
    You're very welcome, Ben!

    Works perfectly. Just had to adapt it in French...

    Why can't we use a single language for Excel formulas?
    Good question!

+ 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