If you change the format of the negative value to a number you will see a negative number that can be used in a calculation but that's not very attractive.
Alternatives
Convert to decimal time and use that to do the calculations.
Sheet1
* | A | B | C | D | E |
Start | Finish | Difference | Alloc | Decimal Time Difference | |
| | | | | |
| | | | | |
| | | | | |
<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:73px;"><col style="width:64px;"><col style="width:92px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]10:00[/TD]
[TD="align: right"]2[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]17:30[/TD]
[TD="align: right"]11:30[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]-3.5[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]0[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | E2 | =(INT(D2)*24+HOUR(D2)+ROUND(MINUTE(D2)/60,2))-(INT(C2)*24+HOUR(C2)+ROUND(MINUTE(C2)/60,2)) |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Another method is to have the positive values in one column and the values that should be negative in the other as follows (Note on-schedule is blank in both columns).
Sheet1
* | A | B | C | D | E | F |
Start | Finish | Difference | Alloc | Ahead of Alloc. | Behind Alloc | |
* | | | | | | |
* | | | | | | |
* | * | | | | | |
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]10:00[/TD]
[TD="align: right"]2:00[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]17:30[/TD]
[TD="align: right"]11:30[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]3:30[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: right"]6:00[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]8:00[/TD]
[TD="align: right"]8:00[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | E2 | =IF(D2>C2,D2-C2,"") | F2 | =IF(C2>D2,C2-D2,"") |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4