2017 active employee by month

y3tter

Board Regular
Joined
Nov 11, 2012
Messages
147
I have a sheet the has employee names in column A. Column B contains their hire date, which could be 2017 or any prior year. Column C is termination date, which could also be 2017 or any prior year. Column D is re-hire date. Columns E-P are months Jan - Dec. What formula can I use to establish in each month if the employee was employed? As long as they worked one day of the month, they would be considered "Full Time", otherwise they would need to be flagged as "Not-Working".

Not all employees have a termination date or re-hire, but each employee listed did work at least one day of 2017.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Assuming data starts in row 2 and headers in row 1. Assuming E1:P1 contain dates (not just Jan, Feb, etc.) corresponding to the first of each month of 2017 (you can format as MMM to show up as month headers, but the underlying cell needs to contain the specific date).

Put the following in E2 and drag though column P and down to end of data:

=IF(OR(AND($B2<>"",$B2<=EOMONTH(E$1,0),OR($C2>E$1,$C2="")),AND($D2<>"",$D2<=EOMONTH(E$1,0))),"Full Time","Not-Working")
 
Upvote 0
Assuming data starts in row 2 and headers in row 1. Assuming E1:P1 contain dates (not just Jan, Feb, etc.) corresponding to the first of each month of 2017 (you can format as MMM to show up as month headers, but the underlying cell needs to contain the specific date).

Put the following in E2 and drag though column P and down to end of data:

=IF(OR(AND($B2<>"",$B2<=EOMONTH(E$1,0),OR($C2>E$1,$C2="")),AND($D2<>"",$D2<=EOMONTH(E$1,0))),"Full Time","Not-Working")


Awesome, thank you!!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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