What is the best formula for counts halfday leave?

Jojo3008

New Member
Joined
Nov 30, 2020
Messages
4
Office Version
  1. 2010
Platform
  1. Windows
Hi All,

Really appreciate if anyone can help me on this?
To get the formula that I already used =NETWORKDAYS(D5,E5,T_HOLS[HOLIDAY]) + I want the formula can count on my halfday leave that I
already capture with H1. Please help me.
Thank you.


1606724659644.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi
WelCome to MrExcel Message Board

Change formula to this:
Excel Formula:
 =NETWORKDAYS(D5,E5,T_HOLS[HOLIDAY])-IF(G5="h1",0.5,0)

And change Column format to General or Number Again.

And forgot to ask if your holidays is Saturday & Sunday, You can remove this part ,T_HOLS[HOLIDAY] from formula.
 
Upvote 0
Solution
Also if you say what is your holidays and half days, I can set new formula.
 
Upvote 0
Hi
WelCome to MrExcel Message Board

Change formula to this:
Excel Formula:
 =NETWORKDAYS(D5,E5,T_HOLS[HOLIDAY])-IF(G5="h1",0.5,0)

And change Column format to General or Number Again.

And forgot to ask if your holidays is Saturday & Sunday, You can remove this part ,T_HOLS[HOLIDAY] from formula.
Thank you. It work! ??
 
Upvote 0
You 're Welcome. and if you have specific days for holidays ( for example Friday) and Halfdays (e.g. Thursday) , I can change it to weekdays.
 
Upvote 0
You 're Welcome. and if you have specific days for holidays ( for example Friday) and Halfdays (e.g. Thursday) , I can change it to weekdays.
Actually I try to create Leave Database that can link all in one that can have report or summary for individual, by department, by monthly and yearly report. ?
 
Upvote 0
Actually I try to create Leave Database that can link all in one that can have report or summary for individual, by department, by monthly and yearly report. ?
Already create and half way in progress, but looks like still new a formula to make the link
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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