Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Formula to convert hours to decimal

Posted on 2013-01-31
3
Medium Priority
?
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

719 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