Contract dates due to expire within 3 months
Solved/Closed
Ant
-
May 19, 2010 at 09:52 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 20, 2010 at 08:42 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 20, 2010 at 08:42 AM
Related:
- Within 3 months of the expiry date
- Hitman 3 cheats - Guide
- Psiphon 3 download - Download - VPN
- Fnia 3 - Download - Adult games
- Hitman 3 free download - Download - Action and adventure
- Acer aspire 3 keyboard light - Guide
9 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 19, 2010 at 10:04 AM
May 19, 2010 at 10:04 AM
Try this
=IF(B2<TODAY(),"N",IF(B2>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"N","Y"))
Says for value in B2
if b2 is less than today's date, then a "N"
if b2 is more than 3 months from today then a "N"
if not both, then a Y
=IF(B2<TODAY(),"N",IF(B2>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"N","Y"))
Says for value in B2
if b2 is less than today's date, then a "N"
if b2 is more than 3 months from today then a "N"
if not both, then a Y
Thanks this partly solves it, however i also have contract dates in the future i.e 17/05/2011 but i dont want these future dates to show up as Y, and want them to show up as N... As i only want to chase contracts ending within 3 months... Thanks
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 19, 2010 at 10:36 AM
May 19, 2010 at 10:36 AM
Yup wrong formula. Check now.
Didn't find the answer you are looking for?
Ask a question
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 19, 2010 at 11:11 AM
May 19, 2010 at 11:11 AM
=IF(B2<TODAY(),"X",IF(B2>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"N","Y"))
Says for value in B2
if b2 is less than today's date, then a "X"
if b2 is more than 3 months from today then a "N"
if not both, then a Y
Says for value in B2
if b2 is less than today's date, then a "X"
if b2 is more than 3 months from today then a "N"
if not both, then a Y
Hi rizvisa1,
Found another way which works also...
=IF(E1<=TODAY(),"Expired",IF(E1<=TODAY()+90,"Ending within 3 months","In Warranty "))
Found another way which works also...
=IF(E1<=TODAY(),"Expired",IF(E1<=TODAY()+90,"Ending within 3 months","In Warranty "))
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 20, 2010 at 08:42 AM
May 20, 2010 at 08:42 AM
It may or may not work for you. It is adding 90 days, so months those are not 30 days are not accounted for. It you had meant 90 days this will work and mine will not without a change. And if you meant 3 months then this will not work and mine will
Let me explain both to you
=IF(E1<=TODAY(),"Expired",IF(E1<=TODAY()+90,"Ending within 3 months","In Warranty "))
It first check if the value in E1 is less than or equal today's date [ E1<=TODAY() ]
if E1 is less or equal today's date, it shows "Expired"
So far you have established that E1 is greater than today or not.
Next IF statement is checking if value in E1 is in less than or equal to 90 days from today [ (E1<=TODAY()+90 ]. If that is the case, it shows "ending within 3 months". For the third possibility where the date is more than 90 days out from today, it shows in Warranty
=IF(B2<TODAY(),"X",IF(B2>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"N","Y"))
This one is says
if B2 is less than today [ B2<TODAY() ], then show me an X
If that is not the case then it makes another check. It takes today's date and split it into its component of year [YEAR(TODAY())], month [MONTH(TODAY())] and days [DAY(TODAY()). To the month part, it add 3 [ MONTH(TODAY())+3 ]. So essentially, it adds 3 months today's date and compare it against the date in b2. If the date three months from today is greater than more than three months out, it shows "N", It the date falls within 3 months it shows Y
Hope it help.
Let me explain both to you
=IF(E1<=TODAY(),"Expired",IF(E1<=TODAY()+90,"Ending within 3 months","In Warranty "))
It first check if the value in E1 is less than or equal today's date [ E1<=TODAY() ]
if E1 is less or equal today's date, it shows "Expired"
So far you have established that E1 is greater than today or not.
Next IF statement is checking if value in E1 is in less than or equal to 90 days from today [ (E1<=TODAY()+90 ]. If that is the case, it shows "ending within 3 months". For the third possibility where the date is more than 90 days out from today, it shows in Warranty
=IF(B2<TODAY(),"X",IF(B2>DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY())),"N","Y"))
This one is says
if B2 is less than today [ B2<TODAY() ], then show me an X
If that is not the case then it makes another check. It takes today's date and split it into its component of year [YEAR(TODAY())], month [MONTH(TODAY())] and days [DAY(TODAY()). To the month part, it add 3 [ MONTH(TODAY())+3 ]. So essentially, it adds 3 months today's date and compare it against the date in b2. If the date three months from today is greater than more than three months out, it shows "N", It the date falls within 3 months it shows Y
Hope it help.