[問題] VBA 日期區分上中下旬

作者: maymayhu (maymayhu)   2019-08-13 21:52:12
(若是和其他不同軟體互動之問題 請記得一併填寫)
軟體:excel
版本:2010
Hi professionals ,
I need a help,
假設 A1欄位 年月日為 2019/8/13
我需要在A2判斷為 中旬
Day 1~10 上旬
Day 11~20 中旬
Day 21~31 下旬
Pls help correct 下面 VBA . Meay thanks
IF range(“A1”)>20 then range(“A2”)=下旬
Elseif range(“A1”)<10 then range(“A2”) =上旬
Else range(“A2”) =中旬
End if
作者: soyoso (我是耀宗)   2019-08-13 22:32:00
內文來看的話 https://i.imgur.com/ITFblyG.jpg 類似這樣
作者: maymayhu (maymayhu)   2019-08-13 23:31:00
感謝S大

Links booklink

Contact Us: admin [ a t ] ucptt.com