Hi All,
I have a small issues. My guys record downtime at a station, but because their stations are so far apart sometimes they duplicate this time. I was wondering how I could remove the duplicate timings. My report is as follows;
A B C D E
Date Time Date Time
[TABLE="width: 386"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]14:35[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]14:45[/TD]
[TD="align: right"]10 [/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]15:50[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]16:23[/TD]
[TD="align: right"]33 [/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]22:00[/TD]
[TD="align: right"]360[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:30[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]16:40[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:55[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]17:10[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]17:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]17:15[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]18:04[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]18:10[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]18:30[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]19:00[/TD]
[TD="align: right"]30[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]19:38[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]19:51[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]20:05[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]20:10[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]20:28[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]20:32[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]21:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]21:20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]21:32[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]21:36[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]22:37[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]23:37[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]23:45[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]23:50[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]23:55[/TD]
[TD] 22/04/2014[/TD]
[TD="align: right"]00:05[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]22/04/2014[/TD]
[TD="align: right"]00:15[/TD]
[TD] 22/04/2014[/TD]
[TD="align: right"]00:25[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
I so far have come up with
=IF(C2=C3,(IF(OR(I3="REASON CODE",I3=0),"0",IF(D2>B3,(E2+E3)-E2,"0"))),0)
But it comes up with minus figures for the 2nd row and will only subtract 10 minutes from the 3rd row
Really stuck on this one, any help appreciated
Gareth
I have a small issues. My guys record downtime at a station, but because their stations are so far apart sometimes they duplicate this time. I was wondering how I could remove the duplicate timings. My report is as follows;
A B C D E
Date Time Date Time
[TABLE="width: 386"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]14:35[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]14:45[/TD]
[TD="align: right"]10 [/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]15:50[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]16:23[/TD]
[TD="align: right"]33 [/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]22:00[/TD]
[TD="align: right"]360[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:30[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]16:40[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]16:55[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]17:10[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]17:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]17:15[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]18:04[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]18:10[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]18:30[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]19:00[/TD]
[TD="align: right"]30[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]19:38[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]19:51[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]20:05[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]20:10[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]20:28[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]20:32[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]21:00[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]21:20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]21:32[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]21:36[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]22:37[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]23:37[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]23:45[/TD]
[TD] 21/04/2014[/TD]
[TD="align: right"]23:50[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]21/04/2014[/TD]
[TD="align: right"]23:55[/TD]
[TD] 22/04/2014[/TD]
[TD="align: right"]00:05[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]22/04/2014[/TD]
[TD="align: right"]00:15[/TD]
[TD] 22/04/2014[/TD]
[TD="align: right"]00:25[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
I so far have come up with
=IF(C2=C3,(IF(OR(I3="REASON CODE",I3=0),"0",IF(D2>B3,(E2+E3)-E2,"0"))),0)
But it comes up with minus figures for the 2nd row and will only subtract 10 minutes from the 3rd row
Really stuck on this one, any help appreciated
Gareth