Nested IF statements combined with Tenure Length

DigitalData

New Member
Joined
Aug 25, 2017
Messages
21
All,

I am a Data Reporting Analyst and I could use a little help. I am trying to return results for the following. What I am trying to find is an employee that has been with the company greater than or less than 90 days IF so how many absences in one column return the value based on the absent policy.

Formula so far: =IF($G2=1,"No Action",IF($G2=2," .. etc etc that part is easy I just need to figure out how to look for if that person's tenure length is greater or less than 90 THEN look for the nested IFs afterwards!

-Has this person been here greater than or less than 90 days? ($i2)
-Based on how many unexcused absences ($G2)
-Then return Written warning etc as seen below

First 90 Days Employment
First Warning Verbal
1 absences
Final Warning Written
2 absences
Termination
3 absences

After 90 Days of Employment (Rolling 12 Months)
First Warning Verbal
2 absences
Final Warning Written
4 absences
Termination
5 absences
Termination
6 absences

<tbody>
</tbody>


THANK YOU in advance and let me know if I need to clear anything up!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You probably should consider CHOOSE, VLOOKUP or INDEX functions for your evaluation.
 
Upvote 0
Can you provide an example of how the data is setup? One way of figuring out how long their tenure is would be: =today()-A2, where A2 is the start date.
 
Upvote 0
So you indicate that you want $I2 (I presume this is relative as you will autofill down =$I3, $I4 etc), as an indictor of tenure.

Code:
=IF(TODAY()-A1>90,TRUE, FALSE)

A1 needs to be a Hire date/Seniority Date.
 
Last edited:
Upvote 0
Here is the file. ALL I need is in column J is:
Dropbox - Example.xlsx

1) Has this person been here greater than 90 days or less
2) ALSO IF they have based on how many absences they have in column G
3) Based on column G what is the result of discipline.. which is in my original post..

It should be something along these lines, but the AND formula will now work here

=IF(AND($i2>90,$G2=1,$G2=2,"$G2=3,$G2=4,$G2=5=>),FIRST VERBAL WARNING, FINAL WRITTEN WARNING,TERMINATION, TERMINATION)
 
Upvote 0
$G2 cannot equal 1,2,3,4,5 at the same time. Use and "OR" statement.

Code:
=IF([U]AND[/U]($i2>90,[COLOR=#ff0000]OR[/COLOR]($G2=1,$G2=2,"$G2=3,$G2=4,$G2=5=>)),FIRST VERBAL WARNING, FINAL WRITTEN WARNING,TERMINATION, TERMINATION)

Should have read further before commenting. So if the tenure is over 90 days and there is a G2 of 1; then you want:"First Verbal warning, G2 of 2:"Final Written Warning", etc.
 
Last edited:
Upvote 0
Try this:

Considering that:
B2=hired date
I2=tenure
G2=number of unexcused absences

=IF(B2="","",IF(AND(I2<=90,G2<=1),"First Warning Verbal",IF(AND(I2<=90,G2<=2),"Final Warning Written",IF(AND(I2<=90,G2>2),"Termination",IF(AND(I2>90,G2<=2),"First Warning Verbal",IF(AND(I2>90,G2>2,G2<=3),"Final Warning Written","Termination"))))))

<tbody>
</tbody>

Godspeed!
 
Upvote 0
Set up two tables like so:

1
First Warning-Verbal
2
Final Warning- Written
3
Termination

<tbody>
</tbody>

2
First Warning-Verbal
4
Final Warning- Written
5
Termination
6
Termination

<tbody>
</tbody>




Code:
=IFERROR(IF(I3>90,VLOOKUP(H3,$Q$7:$R$10,2,TRUE),VLOOKUP(H3,$Q$3:$R$5,2,FALSE)),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,655
Members
449,113
Latest member
Hochanz

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