Solved

Formula to convert hours to decimal

Posted on 2013-01-31
3
252 Views
Last Modified: 2013-02-01
Hello,

Can someone please help me with the attached formula? i would like to show a negative time as a decimal. Can this be done?

Any help will be greatly appreciated!

Thank you!
Copy-of-Formula-to-convert-Hours.xlsx
0
Comment
Question by:vegas86
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 500 total points
ID: 38842365
Hi, vegas86.

You ar ehaving issues with these times because their not in Excel time format. (For example, if you put the formula =ISTEXT(B6) it will return TRUE.

The following formula will handle these cells...
=ROUND(IF(MID(B6,1,1)="-",-24*T(MID(B6,2,9999)),24*T(B6)),2)

Regards,
Brian.
0
 

Author Closing Comment

by:vegas86
ID: 38842409
Thank you for your help and your explanation!! it works perfectly :)
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38843430
Thanks,  vegas86.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question