+ Reply to Thread
Results 1 to 10 of 10

Populate data only when project is "complete"

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Populate data only when project is "complete"

    Hi guys,

    I am putting the finishing touches on a spread sheet and only have one last thing to do. Attached is a spread sheet for reference.

    You will see in the April tab that there is a box with "Comp" labeled at the end of the data. Once a particual project has been complete the idea is to put an x (or otherwise marked) in that box and have the totals page only count those numbers IF the project is complete. Anything that does not have the x in the completed box should not transfer to the total tab.

    One problem I am running into is that I already have formulas in the cells of the totals tab so I'm not sure how to put multiple forumlas into a cell or if it can be done.

    I have been searching thru the forum to see if I could figure this out on my own but I'm not coming up with anything that seems like it would work in my situation. Any help on this would be a huge benefit, my boss wants this spread sheet done ASAP - as most bosses do

    Thank you!
    Andreahelp1.xlsx
    Last edited by oniete1997; 05-21-2012 at 08:23 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Populate data only when project is "complete"

    hi oniete1997, where is this Total tab u were referring to? Sheet2? and when u say count those numbers, u mean to sum up those with an x? so what numbers do we sum?

    anyway, just something extra u can use. Select the range from A3:L20. Go to Home -> Conditional Formatting - > New Rule - Use a formula to determine which cells to format
    Insert this formula:
    =$O3="x"
    Choose "Format" & choose the colour you want. Click OK. This way, the row highlights by itself when it has an x marked in Column O.

  3. #3
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Populate data only when project is "complete"

    The information I'm looking for is the labor and cost per hour to sum together in the total sheet on sheet two only when an x has been put in the complete box. The totals for complete projects have to be kept seperate from those that are still in progress.

  4. #4
    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
    53,048

    Re: Populate data only when project is "complete"

    i added to the formula in sheet2 G6, but am unable to test it, because it links to a file on your network....

    =IF(ISERROR(VLOOKUP(A6,April!$B$3:$B$13,1,FALSE)),"",AVERAGEIF(CODEAP,A6,CKAP))

    let me know if this gives you what you need?
    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

  5. #5
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Populate data only when project is "complete"

    help 2.xlsxI hav attached a new spread sheet that is not linked to my network plus an explanation on the page to reference.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Populate data only when project is "complete"

    u are using Excel 2007, so i suppose u have the SUMIFS formula. Otherwise, u can use SUMPRODUCT
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  7. #7
    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
    53,048

    Re: Populate data only when project is "complete"

    sorry for the delay. before i try to play around with your 2nd file (which is considerably different to your original file), did you try my suggestion in the 1st file you uploaded? like i said, i was unable to test it due to links to your network, and i was hoping that you would test it for yourself before sending another file?

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Populate data only when project is "complete"

    with regards to benishiryo
    here's with your named ranges using sumifs

    =SUMIFS(APCOST,APPROJECT,A2,APCOMPLETE,"=x")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  9. #9
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Populate data only when project is "complete"

    VLADY - thank you very much, that code worked awesome and i understood it very easily with my codes in there.

    FDibbins - When i put the code in that you sent me it kept averageing all of lines together instead of the seperation that I was looking for but I do appreicate the help,

    thank you everyone who helped with this, it is excatlly what i was looking for!

  10. #10
    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
    53,048

    Re: Populate data only when project is "complete"

    main thing is, your question was resolved

+ 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