Share via

Finding the previous Friday's date based on the current date

Anonymous
2013-01-04T17:28:28+00:00

Assuming a week begins on a Friday and ends on a Thursday, I need to find the previous Friday's date based on the current date.  For example, if the current date is 1/3/2013, then the previous Friday's date would be 12/28/2012.  However, if the current date is 1/4/2013, then the previous (although technicaly not "previous") Friday's date would be 1/4/2013.

Using the rule and examples above, can someone kindly tell me how to write a formula that will calculate the previous Friday's date based on the current date?  Thanks in advance for any assistance.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2013-01-04T17:58:26+00:00

    Or, again with a date in D1:

    =D1+1-WEEKDAY(D1,15)

    This works in Excel 2010 and later only.

    20+ people found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. Anonymous
    2013-01-04T17:50:38+00:00

    Try

    =D1-CHOOSE(WEEKDAY(D1,1),2,3,4,5,6,0,1)

    where D1 is the date in question.

    10+ people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2013-01-04T17:44:26+00:00

    Like this:

    Date()+1-Weekday(Date(),6)

    Added later: oops, my reply is for VBA (and Access), not a worksheet formula.

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-01-04T19:50:40+00:00

    Thanks for your very concise solution.  I appreciate your help (as always).

    0 comments No comments
  3. Anonymous
    2013-01-04T19:49:02+00:00

    Thanks for your help!  I completely forgot about the WEEKDAY function.

    0 comments No comments