+ Reply to Thread
Results 1 to 4 of 4

Dynamic SUMPRODUCT

Hybrid View

  1. #1
    Registered User
    Join Date
    09-08-2018
    Location
    Kamloops, Canada
    MS-Off Ver
    Office 365
    Posts
    86

    Dynamic SUMPRODUCT

    I have received some wonderful help on this forum and now am hoping to take it a step further.

    I have attached a sample book here. The function in cells B7 and B8 is what I have to add up the hours per task. This is what I needed and got from here. I now would like to extend this to get the dollar value per task. I was hoping it would be as simple as adding a second array to the SUMPRODUCT function but that didn't work. I have put in the results I am looking for manually in cells C7 and C8. Is there a way to do this dynamically, integrating the functions in cells B7 and B8?

    As an aside, what I'm ultimately looking for is the table in A20:C22 (dynamic of course). I want to have the cost per task per month, using the hours entered per week per task above.

    Any help is greatly appreciated. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,858

    Re: Dynamic SUMPRODUCT

    In B7

    =SUMPRODUCT(--($H$6:$N$11=$A7),($G$6:$M$11))

    in C7

    =SUMPRODUCT(--($H$6:$N$11=$A7)*($F$6:$F$11),($G$6:$M$11))

    in B21

    =SUMPRODUCT(--($H$6:$N$11=$A7)*($F$6:$F$11)*($G$4:$M$4>=B$20)*($G$4:$M$4<=EOMONTH(B$20,0)),($G$6:$M$11))

    Copy across and down


    The layout of your data could be much improved to a simple columnar format..
    Last edited by JohnTopley; 07-05-2021 at 12:50 PM.

  3. #3
    Registered User
    Join Date
    09-08-2018
    Location
    Kamloops, Canada
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Dynamic SUMPRODUCT

    @JohnTopley Thank you so much. This was amazing!!! It is exactly what I was looking for.

    Related to improving the data, I'm all for improvements. Although I don't know how because I need to give the user (the PM for a project in this case) the ability to set the hours per week per task for an employee (replaced in the sample data by job class for obvious reasons). So other inputs in the case would be the start and end date which the PM would set, which would build the time frame for the project. Then they would add employees in each row, with their job class and their rate. The tasks for each employee per week would be chosen via a drop down menu, and the PM would then decide how many hours that week a person will work on a specific task. This then (through your genius) would build the forecasted amounts per task per month.

    So again, I am all for improvements and know completely that I am not the best at Excel and this could probably be streamlined. However, I can't see it at the moment where it would give the PM the ability to see the data they require to build a forecast for the project.

    Thanks again for your help, @JohnTopley. Truly amazing and I love this forum for people like you.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,858

    Re: Dynamic SUMPRODUCT

    I obviously I can only judge on what I see in your workbook and obviously have no idea what happens in the "background".

    Your feedback indicates a process which appears somewhat more complex than is apparent from your workbook so with such a limited view I cannot comment further other to say a more "standard" format would be a Date column, Project Column, "data" (hours ?) column rather going across a row in the "blocks" you have.

    Glad to have helped and thank you for the rep.

+ 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. Make a sumproduct dynamic
    By Tonx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2021, 02:51 PM
  2. Sumproduct dynamic row
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2020, 06:56 PM
  3. [SOLVED] Sumproduct over dynamic range
    By sipa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-29-2019, 08:20 AM
  4. SUMPRODUCT Dynamic Help
    By St3ff3ns in forum Excel General
    Replies: 5
    Last Post: 01-11-2017, 07:27 PM
  5. [SOLVED] SUMPRODUCT Formula with Dynamic Last Row
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2013, 10:43 AM
  6. Sumproduct with dynamic array
    By benaw in forum Excel General
    Replies: 3
    Last Post: 10-18-2009, 07:24 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