+ Reply to Thread
Results 1 to 9 of 9

Help on a summing a range of values from one tab to another

  1. #1
    Registered User
    Join Date
    05-01-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2010
    Posts
    35

    Help on a summing a range of values from one tab to another

    Hello excel gurus:

    Good day - I am working on an budget template with 2 tabs. One tab holds weekly data and the other tab tabulates the weekly data into monthly data.

    I have attached a sample of the file. This sample file of course is very basic but the actual file has thousands of lines of data but essentially the structure is very similar.

    Currently, in the 'monthly data' tab I'm using a SUMIFS function to sum a range from the 'weekly data' tab. I believe however, that a superior function or combined function could be used instead which will tabulate the data from the 'weekly tab'. I'm thinking either SUMPRODUCT or an INDEX/MATCH or maybe a VLOOKUP combined with a SUMIFS. I prefer not to use SUMIFS because the weekly data is not so neatly listed and there are blank spaces in between lines. With the SUMIFS i have to keep on changing the range which is quite cumbersome.

    The function has to look at 2 criteria: Lookup a code in column A of the 'monthly tab' and then sum by month all of the values relating to this specific code which exists in the 'weekly data' tab.

    For example, in cell B4 of the 'monthly tab' I would like the formula to look up '4000' (Cell A4 in the monthly tab) in the 'weekly data' tab and sum the values in the range B3:F3 from the 'weekly data' tab. I want to make clear that I do need the function to lookup a value from a row and a column however the the function is not returning one value but a sum of range of values.

    Any help would be much appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Help on a summing a range of values from one tab to another

    I don't quite see the issue. Please, would you repost the attachment, this time with the monthly tab manually mocked up to show what you really want.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Help on a summing a range of values from one tab to another

    Try:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 08-17-2017 at 01:14 AM.
    Ben Van Johnson

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Help on a summing a range of values from one tab to another

    Or Try

    B4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag towards and down.!!
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help on a summing a range of values from one tab to another

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Registered User
    Join Date
    05-01-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2010
    Posts
    35

    Re: Help on a summing a range of values from one tab to another

    Thanks everyone for providing a solution. I think all solutions work great but I really like the Sumproduct one. Thanks for taking the time to offer a solution - you guys are lifesavers!

    One other question for you: The Weekly data tab is constantly changing and there are times when new rows are inserted as there are new GL codes being added constantly. Currently the Weekly data tab has approximately 1000 rows and the Monthly tab has 5000 rows in my actual budget template (I had only shared the sample template which was fake). I don't think the workbook will grow substantially from what it is now, but just wondering if you guys recommend that I name ranges using the name manager feature in excel or some other method? I'm just wondering if there is an easier way to do this as I have to keep on adding/inserting rows in both the weekly data and then consequently update the monthly tab to reflect what is in the weekly tab. My concern is that if the worksheets grow in the number of rows then I also have to update the references/ranges in name manager - this is particularly challenging as I have A LOT of weekly tabs not one. I realize this may be outside the scope of this particular thread. Any recommendations would be greatly appreciated!!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help on a summing a range of values from one tab to another

    It's completely in the scope of this thread.

    It depends on which approach you use. You state a preference for SUMPRODUCT. In that case I would recommend Dynamic Named Ranges. Perhaps even consider Tables ... if the formula syntax isn't too much to contend with. They both "grow" with additional data. No need to edit formulas exists. Just be sure to steer clear of referencing whole columns/rows with SUMPRODUCT. That taxes the system unnecessarily.

    If you are willing to reconsider the SUMIF approach you can reference whole columns/rows with little or no detriment to performance. That is another way to "future proof" formulas. In the example I posted #5 I attempted to demonstrate that referencing rows 3:1000. You could make that 3:10000 or larger ... beyond the limit of what you anticipate ... and it would still work.

    Did this help?

  8. #8
    Registered User
    Join Date
    05-01-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2010
    Posts
    35

    Re: Help on a summing a range of values from one tab to another

    Many thanks for your feedback FlameRetired. I think I will reconsider using the SUMIFS approach as that way I don't have to keep on changing the ranges. Awesome!! thanks again for your help.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help on a summing a range of values from one tab to another

    You're welcome. Thanks for the feedback.

+ 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. [SOLVED] Summing values in a range w/ criteria
    By Greenlight in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2015, 04:32 PM
  2. [SOLVED] Summing Values Between A Range Using And Criteria
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2015, 10:47 AM
  3. Using countifs with date range, and summing values in that range
    By bmcoonan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2013, 11:28 AM
  4. Replies: 2
    Last Post: 07-23-2009, 03:55 AM
  5. Summing non hidden values in a range
    By starguy in forum Excel General
    Replies: 39
    Last Post: 05-04-2006, 04:40 PM
  6. Summing values within a range
    By rmellison in forum Excel General
    Replies: 7
    Last Post: 09-02-2005, 08:05 AM
  7. Summing the N Largest Values in a Range
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:18 AM

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