Using a nest IF statement with date ranges

FOOTED

New Member
Joined
Nov 19, 2015
Messages
6
I am writing an if statement to determine eligibility based on certain age and date criteria being met. I have the following data:

Year Being Tested is 2013
Column A1 Date of Eligibility based on age is 1/1/2010
Column B1 Date of Eligibility for Enrollment is 9/1/2008
Column C1 Termination Date is 4/27/2011 or could be blank if person remains employed.

The current formula I have written to determine eligibility is the following:

=IF(AND(OR(C1="",C1>B1),A1<B1,B1<=DATE(2012,12,31)),"Eligible","Not Eligible")

With this formula it is returning a Not Eligible because my Age Eligibility Date is greater than the Enrollment Date, but because the person remains employed until 4/27/2011 they are eligible. Each person has various dates and not certain how to write the formula whereby the termination date is also considered if the Age Eligibility Date goes past the date for enrollment eligibility.

In this example if their eligibility age occurs after their enrollment eligibility date they would not be eligible unless their termination date is equal to or less than the date in which they attain the required age eligibility date. In some cases there will not be a termination date because the individual is still employed so it is left blank.

Any assistance would be greatly appreciated.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Part of my formula was cut off. Here is the formula: =IF(AND(OR(C1="",C1>B1),A1<B1,B1<=DATE(2012,12,31)),"Eligible","Not Eligible")
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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