Excel Date Formula

Hello,
can you please help,
what is the formula to get the first date of the month of May and last date of the month of April.

CELL"X1"
IF Date < May 1st (Current Year) , then Cell "X1" = May 1st (Last year)
IF Date > = May 1st (Current Year) , then Cell "X1" = May 1st (current year)

CELL"Y1"
IF Date < = April 30th (Current Year) , then Cell "Y1" = April 30th (current year)
IF Date > April 30th (Current Year) , then Cell "Y1" = April 30th (Next year)

Example,
today is April 30th 2015,
I need to have Cell "X1" = May 1st 2014
I need to have Cell "y1" = April 30th 2015

Tomorrow is MAY 1st 2015
I need to have Cell "X1" = May 1st 2015
I need to have Cell "y1" = April 30th 2016

Any help is appreciated.
Thanks
W.E.BAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ProfessorJimJamMicrosoft Excel ExpertCommented:
please see attached
Book1.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ProfessorJimJamMicrosoft Excel ExpertCommented:
For X1   here is the formula  =IF(today()<DATE(YEAR(TODAY()),5,1),DATE(YEAR(TODAY())-1,5,1),IF(today()>=DATE(YEAR(TODAY()),5,1),DATE(YEAR(TODAY()),5,1)))



For Y1    here is the formula   =IF(today()<=DATE(YEAR(TODAY()),4,30),DATE(YEAR(TODAY()),4,30),IF(today()>DATE(YEAR(TODAY()),4,30),DATE(YEAR(TODAY())+1,4,30)))


becuase today is today is today is April 30th 2015,
 Cell "X1" = May 1st 2014
 Cell "y1" = April 30th 2015

when you open workbook tomorrow, the cells would be then changed automatically to


 Cell "Xn 1" = May 1st 2015
 Cell "y1" = April 30th 2016
W.E.BAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.