+ Reply to Thread
Results 1 to 18 of 18

Sum items' total in all sheets

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Sum items' total in all sheets

    Hello everyone

    I have Data sheet in which I need to calculate the total in column F for each item in all sheets (Which names begin with "Per St *")

    For example: Item named "ItemTest" should be summed in sheets("Per St 1" & "Per St 2" & "Per St 3" & "Per St 4")
    So it would be : 3 + 2 + 1 + 3 = 9
    Note that the items in the four sheets are listed in two lists (Column B & F)
    Another point these four sheets are just examples : there would be more sheets ..
    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Sum items' total in all sheets

    Im having a hard time seeing what you want, mainly because of a translation problem

    Whete do these come from?
    So it would be : 3 + 2 + 1 + 3 = 9
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    From sheets("Per St 1" & "Per St 2" & "Per St 3" & "Per St 4")
    range("C8") in these four sheets but note that not all the items are in one list .. the items splitted in two lists in these sheets

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    I hope it is clear
    the general idea is how to sum from several sheets for specific item ..(the sheets numbers are not static they are variable

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    Waiting for any help
    please I need help in this topic
    Thanks advanced

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    If there is no solution, it will be good to give me any idea that can help me

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum items' total in all sheets

    Is you reply on #2, forummembers can work with that information.

    It seems the question is not clear to the forummembers.

    So please add the result manualy in your file, and mark the related cells with the same color.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    @ oeldere

    Thanks for reply
    I attached the file again with three examples coloured to illustarte my request
    Note that : the sheets started with "Per St *" are variable
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum items' total in all sheets

    J4 =SUM('Per St 1:Per St 4'!$C$8)

    See the green cells in the attached file.

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    Thanks a lot
    What if I added a sheet named "Per St 5" ??

    I mentioned that the sheets' names which started with "Per St *" are variable .. There will be more sheets so I need dynamic solution.

    Another point I need to depend on the item name (eg. ItemTest2) in the SUM process as the item may be different in its address in the sheets
    Hope it is clear now

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum items' total in all sheets

    Please Login or Register  to view this content.
    Refer also to ST 5.

    J4 =SUM('Per St 1:Per St 5'!$C$8)


    Please Login or Register  to view this content.
    That is not how you showed it in the file.

  12. #12
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    Mr. oeldere
    I know that I didn't show "Per St 5" in the file ...
    I need flexible solution as new sheets will be added every day and it will be exhausted to edit the formula after every change ...
    Another point ... In the attachment the cell address are similar but in later sheets some items will be vanished so the address of cells won't be the same.
    I mean in your formula you depend on C8 in a formula , and this will be incorrect as the related item in the future would be in different cell , so I need to depend on the item name like using "SUMIF"
    Generally thanks for offering help

    I will attach another file.. Look at yellow cells in all sheets to get my request
    Attached Files Attached Files
    Last edited by YasserKhalil; 07-25-2015 at 07:28 AM.

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum items' total in all sheets

    @YasserKhalil

    Why not add a representive file, in the first place.

    If that is the case the offered solution won't work.

    1) Why not all data in 1 sheet (instead of several sheets),

    2) and all data in 1 range (instead of serveral ranges).

    It makes it much easier to analyze the data.

  14. #14
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    As for post 12 >> Is everything clear now?

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum items' total in all sheets

    Maybe you are able to answer the questions in #13.

  16. #16
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    @oeldere
    This is the structure of the workbook
    I have one main sheet which is named "Store" and other sheets is considered the sales for every day (similar to report) and it is required to put the data in these other sheets in two lists (so as be easy to be printed) ..
    So I will have many sheets or reports and I have to keep them all in this way.
    Hope it is clear now
    I know it is complicated issue but I have an idea of using temporary sheet that gather information from all these sheets and treat them easily as this temp sheet will be one sheet and one range (as desired) and at last to have the results copied and pasted ..

  17. #17
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Sum items' total in all sheets

    Add this function:

    Please Login or Register  to view this content.
    Now just enter '=GetItemTestCount(B4)' in cell F4 and copy down.

  18. #18
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sum items' total in all sheets

    @cyiangou
    Thanks you very very much
    I thought for a moment that my request is impossible ..the UDF function works like charm
    Thanks a lot for second gift for today (But the first gift is still needs some fixes)

    Thanks a lot for this great help

+ 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. Total sum of items with attribute in row
    By Staszkinson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2015, 06:18 AM
  2. [SOLVED] Coun total items
    By Abu Rayane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2015, 10:18 AM
  3. [SOLVED] How to find % of total for all the items in different categories
    By tantcu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2013, 06:39 PM
  4. Sum up the total items in the dashboard
    By kachuen2006 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-14-2013, 01:45 PM
  5. not able to total items from other sheets
    By ebeeny in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-13-2010, 09:46 AM
  6. minus items off of total
    By dubking in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-26-2010, 09:39 AM
  7. [SOLVED] How to total like items
    By Cosmo in forum Excel General
    Replies: 2
    Last Post: 04-18-2006, 07:25 PM

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