+ Reply to Thread
Results 1 to 13 of 13

Calculate total cost/time per completed project.

  1. #1
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Calculate total cost/time per completed project.

    Hey all,

    I have a set of data I'm trying to calculate the cost / time per completed project. A completed project is one that has gone to "Prod". (production).

    I want to figure out a formula that takes the below data and calculates for me the COST (or time) spent on projects that are complete (have "Prod") and tell me what period it was completed in.

    It would be amazing to figure out a user friendly / maintainable / scale able way of doing this

    Example Final: (this will ignore B)
    Period: 11 -> manually entered
    Cost: 410 -> no idea how this work. thoughts (Index + Aggregate) or using pivot table?
    Time: 148 -> (same as above)
    Projects: 1 -> (Countifs should work here)


    Example Data
    Project A:
    Project Name Project Stage Period Cost Time Spent
    A Dev 8 105 21
    A Sit 9 108 53
    A Bat 10 94 55
    A Prod 11 103 19
    B Dev 1 66 48
    B Sit 5 70 27
    B Bat 10 53 70
    C Dev 1 90 37
    C Sit 6 94 27
    C Prod 9 48 70

    sample output table i'd like to recreate automatically.

    Untitled.png
    Last edited by Vague-ly; 02-17-2019 at 10:02 PM.

  2. #2
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    ... merged

  3. #3
    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,946

    Re: Calculate total cost/time per completed project.

    Hi, welcome to the forum

    Im really not sure how you arrive at your output table, can you walk us through what you are doing, please?
    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

  4. #4
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    yea sure thing! sorry for confusion - it's a confusing problem...

    so basically step 1. setup your basic output table (col1 = period (1 - 12 months). col 2 = aggregate cost. col 3 = projects/releases.
    A project / release is counted based on number of "prod" in stage. each prod = 1 release.
    When you see prod, that means a project is complete. When it's complete, you add the cost for that project. example; in November, project A completed. The cost in november = sum of all costs for project A.

    does that help?

  5. #5
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,475

    Re: Calculate total cost/time per completed project.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  6. #6
    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,946

    Re: Calculate total cost/time per completed project.

    See if this is heading in the right direction?
    I
    J
    1
    A
    2
    Period
    3
    1
    0
    4
    2
    0
    5
    3
    0
    6
    4
    0
    7
    5
    0
    8
    6
    0
    9
    7
    0
    10
    8
    105
    11
    9
    213
    12
    10
    307
    13
    11
    410
    14
    12
    410

    J1=Name
    J3=IF(COUNTIFS($A$3:$A$12,$J$1,$B$3:$B$12,"Prod")>=1,SUMIFS($D$3:$D$12,$A$3:$A$12,$J$1,$C$3:$C$12,"<="&I3),0)
    copied down

  7. #7
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    hi, i'm attempting to post the document here via attachment

    fundamentally this is how i think about it:
    let table x = table that we will put this formula and be structured as the OUTPUT table. (same as the 3 column table as per previous post)
    Let table y = table for input data 5 column table as per previous posts.
    assume each project can have multiple stages not listed and repeating stages, but only 1 prod stage.

    0. look at the table x, col1row1 to identify period. index()
    1. Look (match) into column B - Stage and identify "Prod"
    2. Return Project Value - A,B,C,D,E if found matching above
    3. aggregate all values returned by value above sumif
    4. Loop for all other "prods" in period??????????????????????? how............... stuck here;
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    i see, your formula almost resembles it, except i don't want to display any values in periods 8,9,10 or 12 and only in period 11. this is to ensure we only count it once.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Calculate total cost/time per completed project.

    Please try at

    I4 Press Ctrl+Shift+Enter
    =SUM(SUMIFS($F$5:$F$20,$C$5:$C$20,IF(($E$5:$E$20=H4)*($D$5:$D$20="Prod"),$C$5:$C$20)))

    J4
    =SUMPRODUCT(($E$5:$E$20=H4)*($D$5:$D$20="prod")/COUNTIFS($C$5:$C$20,$C$5:$C$20,$D$5:$D$20,$D$5:$D$20))

    Drag I4:J4 down
    Attached Files Attached Files

  10. #10
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,475

    Re: Calculate total cost/time per completed project.

    As you are new here, I shall provide this cross-post link for you this time: https://www.mrexcel.com/forum/excel-...d-project.html

    Our rules require you to declare cross-posting, so please do so in future, if you have cause to do it. Thanks.

  11. #11
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    Quote Originally Posted by AliGW View Post
    As you are new here, I shall provide this cross-post link for you this time:

    Our rules require you to declare cross-posting, so please do so in future, if you have cause to do it. Thanks.
    Thanks, this is extremely helpful reminder. I really appreciate you looking out for my thread. Please visit the other link for anyone else viewing, there's quite a bit of discussion there, although no solution has been found. I am working on one as well.

  12. #12
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,475

    Re: Calculate total cost/time per completed project.

    Keeping us updated is your job, please. Although we ask you to provide the link, there is no expectation that our members should need to follow it in order to help you. Thanks.

  13. #13
    Registered User
    Join Date
    02-17-2019
    Location
    Canada
    MS-Off Ver
    office 365
    Posts
    7

    Re: Calculate total cost/time per completed project.

    Quote Originally Posted by AliGW View Post
    Keeping us updated is your job, please. Although we ask you to provide the link, there is no expectation that our members should need to follow it in order to help you. Thanks.
    Thank you much - appreciate. No new news yet. no need link go if no want. me keep update here. i post all info need. hope me clear.

+ 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] Calculate cost per week for project
    By kingcordova in forum Excel General
    Replies: 6
    Last Post: 04-09-2019, 07:50 AM
  2. VBA Code to calculate the cost per/sqm and total lt
    By Roampie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2017, 05:35 AM
  3. [SOLVED] Calculate Total Cost of value associated with a word
    By Chasermelb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2016, 05:28 AM
  4. [SOLVED] Formula to calculate a cost per day until total
    By Reno Nex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2014, 11:16 AM
  5. [SOLVED] Template for tracking project completion dates and simple metrics? % Completed on time
    By Shrad013 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2013, 10:28 AM
  6. [SOLVED] Outputing engineering cost based on total cost of project. Looking for help with matching
    By cadamhill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2012, 09:31 PM
  7. Replies: 8
    Last Post: 06-05-2012, 01:16 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