Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Excel 2010.

If I have TODAY() function on a cell (cell2), it gives me this: 12/26/2012. I want to get Monday's date based on cell2 date. In other words, in want this: 12/24/2012.

How can I do that?

share|improve this question

migrated from stackoverflow.com Dec 27 '12 at 8:33

This question came from our site for professional and enthusiast programmers.

2 Answers 2

This should do it (although I don't have Excel handy so taking it from memory)

=A1-WEEKDAY(A1, 3)

(where A1 is the cell containing the date)

share|improve this answer
=A1-(WEEKDAY(A1)-2)

Where A1 is today's date. This formula will return the Monday date of the week today() is in.

Or:

=IF(WEEKDAY(A1)>2,A1-(WEEKDAY(A1)-2),A1-(WEEKDAY(A1)-2)-7)

if you want the previous Monday's date.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.