While calculating difference in your worksheet, you may require subtracting two time values. If you try subtracting a time elapsed earlier from a recent time, you will not be displayed with a negative value as expected.

Instead, Excel displays to you a series of hash symbols 1#J. This generally happens because Excel, for Windows users by default uses the 1900 date system. You can fix this unwanted problem.
o Start "Excel 2007" and click the "Office button".

o Click the "Excel Options" button.

o In the "Excel Options" dialog box that appears, select the "Advanced" option, on the left panel.

o Scroll down till you reach the "When calculating this workbook:" section.

o Check the "Use 1904 date system" option.

o Click "OK" to save the changes.

o Your time will now be displayed along with a minus!-) sign. The 1904 date system is used as the default date system for MAC users of Excel.

Name:  Displaying negative time values.jpg
Views: 175
Size:  50.7 KB

If you do not wish to change the default date system for Excel your machine, you can convert the value into a text equivalent. To do so carry out the following steps:

o Presume cell 82 has the earlier time and cell A2 a recently lapsed time.

o Go to the destination cell where the difference should appear.

o Type the formula as .. =IF!82-A2~O, "-" & TEXT(A8S!82-A2!."hh:mm"!. 82-A2]"

As per this formula, you are using three functions, that is, IF!!. TEXT[] and the A8S11 function.

The IF condition checks whether the resultant value is a negative number or not.

If the function returns a true value the A8S!] function converts the value to a positive number and we affix a minus!-] symbol to signify the negative value.

The TEXT[] function, converts the result to a text value.

The .. & .. is used to concatenate two text values.

If the IFII function returns false, the difference of the two values will be displayed as it is.