Displaying negative time in Excel 2013

T_S_O_P

New Member
Joined
Oct 15, 2013
Messages
3
Hi Mr Excel team

I created a time sheet last year and with the help of the friendly staff here was able to come up with a formula that showed time owing in red, over time in green and to time, i.e. 0 hours as black with the following formula:

=IF(U5=0,"",U5-$H$1/39)

H1 is the staff members contract dived by the length of weeks in the year it is worked. U5 is the total hours worked that week.

The cell in which the formula is places is formatted is custom +h:mm;-h:mm;0

It worked in Office 2007

It doesn't work in Office 2013

Minus hours and zero hours are displaying as a continuous line of ########################, in red.

T_S_O_P
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You would need to change to the 1904 date system in Options. Be aware that that will change any manually-entered date to 462 days later.
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top