Negative hh:mm to Decimal format

103392

New Member
Joined
Aug 21, 2006
Messages
9
I have a dataset exported from a Time & attendance system. The dataset format is in hh:mm, e.g., 24:45 equals 24.75 hours.

The dataset contains total hours distributed by employee (row) and pay code (column). Some pay code totals are negative, so when I export to Excel 2010 some fields will contain values that look like this: -56:00.

When I use /24 to reformat the cells to decimal values, the cells with negative values do not calculate correctly, obviously because the first character is a minus sign.

How do I convert the negative time value, e.g.: "-56:00" -- to a negative decimal value: "(56.00)"?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Er, yes, sorry...typing too quickly, the "/24" should have been "*24"...I am multiplying by 24. Sorry for that confusion.
 
Upvote 0

Forum statistics

Threads
1,223,594
Messages
6,173,252
Members
452,506
Latest member
Bradnewbie

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