+ Reply to Thread
Results 1 to 10 of 10

Summing across multiple worksheets

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Aberdeen, SD
    MS-Off Ver
    Excel 2007
    Posts
    15

    Summing across multiple worksheets

    Hello,

    I have a workbook I am attaching, I need to sum across multiple worksheets, based on the value in column B being equal to the 7 - 8 AM time. I need to Sum the value in Column F for each day, and report them on the tab named Dashboard. I started doing it a very manual and tedious way and attempted to try indexing but struggled to get it to work.

    I am sure there is a simple solution but I am just not seeing it.

    Thank you for looking.

    Dan
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Summing across multiple worksheets

    Insert a new sheet, rename it as Begin, and then reposition it so that it is to the left of the Machine2 sheet. Then insert another new sheet, name that one End, and position that between your Machine30 sheet and the Dashboard sheet. You now have a "sandwich" of sheets between Begin and End, with the Dashboard sheet outside this "sandwich". Then, as all your data comes from cell F25 of the machine sheets, you can have this formula in B1 of your Dashboard sheet:

    =SUM(Begin:End!F25)

    and this will add up all the F25 cells from the sheets between (and including) Begin and End.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Kozhikode, Keral, India
    MS-Off Ver
    Microsoft Office home and student 2019
    Posts
    49

    Re: Summing across multiple worksheets

    Hey Pete,

    that was amazing, never knew that,
    Thanks.
    Best Regards
    Chandrajit

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Summing across multiple worksheets

    Well, you learn something new everyday !!

    The advantage of using Begin and End sheets is that you can drag another sheet into that "sandwich" to include it in the totals, or you can drag one outside it to exclude it, so this gives you chance to model different situations if you wish. Also, you can re-position sheets within the range without affecting the totals.

    Pete

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Kozhikode, Keral, India
    MS-Off Ver
    Microsoft Office home and student 2019
    Posts
    49

    Re: Summing across multiple worksheets

    that is really amazing!

  6. #6
    Registered User
    Join Date
    01-14-2012
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Summing across multiple worksheets

    This is a great tip, Its just improved my bowls scoring sheet to the next level

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Summing across multiple worksheets

    Glad to be of help - maybe you can click on the "star" icon on any post that helped you.

    Pete

  8. #8
    Registered User
    Join Date
    08-19-2010
    Location
    Aberdeen, SD
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Summing across multiple worksheets

    Pete,

    That is a great solution very simple. Unfortunately it doesn't quite get me what I want, not all the machines started recording data on the same dates, so summing for example F25 does not match up the dates across all sheets. I think for this to work accurately I really need some sort of code that will index off the date and times on each sheet. Thank you though, I wished your solution would work it is very slick.

    Dan

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Summing across multiple worksheets

    Ah yes, I see that Machine 13 has its corresponding data in row 361. What you can do is insert blank rows in the other sheets so that they all present their data on the same row (i.e. 361) (you can hide the blank rows, so the sheets will still look the same as they do now).

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Re: Summing across multiple worksheets

    Great tip from me as well, for anyone else reading through this thread, just make sure you capitalize the Begin:End.
    Couldn't figure out why it wouldn't work as you said it would until I corrected the spelling.
    Thanks again.

+ 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