如何使用Excel將日期轉換成季

前提

確保A欄位為日期

程式

在新欄位中,填入以下公式

=IF(MONTH(A2)<=3,"Spring",IF(AND(MONTH(A2)>3,MONTH(A2)<=6),"Summer",IF(AND(MONTH(A2)>6,MONTH(A2)<=9),"Fall","Winter")))

完成

將Excel欄位的小十字架拖拉至底部,就可建立春夏秋冬四季

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store