+ Reply to Thread
Results 1 to 21 of 21

PRODUCTSUM for different quantities

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    PRODUCTSUM for different quantities

    A problem I am having is summing hours based on a given oil filter. I want to sum the hours on the first filter for Bus 2 in K4 and same for Bus 1 in the row above. The criteria is oil change: yes or no? If yes, it counts that current time for the next oil filter similar to the example in the attached. If no, the hours will cumulate under one filter in K4 until "yes", K5 will start a new cumulative sum. Data will constantly be updated and added so the oil filters will also grow and expand.

    I am guessing that I might have to do some conditional manipulation of the data in order for this to work; similar to how a dynamic graph works with its data constantly being updated except with sums and tables; I'm not too worried about graphs here but data grouping and manipulation.
    Attached Files Attached Files
    Last edited by T86157; 06-04-2012 at 09:45 AM.

  2. #2
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Anyone have any suggestions, ideas or can point me in the right direction?

  3. #3
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Is this problem improbably impossible? Or would the formula be a real challenge to put together?

  4. #4
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Anyone have a different solution to finding the hours per change? Not sure what would be the best way to signify each blade change duration.

  5. #5
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Bumping this thread. Still need help.
    Last edited by T86157; 06-19-2012 at 09:43 AM.

  6. #6
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Bumping this thread. Still need help.

  7. #7
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Bumping this thread. Still need help.

  8. #8
    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: PRODUCTSUM for different quantities

    looking at your examples, i see that you are adding a "yes" value with a "no" value. shouldnt that be the other way round? as in...the filter was changed, so now we start recording how long before the next change?

    it almost looks like you are starting to track the filter life from the start of the time that it got changed at the end of that shift (if that makes any sense lol) ie, we change it tonoght, but you start adding from this morning?
    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

  9. #9
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Quote Originally Posted by FDibbins View Post
    looking at your examples, i see that you are adding a "yes" value with a "no" value. shouldnt that be the other way round? as in...the filter was changed, so now we start recording how long before the next change?

    it almost looks like you are starting to track the filter life from the start of the time that it got changed at the end of that shift (if that makes any sense lol) ie, we change it tonoght, but you start adding from this morning?
    You are correct. The initial values were recorded but were not factored in at time of the oil change.

  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: PRODUCTSUM for different quantities

    ok so which numbers are we using then? should i move them down to line up, or can you provide an updated file?

  11. #11
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    FDibbins,

    Cell K2 would show the first filter or the hours ran for Car 1 from "Yes" to the last "No". The second filter for Car 1 would be shown in L2.

    Car 2 filters and hours would be listed below in K4.

    This might make the equation more complicated but instead of having "Yes" the brand of the filter is labeled there to show not only the hours placed on the filter but what brand it is too. This would have the same funcationality as "Yes" to the last "No" except now it is Brand to last "No".
    Attached Files Attached Files
    Last edited by T86157; 06-21-2012 at 07:19 PM.

  12. #12
    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: PRODUCTSUM for different quantities

    i added a helper column K (hide if you want). Check the values under the values you had under your filter numbers, see if they are what you want?

    to get the Brand totals, you will have to fill them all in 1st, then you can modify the ranges in my formula for them too

    hope this helps?
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    FDibbins, the sums for Car 1 are including Car 2 hours as well for the filters. The filter numbers are not exactly corresponding. The rows of raw data are not necessarily in order. Car 1, Car 1, then Car 2 hours might be logged and then Car 1 appears again. I am guessing it would have to be a sum product to filter car, and then the filter would have to correspond when there is a filter change. The filter change number appears to change everytime there is a "Yes" regardless of Car 1 or Car 2.

  14. #14
    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: PRODUCTSUM for different quantities

    the way the formula was written was prercisely to change the filter number when the "yes" changed.

    I can understand how the "brand" will change (or not) from 1 change to the next, but are you saying that you take a filter off 1 car and put it on another car part way thtough the test??

  15. #15
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    Car 1 has a separate filter from Car 2. I am testing two different cars simultaneously each day. Car one has a filter that will be used and can possibly be changed before Car 2's filter changes or the latter.

  16. #16
    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: PRODUCTSUM for different quantities

    ok, so a filter that is put on a car will stay on that car until the test is done. i understand that each car's filter change is indepenent from the other

  17. #17
    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: PRODUCTSUM for different quantities

    hmm mm can you sho me how you arrive at the values you have for filters 2, 3 and 4 plz?

  18. #18
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    The values you see for filters 2, 3 and 4... those were me trying to mess around. What I was doing originally was manually filtering all the times for Car 1 and manually selected the values to sum up in the =sum() function for each filter.

  19. #19
    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: PRODUCTSUM for different quantities

    maybe what you are trying to achieve would be easier to do if you seperated the car 1 and car 2 data (time and machine time). that would make isolating the info for each car much simpler, beacuse i am unable to see where car 1 time stops and car 2 time starts...the filter times at between the "yes's" seem to all apply to car 1, yet you have a car 2 in the middle of the 2 "yes's"

    as requested in my previous post, please tell me what values you expect to have, and how you arrive at them?

  20. #20
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    The reason I don't separate car 1 and car 2 data is because of how it is written on a time sheet. It is easier to just read down the list and enter in excel. I can just stare at the time sheet and not have to look at where I am typing.

    But as far as the filters, the information you requested here it is:
    Car 1
    Filter #1 Filter #2 Filter #3 Filter #4 Filter #5 Filter #6 Filter #7 Filter #8 Filter #9
    10.42 12.17 12.17 12.42 15.67 4.75 8.50 20.25 6.50
    Brand #1 Brand #1 Brand #1 Brand #1 Brand #1 Brand #2 Brand #1 Brand #3 Brand #3

    Car 2
    Filter #1 Filter #2 Filter #3 Filter #4
    50.42 22.33 6.83 3.33
    Brand #1 Brand #1 Brand #3 Brand #3


    Those are the hours that the filters should be for each filter that has been used.

  21. #21
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: PRODUCTSUM for different quantities

    FDibbins, any new updates? Questions?

+ 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