Possible to capture negative time errors?

A

Android

In my worksheet, a summation of time differences can be negative at times
during the day. Is there a way to capture it and display a text (e.g.,
"-ve").?

Functions such as ISERROR, and ISERR do not seem to handle it.

Android.
 
J

Jason Morin

While you can use negative time in calculations, you're
right, you can't display the actual value. For display
purposes, try:

=IF(B1>=A1,TEXT(B1-A1,"[h]:mm:ss"),TEXT(A1-B1,"-
[h]:mm:ss"))

HTH
Jason
Atlanta, GA
 
B

bj

you can select the cells with the calculation and use
<format><Cells><Custom> and enter
#;"-ve";#
This will display the text when the cell is negative.
 
A

Android

Thank you for the answers.

Android.

bj said:
you can select the cells with the calculation and use
<format><Cells><Custom> and enter
#;"-ve";#
This will display the text when the cell is negative.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top