Home

Calculating Annual leave

%3CLINGO-SUB%20id%3D%22lingo-sub-899715%22%20slang%3D%22en-US%22%3ECalculating%20Annual%20leave%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-899715%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20set%20up%20a%20simple%20formula%20so%20that%20I%20can%20track%20the%20amount%20of%26nbsp%3B%20leave%20hours%20I've%20accumulated%20each%20month.%3C%2FP%3E%3CP%3EI%20have%20a%20spreadsheet%20that%20tracks%20my%20work%20activities%20(that%20someone%20else%20created).%26nbsp%3B%20Each%20month%20is%20a%20different%20tab%20and%20I%20already%20track%20how%20many%20hours%20of%20leave%20I%20use%20each%20month.%20The%20total%20leave%20used%20for%20the%20month%20is%26nbsp%3B%20cell%20C50%20and%20is%20formatted%20using%20the%20custom%20number%20formatting%20of%20%5BH%5D%3Amm%3B%40%20so%20that%20it%20will%20display%20like%20this%2015%3A30%20(15%20hours%20and%2030%20minutes%20used%20in%20January)%20.%26nbsp%3B%20If%20I%20know%20I'm%20starting%20with%20100%20hours%20and%20I%20will%20add%2014%20hours%20every%20month%20how%20do%20I%20set%20up%20my%20formula%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20easy%20enough%20Starting%20in%20January%20in%26nbsp%3B%20I%20have%20100%2B14-the%20value%20in%20cell%20C50%20then%20in%20Feb%20I%20should%20just%20take%20the%20value%20from%20January's%20leave%20balance%20%2B%2014%20-%20the%20value%20in%20the%20cell%20C50%20and%20so%20on.%26nbsp%3B%20But%20I%20can't%20figure%20out%20how%20to%20get%20this%20to%20work.%26nbsp%3B%20I%20suspect%20you%20have%20to%20do%20something%20specific%20because%20I'm%20working%20with%20time%20values%26nbsp%3B%20as%20my%20formula%20%3D(100%2B14)-C50%20gives%20me%20a%20result%20of%202720%3A30%20which%20makes%20no%20sense%20to%20me%20as%20the%20end%20result%20should%20be%2098%20hours%20and%2030%20minutes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20please%20help%20me%20with%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-899715%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-899741%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20Annual%20leave%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-899741%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422139%22%20target%3D%22_blank%22%3E%40MTtracker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Excel%20one%20day%20is%20integer%201%20and%20an%20hour%20is%201%2F24.%20Thus%20your%20formula%20shall%20be%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3D(100%2B14)%2F24-C50%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eformatted%20as%20%5Bhh%5D%3Amm%3C%2FP%3E%3C%2FLINGO-BODY%3E
MTtracker
Occasional Visitor

I am trying to set up a simple formula so that I can track the amount of  leave hours I've accumulated each month.

I have a spreadsheet that tracks my work activities (that someone else created).  Each month is a different tab and I already track how many hours of leave I use each month. The total leave used for the month is  cell C50 and is formatted using the custom number formatting of [H]:mm;@ so that it will display like this 15:30 (15 hours and 30 minutes used in January) .  If I know I'm starting with 100 hours and I will add 14 hours every month how do I set up my formula?

 

It seems easy enough Starting in January in  I have 100+14-the value in cell C50 then in Feb I should just take the value from January's leave balance + 14 - the value in the cell C50 and so on.  But I can't figure out how to get this to work.  I suspect you have to do something specific because I'm working with time values  as my formula =(100+14)-C50 gives me a result of 2720:30 which makes no sense to me as the end result should be 98 hours and 30 minutes.

 

Can someone please help me with this?

1 Reply

@MTtracker 

In Excel one day is integer 1 and an hour is 1/24. Thus your formula shall be like

=(100+14)/24-C50

formatted as [hh]:mm

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies