Calculating Sick Days for New Employees

eromadm

New Member
Joined
Oct 29, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have employees hired different months of the year and I have to calculate their sick time from date of hire. For existing employees the formula we use to calculate 1/2 day for sick time each month and the formula that I use is: =month(today())/2 for year beginning in January. When I have an employee starting in other months what formula do I use to calculate 1/2 days from start of employment. Example I have employee starting in September what formula do I use.
 
Yes, but we need to know the exact rules/criteria, which is what I am try to get from you!

You included my second question in your quote, but never answered it:
Excel Formula:
What if they were hired on the first day of the month?
Would they receive an accrual for that month?
If you would like my help, please answer that question, as that has a big impact on how we write the formula!
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
OK, it sounds like in order to get credit for a month, they need to be there on the first day and on the last day.

Here is a proof of concept I did with various dates. The blue columns are the intermediate calculations, and the red one is the accrued sick time.

1730309101611.png


So, the formula I have in cell F3 and copied down is this:
Excel Formula:
=DATEDIF(IF(DAY(A3)>1,EOMONTH(A3,0)+1,A3),IF(B3=EOMONTH(B3,0),B3+1,EOMONTH(EDATE(B3,-1),0)+1),"m")*0.5

If you are always calculating from the current date, you can replace all instances of "B3" in that formula with "TODAY()", i.e.
Excel Formula:
=DATEDIF(IF(DAY(A3)>1,EOMONTH(A3,0)+1,A3),IF(B3=EOMONTH(TODAY(),0),TODAY()+1,EOMONTH(EDATE(TODAY(),-1),0)+1),"m")*0.5
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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