IF Statement for Employee Turnover Identification

apontaza

New Member
Joined
Nov 15, 2016
Messages
6
Hello,

I'm trying to determine if an employee is a new hire or terminated based on 3 criteria. I've tried creating a column concatenating the month and year to use an if(and statement but can't figure it out... I'd really appreciate any help or direction.

1. If hire month & year = Date in cell A1 then it's a New Hire
2. If employee is also terminated within same month & year ignore
3. If Termination date is blank = New Hire


A B C D
01/31/2018

Name Hire Date Terminated STATUS NEEDED
Smith 12/31/2017 01/24/2018 Terminated
Jones 01/10/2018 01/22/2018 Ignore
Roberts 01/05/2018 New Hire
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

Is this what you mean:


Book1
ABCD
11/31/2018
2
3NameHire DateTerminatedStatus
4Smith12/31/20171/24/2018Terminated
5Jones1/10/20181/22/2018Ignore
6Roberts1/5/2018New Hire
Sheet293
Cell Formulas
RangeFormula
D4=IF(C4="","New Hire",IF(AND(EOMONTH(A$1,0)=EOMONTH(B4,0),EOMONTH(A$1,0)=EOMONTH(C4,0)),"Ignore",IF(EOMONTH(A$1,0)=EOMONTH(C4,0),"Terminated","")))


Formula copied down.
 
Upvote 0
Hi,

Is this what you mean:

ABCD
11/31/2018
2
3NameHire DateTerminatedStatus
4Smith12/31/20171/24/2018Terminated
5Jones1/10/20181/22/2018Ignore
6Roberts1/5/2018New Hire

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet293

Worksheet Formulas
CellFormula
D4=IF(C4="","New Hire",IF(AND(EOMONTH(A$1,0)=EOMONTH(B4,0),EOMONTH(A$1,0)=EOMONTH(C4,0)),"Ignore",IF(EOMONTH(A$1,0)=EOMONTH(C4,0),"Terminated","")))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Formula copied down.


THANK YOU!!!! This works.
 
Upvote 0
You're welcome.

Just to be sure, what if "Hire Date" is say, 10/1/2017, but "Terminated" is Blank, is it Still a "New Hire" or something else?
 
Upvote 0
That scenario shouldn't appear, our Payroll service ADP has specifically made the report with this data in mind. Thank you though.
 
Upvote 0
Ok, then the formula should work fine as is.
 
Upvote 0

Forum statistics

Threads
1,215,732
Messages
6,126,540
Members
449,316
Latest member
sravya

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