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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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
NameHire DateTerminatedStatus
SmithTerminated
JonesIgnore
RobertsNew Hire

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]1/31/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]12/31/2017[/TD]
[TD="align: right"]1/24/2018[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]1/10/2018[/TD]
[TD="align: right"]1/22/2018[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]1/5/2018[/TD]
[TD="align: right"][/TD]

</tbody>
Sheet293

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D4[/TH]
[TD="align: left"]=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","")))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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