Link to home
Start Free TrialLog in
Avatar of jjrr007
jjrr007

asked on

Date of Sunday In Excel

I'm looking to return the date of Sunday in the week.  What I mean by this is if I input the date 8/8/07, I would like the funtion to return 8/5/07.  I just want the Excel cell  to return what date Sunday is during the week that I input from a different cell.  I'm not sure at all how to do this; any assistance is appreciated.

Thanks!
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Try:
=A1-WEEKDAY(A1,1)+1
where A1 contains your date.
HTH
Rory
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the grade.
Rory
jjrr007,
Although both of Rory's formulas work on Monday through Saturday--his second one may leave you feeling like Melina Mercouri in Never on Sunday. By that, I mean that if A1 is a Sunday, the second formula returns the Sunday from the previous week--while the first formula returns the same date.

Brad