Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change sunday to monday in excel

Status
Not open for further replies.

nfpk

Programmer
Aug 15, 2002
74
SE
Hi!
I´ve got an excel sheet as a calendar.
With sunday- saturday on each row.
And a month per sheet.
I want to start every week with monday, how do I change the code?

=OM(MÅNAD(StartDate)<>MÅNAD(StartDate-StartDOW+Week*7+Weekday-1);&quot;&quot;;StartDate-StartDOW+Week*7+Weekday-1)


 
This formula will always return the date of the monday of the current week....(week begining with Sunday).

You can change the &quot;now()&quot; to a cell ref to test it out.




=MONTH(NOW())&&quot;/&quot;&DAY(NOW())-(WEEKDAY(NOW())-2)&&quot;/&quot;&YEAR(NOW())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top