在Excel中,我想有一個細胞變成類似:如何連接字符串與DATE()?
by no later than August 27, 2012
當我嘗試將字符串與DATE
,例如:
="by no later than " & DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()))
我得到這樣的輸出:
by no later than 41118
我怎樣才能得到一個日期而不是一個整數?
在Excel中,我想有一個細胞變成類似:如何連接字符串與DATE()?
by no later than August 27, 2012
當我嘗試將字符串與DATE
,例如:
="by no later than " & DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()))
我得到這樣的輸出:
by no later than 41118
我怎樣才能得到一個日期而不是一個整數?
DATE
建立日期時間戳。您需要將其轉換爲字符串。見怎麼做這個問題:
這將是這個樣子:
=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())), "DD/MM/YYYY hh:mm:ss")
你並不真的需要DATE功能都爲今天的日期,你只能用
="by no later than "&TEXT(TODAY(),"mmmm d, yyyy")
我只是用它作爲例子。我實際上並沒有使用'TODAY'。 – Louis 2012-07-28 11:25:40
嗯.....好吧,簡直太簡單了...... – 2012-07-28 15:27:50