I hope all is Well! I have been trying to come up with a worksheet function that would eliminate some tedious data crunching.
I need to sum the Duration (column D), if column A and Column B are matched between the the rows. Th tricky part is they only need to sum if the start time are within 3 hours (.125 as excel time number). Also, there can be as many as 6 items that need to be summed but all 6 items need to be within the 3 hour time frame.
I have tried several variations of worksheet functions, but have been unsucessful. I will use a macro but I dont even know where to start.
Thanks in Advance,
DeAnte
COLUMN A COLUMN B COLUMN C COLUMN D
Cause1Name Cause2Name StartDate Duration
STARTUP NORMAL STARTUP 1/5/2009 12:15 4.2
STARTUP NORMAL STARTUP 1/5/2009 12:19 12.3
STARTUP START-UP 1/5/2009 12:32 0.5
CHANGEOVER FLAVOR CHANGE 1/5/2009 19:18 10.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 4:09 3.9
SANITATION SHORT SANITATION1/6/2009 5:56 40.7
SANITATION SHORT SANITATION1/6/2009 6:37 0.6
CHANGEOVER FLAVOR CHANGE 1/6/2009 6:42 11.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 9:39 15.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 13:08 60.3
CHANGEOVER FLAVOR CHANGE 1/6/2009 14:08 8.3
I need to sum the Duration (column D), if column A and Column B are matched between the the rows. Th tricky part is they only need to sum if the start time are within 3 hours (.125 as excel time number). Also, there can be as many as 6 items that need to be summed but all 6 items need to be within the 3 hour time frame.
I have tried several variations of worksheet functions, but have been unsucessful. I will use a macro but I dont even know where to start.
Thanks in Advance,
DeAnte
COLUMN A COLUMN B COLUMN C COLUMN D
Cause1Name Cause2Name StartDate Duration
STARTUP NORMAL STARTUP 1/5/2009 12:15 4.2
STARTUP NORMAL STARTUP 1/5/2009 12:19 12.3
STARTUP START-UP 1/5/2009 12:32 0.5
CHANGEOVER FLAVOR CHANGE 1/5/2009 19:18 10.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 4:09 3.9
SANITATION SHORT SANITATION1/6/2009 5:56 40.7
SANITATION SHORT SANITATION1/6/2009 6:37 0.6
CHANGEOVER FLAVOR CHANGE 1/6/2009 6:42 11.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 9:39 15.0
CHANGEOVER FLAVOR CHANGE 1/6/2009 13:08 60.3
CHANGEOVER FLAVOR CHANGE 1/6/2009 14:08 8.3