看板 Office 關於我們 聯絡資訊
(若是和其他不同軟體互動之問題 請記得一併填寫) 軟體: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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.33.195.174 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Office/M.1565704334.A.6BC.html ※ 編輯: maymayhu (114.33.195.174 臺灣), 08/13/2019 21:52:51
soyoso: 內文來看的話 https://i.imgur.com/ITFblyG.jpg 類似這樣 08/13 22:32
maymayhu: 感謝S大 08/13 23:31