IF and AND function

depaul

New Member
Joined
Mar 11, 2011
Messages
1
Hello,
Please help me with this problem
How to use nested IF and AND function on problem below

For Vacation
- 15 days for Full-time employees who have worked 1 or more years
- 10 days for Full-time employees who have worked 2 years but less than 4 years or for Part-time employees who have worked more than 1.5 years
- 0 years for everyone else.

** Using nested IF and AND functions to determine the numbers of vacation days (based on the Vacation rules described above) each employee is eligible for based on the employee's Job Status and on Length of Time Employed.

For few days, I couldn't figure it out how to do it... Please help
Big Thanks,
T
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to MrExcel board....

try this
Excel Workbook
ABCDE
253/11/2011
26NameDate of HireFull TimeVacation Time
27John Smith5/1/1998Y15
28Jerry Johns6/2/2010Y0
29Mary Jones9/2/2009N10
30Paul Quince1/2/2011Y0
Sheet1
Excel 2003
Cell Formulas
RangeFormula
A25=TODAY()
D27=IF(AND(DATEDIF(B27,$A$25,"Y")>=2,DATEDIF(B27,$A$25,"Y")<=4,C27="Y"),10,IF(AND(DATEDIF(B27,$A$25,"Y")>=1,C27="Y"),15,IF(AND(DATEDIF(B27,$A$25,"Y")>=1,C27="N"),10,0)))

copy the formula in D27 down
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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