apgmin

Board Regular
Joined
Mar 1, 2010
Messages
143
Office Version
  1. 2013
Platform
  1. Windows
In cell M2 is mentioned the date of birth of the student.
In cell Q2 is mentioned the course he or she is applying for ( It is a drop down list consisting of "MBA" and 3 other entries, IMBA, BBA, BHA )
In cell Y15 is mentioned todays date ( volatile )

Now If Q2 is selected as MBA
then the age should be minimum 21 years as on today

If Q2 is selected as BBA or BHA the minimum age should be 18 years as on today

Now If Q2 is selected as IMBA, then the age should be minimum 20 years as on today

Now if the age is less than the above, the message in N2 should be "not eligible" or else it should mention "eligible"

Please help
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi apgmin,

I created a quick sheet with your columns you referenced, and typed this into column z, this will output if eligible or not:

IF(AND(OR(Q5="BBA",Q5="BHA"),DAYS(Y5,M5)/365>18),"ELIGIBLE",IF(AND(Q5="MBA",DAYS(Y5,M5)/365>21),"ELIGIBLE",IF(AND(Q5="IMBA",DAYS(Y5,M5)/365>20),"ELIGIBLE","NOT ELIGIBLE")))

Hope this works for your needs
 
Upvote 0
Hi apgmin,

You can also replace the values in the formula with the cell references you posted. Should work fine, just remember your absolute referencing.
 
Upvote 0
COL N
MYTABLE
COURSEDOBDECISION
ALANIMBA01/06/1995ELIGIBLEROW 20BBA6574.527/08/2018
BILLBBA06/11/1995ELIGIBLEBHA6574.5
DAVEMBA12/04/1996ELIGIBLEIMBA7305
EDBHA17/09/1996ELIGIBLEMBA7670.25
FREDIMBA22/02/1997ELIGIBLE
HARRYBBA30/07/1997ELIGIBLE
IANMBA04/01/1998INELIGIBLE
JAMESBHA11/06/1998ELIGIBLE
KEITHIMBA16/11/1998INELIGIBLE
LARRYBBA23/04/1999ELIGIBLE
MIKEMBA28/09/1999INELIGIBLEFORMULA FOR ALAN DECISION
NICKBHA04/03/2000ELIGIBLE
OSCARIMBA09/08/2000INELIGIBLE=IF($N$20-D20<VLOOKUP(C20,MYTABLE,2),"INELIGIBLE","ELIGIBLE")
PETEBBA14/01/2001INELIGIBLE
QUENTINMBA21/06/2001INELIGIBLE
ROBERTBHA26/11/2001INELIGIBLE
SIDIMBA03/05/2002INELIGIBLE
TOMBBA08/10/2002INELIGIBLE
WALTERMBA15/03/2003INELIGIBLE

<colgroup><col span="3"><col><col><col span="8"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,313
Members
449,153
Latest member
JazzSingerNL

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