Employee Vacation & Sick Tracker

kowen

New Member
Joined
Oct 3, 2017
Messages
1
I need help with my current employee and sick and vacation tracker. Vacation starts over on the anniversary of hire date. I have one spreadsheet set up to track days they are absent. I have a SUMIFS formula to return that info to the summary page to calculate how much time taken and how much time remains. My problem is I need to sum only the amount taken within their vacation period so that this automatically starts over every year without me having to go in and delete old dates.

For example: Kevin's hire date is 4/11/2005. His current vacation period is 4/11/2017-4/10/2018 and he has used 8 hours of vacation. On 4/11/2018 his vacation will start over and he will be given 160 hours (no rollovers from last period.)

What formula can be used that will sum only the dates of his current vacation period without having to delete the ongoing record of absences?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the forum...

Should be relatively easy to do with worksheet formulas. All depends on your layout.

Here's a rough example where this entire range is formatted as a table(named Log):


Excel 2010
BCDEFG
2EmployeeHire DateStartStopVacation AllottedTime Used
3Jaromir Jagr10/9/200410/9/201610/8/20171600
4Grant Fuhr1/5/20081/5/20171/4/20181600
5Duncan Keith6/13/20156/13/20176/12/20181600
6Tim Horton3/31/20043/31/20173/30/20181608
7Mario Lemieux2/16/20152/16/20172/15/201816016
Sheet1
<table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF " ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF ;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5 ;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5 ;color: #161120">D3</th><td style="text-align:left">=IF(<font color="#0000FF">TODAY(<font color="#FF0000"></font>)>=DATE(<font color="#FF0000">YEAR(<font color="#00FF00">TODAY(<font color="#800080"></font>)</font>),MONTH(<font color="#00FF00">C3</font>),DAY(<font color="#00FF00">C3</font>)</font>),DATE(<font color="#FF0000">YEAR(<font color="#00FF00">TODAY(<font color="#800080"></font>)</font>),MONTH(<font color="#00FF00">C3</font>),DAY(<font color="#00FF00">C3</font>)</font>),DATE(<font color="#FF0000">YEAR(<font color="#00FF00">TODAY(<font color="#800080"></font>)</font>)-1,MONTH(<font color="#00FF00">C3</font>),DAY(<font color="#00FF00">C3</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5 ;color: #161120">E3</th><td style="text-align:left">=DATE(<font color="#0000FF">YEAR(<font color="#FF0000">D3</font>)+1,MONTH(<font color="#FF0000">D3</font>),DAY(<font color="#FF0000">D3</font>)-1</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5 ;color: #161120">G3</th><td style="text-align:left">=SUMIFS(<font color="#0000FF">Vacation[Time],Vacation[Employee],[@Employee],Vacation[Date],">="&[Start],Vacation[Date],"<="&[Stop]</font>)</td></tr></tbody></table></td></tr></table><br/>

I then setup a second table (named Vacation) as such:


Excel 2010
BCD
11EmployeeDateTime
12Tim Horton1/23/20178
13Tim Horton5/1/20178
14Mario Lemieux2/28/201716
Sheet1


Note: The first entry is outside the vacation period so it is not added into the time used calculation.
 
Last edited:
Upvote 0
Formula for column D:
=IF(TODAY()>=DATE(YEAR(TODAY()),MONTH(C3),DAY(C3)),DATE(YEAR(TODAY()),MONTH(C3),DAY(C3)),DATE(YEAR(TODAY())-1,MONTH(C3),DAY(C3)))

(It appears my post cut off part of the formula)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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