+ Reply to Thread
Results 1 to 13 of 13

SUMIFS of a list from a list

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Red face SUMIFS of a list from a list

    Hello all,

    I'm having a hard time figuring out if this needs to incorporate a match function in there.

    Essentially, what I'm trying to do is consolidate a formula that's in Column E all into Column D. Currently column E does it manually but I need to incorporate the lookup functionality into column D so it's all done there without having the luxury of changing what's in the Data tab or adding more columns to the Analysis tab.

    Each Breakdown # is a group of jobs, and I want Column D to pull the sum of hours from the Data tab for that group of jobs at each line. I then want to divide this by the total hours in that whole initiative. In SQL teams, this would be a GROUP BY..

    THANK YOU!!
    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,719

    Re: SUMIFS of a list from a list

    How about this?

    =SUMIFS(Data!B:B,Data!A:A,">="&ROUNDDOWN(C2,-2),Data!A:A,"<"&ROUNDUP(C2,-2))/SUM(Data!B:B)
    Last edited by AliGW; 09-13-2018 at 01:34 AM.
    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
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Re: SUMIFS of a list from a list

    Thank your response. This does not work because in the larger data set, the job codes are not nearly as clean as in the example, and we have some that are 100s that belong in the 1.2 category and vice versa. The only distinguishable way to group the job codes is by the breakdown #.

    I hope this helps!

  4. #4
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Re: SUMIFS of a list from a list

    I've updated the sample a bit to help illustrate what I want to accomplish which is essentially combining the formula for Columns D and E into just one in column D.
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS of a list from a list

    Based on the sample from post #4, try this:

    =SUMPRODUCT((B$2:B$8=B2)*(C$2:C$8=Data!A$2:A$8)*(Data!B$2:B$8))

  6. #6
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Re: SUMIFS of a list from a list

    Quote Originally Posted by 63falcondude View Post
    Based on the sample from post #4, try this:

    =SUMPRODUCT((B$2:B$8=B2)*(C$2:C$8=Data!A$2:A$8)*(Data!B$2:B$8))
    Thank you. So this works if the sorting of the data does not change, but as and when a piece is added in the same format, the look up does not work because I think it's using the row numbers as an index.

    Column D is showing this formula, and Column E shows what the value should be.
    Attached Files Attached Files

  7. #7
    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,719

    Re: SUMIFS of a list from a list

    So how many more changes to the sample data will be required before we get something truly representative to work with?

    Make sure, when you provide sample data, that it takes everything into account.

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: SUMIFS of a list from a list

    As per your required data, i don't understanding of your logic.
    As i understanding, as per you job, the total should be in job group i.e. 100+ but <=200, 200+ but <=300, .... so on.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  9. #9
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Re: SUMIFS of a list from a list

    Not necissarily, the job # is just a randomly assigned number. The only grouping is being done by the key in column B

  10. #10
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: SUMIFS of a list from a list

    But no co relation each other. How to find out?

  11. #11
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Re: SUMIFS of a list from a list

    No correlation. They are assinged as new jobs open up

  12. #12
    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: SUMIFS of a list from a list

    Edited
    Quote Originally Posted by hpatel517 View Post
    ... This does not work because in the larger data set, ...
    Quote Originally Posted by AliGW View Post
    So how many more changes to the sample data will be required before we get something truly representative to work with?

    Make sure, when you provide sample data, that it takes everything into account.
    Something you haven't mentioned and no one has asked: How many rows of source data will there be and at most how many rows of output do you anticipate?
    Reason being the following is an array formula. If you are not aware of it array formulas are resource hungry. If there are too many or the arrays too large the workbook will take a performance hit. End edit

    Try array entering this in E2 and fill down. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 09-16-2018 at 01:52 PM.
    Dave

  13. #13
    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: SUMIFS of a list from a list

    Here's another. Still an array formula, but does not need Ctrl + Shift + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Sumifs value against dropdown list
    By Vandini.S in forum Excel General
    Replies: 8
    Last Post: 01-29-2016, 03:51 AM
  2. [SOLVED] sumifs for expanding list
    By ammartino44 in forum Excel General
    Replies: 10
    Last Post: 08-10-2015, 08:27 PM
  3. [SOLVED] Sumifs and countifs of values that are ON a List and NOT on the list
    By zed369 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-15-2015, 05:54 PM
  4. Sumifs with one criteria being a list
    By lorber123 in forum Excel General
    Replies: 6
    Last Post: 09-22-2014, 11:11 AM
  5. [SOLVED] SumIFs, using a list as possible criteria...
    By DeeRok in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-30-2014, 07:30 PM
  6. Replies: 3
    Last Post: 04-22-2014, 03:30 PM
  7. SumIfs Drop Down List
    By Merlin54k in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 06:59 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