be sure to check your regional setting and adjust accordingly the WEEKDAY values in the above formula as follows:
SUNDAY=1 to SATURDAY=7
Surely not. You cannot ask people to change their regional settings to accommodate a formula you create, just because you don't know the parameters.
Weekday takes a second parameter that defines several different aspects of when a week starts.
From the Office 2010 help files:
RETURN_TYPE NUMBER RETURNED
1 or omitted Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.
2 Numbers 1 (Monday) through 7 (Sunday).
3 Numbers 0 (Monday) through 6 (Sunday).
11 Numbers 1 (Monday) through 7 (Sunday).
12 Numbers 1 (Tuesday) through 7 (Monday).
13 Numbers 1 (Wednesday) through 7 (Tuesday).
14 Numbers 1 (Thursday) through 7 (Wednesday).
15 Numbers 1 (Friday) through 7 (Thursday).
16 Numbers 1 (Saturday) through 7 (Friday).
17 Numbers 1 (Sunday) through 7 (Saturday).
http://office.microsoft.com/en-us/ex...010343015.aspx
Bookmarks