Windows XP + Office 2003A1: 2014/02/24B1: =CHOOSE(WEEKDAY(A1,2),1,1,1,1,1,2,3) = 1A2: 2014/02/28B2: =CHOOSE(WEEKDAY(A2,2),1,1,1,1,1,2,3) = 1A3: 2014/03/01B3: =CHOOSE(WEEKDAY(A3,2),1,1,1,1,1,2,3) = 2A4: 2014/03/02B4: =CHOOSE(WEEKDAY(A4,2),1,1,1,1,1,2,3) = 3
爆肝工程師 wrote:剛剛試了試weekday公式似乎定義星期天=1 .... 星期六=7? 參考以下說明 (from Excel 2003)也就是說A1 = 2014/03/04 註:週二B1 = Weekday(A1) = 3 預設週日為1,週六為7C1 = Weekday(A1,1) = 3 同上D1 = Weekday(A1,2) = 2 週一為1,週日為7E1 = Weekday(A1,3) = 1 週一為0,週日為6以樓主的目的來看,用第二種 "週一為1,週日為7" 的方式最適合