SOLVED

Trying to convert time in decimals into hours and minutes in excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2103676%22%20slang%3D%22en-US%22%3ETrying%20to%20convert%20time%20in%20decimals%20into%20hours%20and%20minutes%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2103676%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20am%20trying%20to%20find%20a%20way%20to%20convert%20calculated%20annual%20leave%20in%20decimals%20to%20show%20in%20hours%20and%20minutes.%20I%20found%20the%20option%20to%20devide%20it%20by%2024%20and%20use%20the%20time%20option%2C%20but%20does%20not%20work%20if%20you%20have%20more%20than%20100%20hours%20for%20example%20the%20outcome%20is%20155.40%20hours%20which%20is%20in%20155%20hours%20and%2024%20minutes.%20If%20I%20use%20the%20Cell%2F24%20and%20the%20time%20option%20the%20outcome%20is%2011%3A24%3A00.%20Any%20idea%20how%20and%20which%20formula%20I%20need%20to%20use%20to%20get%20155%3A24%3F%3F%20I%20am%20not%20a%20super%20user%20of%20excell%2C%20so%20any%20help%20is%20greatly%20appricated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2103676%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etraining%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2103701%22%20slang%3D%22en-US%22%3ERe%3A%20Trying%20to%20convert%20time%20in%20decimals%20into%20hours%20and%20minutes%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2103701%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F945208%22%20target%3D%22_blank%22%3E%40NAtsa195%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20formula%20%3DI21%2F24%20is%20fine.%3C%2FP%3E%0A%3CP%3EApply%20the%20custom%20number%20format%20%5Bh%5D%3Amm%3C%2FP%3E%0A%3CP%3EThe%20square%20brackets%20%5B%5D%20around%20h%20tell%20Excel%20to%20treat%20the%20value%20as%20cumulative%20hours%20instead%20of%20as%20clock%20hours.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, I am trying to find a way to convert calculated annual leave in decimals to show in hours and minutes. I found the option to devide it by 24 and use the time option, but does not work if you have more than 100 hours for example the outcome is 155.40 hours which is in 155 hours and 24 minutes. If I use the Cell/24 and the time option the outcome is 11:24:00. Any idea how and which formula I need to use to get 155:24?? I am not a super user of excell, so any help is greatly appricated.

5 Replies

@NAtsa195 

The formula =I21/24 is fine.

Apply the custom number format [h]:mm

The square brackets [] around h tell Excel to treat the value as cumulative hours instead of as clock hours.

Best Response confirmed by NAtsa195 (New Contributor)
Solution

@NAtsa195 

 

I think you can't use the time format for that because there is no known hour equal to 155.

 

So treat the result as text.  =TEXT(INT(I21),"0")&TEXT((I21-INT(I21))*0.6,".00")

 

That said, as a former HR systems manager myself, I don't follow the logic you're using. I know Excel, so I know how to convert 155.40 to 155.24, but what is the full derivation of the 155.4 in the first place???

 

I can trace back the formulas; I'm not asking you to do that. I'm asking for an English language policy or procedure explanation of how annual leave is earned for a half-time employee.

 

Also, if you're expecting to have this used by other people you have a number of spelling mistakes that should be corrected.

In the opening paragraph:

  • minites should be minutes
  • multiplie should be multiply

Then in cell B22, Annull should be Annual

@mathetes, thank you very much for your help. I am on the right way now. Still figuring out when outcome is negative. I am just a moderate user but more advanced then the rest of our team. I am trying to make it easier for them. Your help is greatly appreciated.

 

Regarding the spellings mistakes, I will proof read it before I am going to distribute the spreadsheet. But as Dutch native they do forgive me when I make spellings mistakes

 

Wishing you a nice weekend,

With kind regards,

Natascha van der Pol

 

@mathetescan I ask you for some more advice. I am successful with my calculation for annual leave changes and converting this to hours and minutes even when it is a minus  (so far, need them to get tested by others).

In my abatement calculation, the minus amount does not always convert to the correct minus amount in hours and minutes. Is there something I am not seeing correctly? Do you have any idea where my thought process is going wrong?

Thank you very much in advance!

@NAtsa195 

 

As I said in a prior post, I have not been able to follow your thinking here, to understand how leave is earned in the first place. What is the rule, the heuristic? How is leave accumulated? How, when leave is used, is that accounted for? How can there be a negative number for leave allowance in the first place? And so forth.

 

You'd need to at the very least if those red numbers are not what you want or expect, please put next to the in some other color what the answer should be and why. Then maybe I can start to trace your logic. As it stands, that's far too complex a worksheet for someone unfamiliar with what you're doing...... I'm happy to try to help, but I need a bit of help from you